/* Gulwadi Popup — Same-Day Delivery v1.0.0
   Variation F (owner-approved 2026-11-10): full-bleed illustrated Lahore map,
   cream message panel at the bottom. Homepage only, once a day. */

.gw-popup-overlay{
  position:fixed;top:0;left:0;right:0;bottom:0;
  width:100%;height:100%;height:100dvh; /* v1.0.3: dvh covers mobile dynamic toolbars */
  margin:0;z-index:999999; /* v1.0.3: above every theme/plugin element */
  background:rgba(20,16,11,.55);
  display:flex;align-items:center;justify-content:center;
  padding:20px;box-sizing:border-box;
  opacity:0;visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
  overscroll-behavior:none;
}
/* v1.0.4: lock background scrolling while the popup is open.
   overflow:hidden alone did not stop programmatic scrolling in testing,
   so the body is also fixed in place (restored on close). */
html.gw-popup-open,body.gw-popup-open{overflow:hidden !important}
body.gw-popup-open{position:fixed !important;left:0;right:0;width:100%}
.gw-popup-overlay.gw-show{opacity:1;visibility:visible}

.gw-popup{
  position:relative;width:100%;max-width:360px;
  max-height:calc(100dvh - 40px);overflow-y:auto; /* v1.0.3: never taller than the screen */
  background:#FAF5EA;
  border-radius:20px;overflow:hidden;text-align:center;color:#14100B;
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  transform:translateY(12px) scale(.98);
  transition:transform .3s ease;
}
.gw-popup-overlay.gw-show .gw-popup{transform:translateY(0) scale(1)}

.gw-popup-map-img{
  display:block;width:85%;height:auto;margin:0 auto; /* v1.0.4: full 3:2 map, no cropping — at 85% width so the popup stays compact */
}
.gw-popup-close{
  position:absolute;top:12px;right:12px;z-index:2;
  background:rgba(20,16,11,.6);color:#fff;border:none;
  width:32px;height:32px;border-radius:50%;
  font-size:20px;line-height:1;cursor:pointer;
  padding:0 !important; /* v1.0.2: a global button rule sets padding:15px 30px, which stretched this to a 60x36 oval — reset to a true circle */
  min-width:0;
  display:flex;align-items:center;justify-content:center;
}
.gw-popup-panel{
  position:relative;z-index:1;
  background:#FAF5EA;
  padding:16px 22px 14px; /* v1.0.4: tightened further for compactness */
}
.gw-popup-eyebrow{
  color:#8A6D1F;font-size:11px;letter-spacing:.24em;font-weight:800;
  margin-bottom:6px;font-family:Inter,system-ui,sans-serif;
}
.gw-popup-title{
  font-family:Georgia,'Times New Roman',serif;
  font-size:27px;line-height:1.12;font-weight:400;
  margin:0 0 6px;color:#14100B;
}
.gw-popup-title em{color:#8A6D1F;font-style:italic}
.gw-popup-cutoff{
  display:inline-block;background:#1E0A14;color:#D4AF37;
  font-size:12px;font-weight:800;letter-spacing:.05em;
  border-radius:999px;padding:6px 13px;margin-bottom:12px;
  font-family:Inter,system-ui,sans-serif;
}
.gw-popup-text{
  font-size:14px;line-height:1.55;color:#4F4A3E;margin:0 0 10px;
  font-family:Inter,system-ui,sans-serif;
}
.gw-popup-text strong{color:#14100B}
.gw-popup-after{
  font-size:13px;line-height:1.55;color:#4F4A3E;
  background:#F1E9D2;border-radius:10px;padding:10px 12px;margin-bottom:16px;
  font-family:Inter,system-ui,sans-serif;
}
.gw-popup-after a{color:#1E7A4C;font-weight:700;text-decoration:none}
.gw-popup-cta{
  display:block;width:100%;background:#14100B;color:#D4AF37;
  border:none;border-radius:12px;padding:14px;
  font-size:15.5px;font-weight:700;letter-spacing:.04em;
  cursor:pointer;margin-bottom:10px;text-decoration:none;
  font-family:Inter,system-ui,sans-serif;
}
.gw-popup-fine{
  font-size:11.5px;color:#8A7A52;line-height:1.5;
  font-family:Inter,system-ui,sans-serif;
}
.gw-popup-nothanks{
  background:none;border:none;color:#8A7A52;font-size:12.5px;
  text-decoration:underline;cursor:pointer;margin-top:9px;
  font-family:Inter,system-ui,sans-serif;
}

/* Desktop: wider card, larger type, taller map */
@media (min-width:782px){
  .gw-popup{max-width:500px;border-radius:24px} /* v1.0.3: height is content-driven now (map 3:2 + panel) */
  .gw-popup-panel{padding:22px 40px 20px}
  .gw-popup-eyebrow{font-size:12px;letter-spacing:.26em;margin-bottom:8px}
  .gw-popup-title{font-size:36px;margin-bottom:8px}
  .gw-popup-cutoff{font-size:13px;letter-spacing:.06em;padding:8px 18px;margin-bottom:14px}
  .gw-popup-text{font-size:16px;line-height:1.6;margin-bottom:12px}
  .gw-popup-after{font-size:14px;line-height:1.6;padding:12px 16px;margin-bottom:20px}
  .gw-popup-cta{max-width:340px;margin:0 auto 14px;padding:16px;font-size:16.5px}
  .gw-popup-fine{font-size:12.5px}
  .gw-popup-nothanks{font-size:13.5px;margin-top:12px}
  .gw-popup-close{top:14px;right:14px;width:36px;height:36px;font-size:22px}
}
