/* =========================================
   WCGCP - Zepto Location Popup UI (Perfect)
========================================= */

/* ✅ Default Hidden */
.wcgcp-location-overlay,
.wcgcp-location-modal {
  display: none;
}

/* ✅ Overlay background */
.wcgcp-location-overlay {
  position: fixed;
  inset: 0;
  background: rgb(255 255 255 / 0%);
  z-index: 9998;
}

/* ✅ Modal Center Popup (Desktop) */
.wcgcp-location-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 95%;
  height: 560px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  overflow: hidden;
  font-family: inherit;
  display: none;
}

/* ✅ Header (Zepto top row) */
.wcgcp-zepto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.wcgcp-zepto-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ✅ Zepto Logo */
.wcgcp-zepto-logo {
  font-size: 30px;
  font-weight: 900;
  color: #7c3aed; /* Zepto Purple */
  letter-spacing: -0.6px;
  line-height: 1;
  text-transform: lowercase;
}

/* ✅ Select Location text + arrow */
.wcgcp-zepto-location {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wcgcp-zepto-location-text {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}

.wcgcp-zepto-location-arrow {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  margin-top: -1px;
}

/* ✅ Close Button */
.wcgcp-location-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.wcgcp-location-close-btn:hover {
  background: #e5e7eb;
}

.wcgcp-location-close-btn:active {
  transform: scale(0.95);
}

/* ✅ Search input wrapper */
.wcgcp-location-search-wrap {
  padding: 14px 16px 6px;
}

.wcgcp-location-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: 0.25s ease;
}

.wcgcp-location-input::placeholder {
  color: rgba(0, 0, 0, 0.40);
  font-weight: 600;
}

.wcgcp-location-input:focus {
  border-color: #7c3aed;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* ✅ Current Location Card */
.wcgcp-current-location-card {
  margin: 10px 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Left section in card */
.wcgcp-current-location-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Small icon bubble */
.wcgcp-current-location-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #ff2c6b;
  background: rgba(255, 44, 107, 0.10);
}

/* Text */
.wcgcp-current-location-text {
  min-width: 0;
}

.wcgcp-current-location-title {
  font-size: 14px;
  font-weight: 800;
  color: #ff2c6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wcgcp-current-location-subtitle {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

/* ✅ Enable Button */
.wcgcp-detect-location-btn {
  padding: 9px 14px;
  border-radius: 10px;
  border: 2px solid #ff2c6b;
  background: #fff;
  color: #ff2c6b;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.wcgcp-detect-location-btn:hover {
  background: rgba(255, 44, 107, 0.06);
}

.wcgcp-detect-location-btn:active {
  transform: scale(0.96);
}

/* ✅ Illustration Section */
.wcgcp-location-illustration {
  position: relative;
  height: 320px;
  margin-top: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pin Circle */
.wcgcp-pin {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #ff2c6b;
  position: absolute;
  top: 80px;
  box-shadow: 0 15px 35px rgba(255, 44, 107, 0.30);
}

.wcgcp-pin::after {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Map Box */
.wcgcp-map {
  width: 240px;
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9cff8f, #fbff6a);
  transform: skewX(-10deg);
  position: absolute;
  bottom: 70px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ✅ Message */
.wcgcp-location-message {
  padding: 0 16px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

/* ✅ Open Button Style (Optional Zepto type button) */
/* ======================================
   Premium UX Button (WCGCP Location)
   ====================================== */

.wcgcp-open-location-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 14px;
  min-height: 42px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);

  color: #000;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;

  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow:
    0 10px 22px rgba(124,58,237,.28),
    inset 0 1px 0 rgba(255,255,255,.18);

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}

/* Premium shine (very small, looks rich) */
.wcgcp-open-location-btn::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.16) 35%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-120%);
  transition: transform .5s ease;
  pointer-events: none;
}
.wcgcp-open-location-btn:hover::before{
  transform: translateX(120%);
}

/* Hover */
.wcgcp-open-location-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow:
    0 14px 28px rgba(124,58,237,.33),
    inset 0 1px 0 rgba(255,255,255,.20);
}

