/* Gallant VIP Visit CTA - Lightweight CSS */
:root {
  --mgvc-accent: #111111;
  --mgvc-text: #ffffff;
}

.mgvc-root { position: fixed; top: 50%; transform: translateY(-50%); z-index: 9999; font-family: inherit; }
.mgvc-left { left: 0; }
.mgvc-right { right: 0; }
.mgvc-root * { box-sizing: border-box; }

.mgvc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  padding: 0 14px;
  background: var(--mgvc-accent);
  color: var(--mgvc-text);
  border-radius: 0 8px 8px 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transition: transform .25s ease, opacity .25s ease;
  writing-mode: vertical-lr; text-orientation: mixed; /* متن عمودی */
}
.mgvc-right .mgvc-toggle { border-radius: 8px 0 0 8px; }

.mgvc-toggle:focus { outline: 2px solid rgba(0,0,0,.35); outline-offset: 2px; }

.mgvc-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(92vw, 380px);
  max-width: 380px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transform: translateX(-100%);
  transition: transform .35s ease;
  will-change: transform;
}
.mgvc-right .mgvc-panel { right: 0; left: auto; transform: translateX(100%); }
.mgvc-left .mgvc-panel { left: 0; right: auto; height: fit-content; }

.mgvc-panel[aria-hidden="false"] { transform: translateX(0);height: fit-content; }

.mgvc-panel-inner { padding: 22px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.mgvc-close {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 0;
  cursor: pointer;
  color: #666;
}
.mgvc-title { margin: 0; font-size: 20px; line-height: 1.35; }
.mgvc-message { margin: 0; color: #333; line-height: 1.8; }

.mgvc-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  background: var(--mgvc-accent);
  color: var(--mgvc-text);
  text-decoration: none;
  border-radius: 0px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.mgvc-call-btn:hover { filter: brightness(1.05); }


.mgvc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mgvc-panel[aria-hidden="false"] ~ .mgvc-backdrop { opacity: 1; pointer-events: auto; }

/* Respect user prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .mgvc-toggle { transition: none; }
  .mgvc-panel { transition: none; }
  .mgvc-backdrop { transition: none; }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .mgvc-toggle { height: 40px; padding: 0 12px; }
  .mgvc-panel { width: 100vw; max-width: none; }
}


/* --- v1.0.1: vertical toggle + frosted panel --- */
.mgvc-toggle {
  height: auto;
  min-height: 120px;
  padding: 12px 10px;
  letter-spacing: .5px;
}

.mgvc-panel {
  background: rgba(255,255,255,255);
  backdrop-filter: blur(8px) saturate(120%);
  border-right: 1px solid rgba(0,0,0,.06);
  border-left: 1px solid rgba(0,0,0,.06);
}

.mgvc-panel-inner {
  background: rgba(255,255,255,.96);
  border-radius: 0px;
  border: 1px solid rgba(0,0,0,.06);
  margin: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.mgvc-title {
  background: #ffffff;
  display: inline-block;
  padding: 6px 10px;
}

.mgvc-backdrop {
  background: rgba(0,0,0,.45);
}

/* Make sure overlay sits under the panel but above the page */
.mgvc-panel, .mgvc-backdrop, .mgvc-toggle, .mgvc-root { z-index: inherit; }

@media (max-width: 480px) {
  .mgvc-toggle { min-height: 100px; }
}