/* Active (press) */
.wcgcp-open-location-btn:active{
  transform: translateY(0) scale(.98);
  box-shadow:
    0 8px 16px rgba(124,58,237,.22),
    inset 0 1px 0 rgba(255,255,255,.14);
}

/* Focus ring (best UX) */
.wcgcp-open-location-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(124,58,237,.25),
    0 14px 28px rgba(124,58,237,.30),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* Disabled */
.wcgcp-open-location-btn[disabled],
.wcgcp-open-location-btn.is-disabled{
  opacity: .65;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: 0 8px 16px rgba(0,0,0,.10);
}

/* If you put an icon inside */
.wcgcp-open-location-btn svg{
  width: 16px;
  height: 16px;
  opacity: .95;
}
.wcgcp-open-location-btn.is-loading{
  pointer-events: none;
  opacity: .9;
}

.wcgcp-open-location-btn.is-loading::after{
  content:"";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: rgba(255,255,255,1);
  margin-left: 6px;
  display: inline-block;
  animation: wcgcpSpin .8s linear infinite;
}

@keyframes wcgcpSpin{ to { transform: rotate(360deg); } }


/* ✅ Mobile = Full Screen (Zepto App Feel) */
@media (max-width: 600px) {

  .wcgcp-location-overlay {
    display: none !important;
  }

  .wcgcp-location-modal {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: none;
  }

  .wcgcp-location-illustration {
    height: calc(100vh - 230px);
  }

  .wcgcp-map {
    bottom: 120px;
  }

}
/* ✅ Simple header */
.wcgcp-location-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.wcgcp-location-modal-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}
.pac-container {
  z-index: 999999 !important;
}




.wcgcp-open-location-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:fit-content !important;

  padding:10px 13px !important; /* slightly roomier = premium */

  border-radius:14px !important;

  /* soft premium surface (not harsh white) */
  background:#f9fafb !important;

  /* subtle luxury border */
  border:1px solid rgba(0,0,0,.05) !important;

  /* richer natural depth */
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 4px 10px rgba(0,0,0,.06) !important;

  cursor:pointer !important;
  font-family:inherit !important;

  transition:
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .18s ease !important;

  margin:-2px 0 10px !important;
}

/* calm premium hover */
.wcgcp-open-location-btn:hover{
  transform:translateY(-0.5px) !important;
  box-shadow:
    0 3px 6px rgba(0,0,0,.06),
    0 8px 18px rgba(0,0,0,.08) !important;
}

/* soft press feel */
.wcgcp-open-location-btn:active{
  transform:scale(.985) !important;
}


.wcgcp-left{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

/* ICON COLOR */
.wcgcp-icon{
  width:26px !important;
  height:26px !important;
  border-radius:7px !important;
  background:#7c3aed !important;
  color:#ffffff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:14px !important;
}

/* LABEL */
.wcgcp-label{
  display:block !important;
  font-size:11px !important;
  font-weight:600 !important;
  color:#6b7280 !important;
  letter-spacing:.4px !important;
}

/* MAIN VALUE TEXT (THIS WAS OVERRIDDEN) */
.wcgcp-value{
  display:block !important;
  font-size:14px !important;
  font-weight:700 !important;
  color:#111827 !important;   /* ← locked premium dark */
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  max-width:160px !important;
}

.wcgcp-arrow{
  opacity:.35 !important;
  font-size:14px !important;
  color:#111827 !important;
}

.wcgcp-open-location-btn:hover{
  transform:translateY(-0.5px) !important;
  box-shadow:0 4px 10px rgba(0,0,0,.12) !important;
}

.wcgcp-open-location-btn:active{
  transform:scale(.985) !important;
}
.wcgcp-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #7c3aed;
  color: #ffffff;
  flex-shrink: 0;
}

.wcgcp-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.wcgcp-icon svg path {
  fill: currentColor;
}

.wcgcp-open-location-btn{
  position: relative;
  padding-left: 44px;            /* space for icon */
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* purple square */
.wcgcp-open-location-btn::before{
  content:"";
  position:absolute;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #7c3aed;

  /* pin icon as white mask */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/14px 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/14px 14px no-repeat;

  background-color: #fff; /* mask color (white pin) */
}

