/* =========================================
   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 {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;              /* IMPORTANT */
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  display: grid;           /* perfect centering */
  place-items: center;
  line-height: 1;          /* prevents text stretching */
  cursor: pointer;
  transition: all 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 */
/* ================================
   Location Illustration Container
================================ */

.wcgcp-location-illustration {
  position: relative;
  height: 260px;
  margin-top: 10px;
  background: #ffffff;
}

/* ================================
   Map Card
================================ */

/* ================================
   Improved Map Tile
================================ */

/* ================================
   Premium Map Tile
================================ */

.wcgcp-map {
  position: absolute;
  bottom: px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);

  width: 240px;
  height: 130px;
  border-radius: 22px;

  background:
    linear-gradient(135deg, #c6f7a6 0%, #eaff8f 100%);

  box-shadow:
    0 20px 35px rgba(0,0,0,0.12),
    0 6px 12px rgba(0,0,0,0.08);

  overflow: hidden;
  z-index: 1;
}

/* Subtle road grid */
.wcgcp-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.45) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 2px, transparent 2px);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* Soft light reflection */
.wcgcp-map::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(circle at center,
      rgba(255,255,255,0.35),
      transparent 60%);
}
/* ================================
   REAL Location Pin
================================ */

/* ================================
   Perfect Location Pin
================================ */

.wcgcp-pin {
  position: absolute;
bottom: 100px;
left: 50%;

  width: 70px;
  height: 70px;
  background: #ff2c6b;

  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);

  box-shadow: 0 15px 35px rgba(255, 44, 107, 0.30);
  z-index: 2;
}

/* Inner white circle (fixed alignment) */
.wcgcp-pin::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border-radius: 50%;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ================================
   Message Text
================================ */

.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: 250px !IMPORTANT;
  }

}
/* ✅ 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) */
}




/* Maps */



.pac-container::after {
  display: none !important;
  content: none !important;
}











/* ===============================
   Container – Clean Elevated Card
================================ */
.pac-container {
  margin-top: 8px;
  padding: 6px 0;
  border-radius: 16px;
  border: 1px solid #f1f1f1;
  background: #ffffff;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  overflow: hidden;
}

/* Remove Google icon */
.pac-icon {
  display: none !important;
}

/* ===============================
   Suggestion Row
================================ */
.pac-item {
  position: relative;
  padding: 14px 16px 14px 48px;
  font-size: 14px;
  color: #111;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* Subtle divider like Blinkit */
.pac-item + .pac-item {
  border-top: 1px solid #f5f5f5;
}

/* Hover state – very clean */
.pac-item:hover {
  background: #f7f7f7;
}

/* Main location text */
.pac-item-query {
  font-weight: 600;
  color: #111;
}

/* Secondary location text */
.pac-item span {
  color: #777;
  font-weight: 400;
}

/* ===============================
   Solid Brand Icon (Uber style)
================================ */
.pac-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23000000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-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");

  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}





/* ===============================
   Search Section (Premium Header)
================================ */
.wcgcp-location-search-wrap {
  padding: 20px 22px 16px !important;
  background: linear-gradient(to bottom, #ffffff, #fafafa) !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

/* ===============================
   Input Wrapper (Depth Layer)
================================ */
.wcgcp-location-input {
  width: 100% !important;
  height: 52px !important;
  padding: 0 18px !important;
  border-radius: 18px !important;

  /* Remove harsh borders */
  border: 1px solid transparent !important;

  /* Premium soft surface */
  background: #f3f4f6 !important;

  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2px;
  color: #111 !important;

  outline: none !important;

  /* Depth */
  box-shadow: 
    inset 0 1px 2px rgba(0,0,0,0.04),
    0 1px 0 rgba(255,255,255,0.6) !important;

  transition: all 0.25s ease !important;
}

/* Placeholder – refined */
.wcgcp-location-input::placeholder {
  color: #9ca3af !important;
  font-weight: 400 !important;
}

/* ===============================
   Focus State (App-Level Feel)
================================ */
.wcgcp-location-input:focus {
  background: #ffffff !important;
  border: 1px solid #111 !important;
  box-shadow: 
    0 0 0 4px rgba(0,0,0,0.06) !important;
}



/* ===============================
   Current Location Card
================================ */
/* ===============================
   Current Location Card (Refined Premium)
================================ */
.wcgcp-current-location-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 16px !important;
  margin: 10px 16px !important;

  background: #fafafa !important; /* softer than pure white */
  border: 1px solid #f0f0f0 !important;
  border-radius: 14px !important;

  box-shadow: none !important; /* remove heavy lift */
  box-sizing: border-box !important;

  transition: background 0.2s ease !important;
}

/* Optional subtle hover (feels app-like) */
.wcgcp-current-location-card:hover {
  background: #f5f5f5 !important;
}

/* ===============================
   Left Side
================================ */
.wcgcp-current-location-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* ===============================
   Icon (Smaller & Cleaner)
================================ */
.wcgcp-current-location-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;

  background: #f1f1f1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 16px !important;
  font-weight: 500 !important;
  color: #555 !important;

  flex-shrink: 0 !important;
}

/* ===============================
   Title
================================ */
.wcgcp-current-location-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111 !important;
  line-height: 1.2 !important;
}

/* ===============================
   Subtitle
================================ */
.wcgcp-current-location-subtitle {
  font-size: 12px !important;
  color: #8a8a8a !important;
  margin-top: 3px !important;
  line-height: 1.4 !important;
}








.wcgcp-detect-location-btn {
  min-width: 120px !important;
  height: 36px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Inner layout */
.wcgcp-detect-location-btn .btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Spinner (hidden by default) */
.wcgcp-detect-location-btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: wcgcpSpin 0.7s linear infinite;
  display: none;
}

/* Hide Detecting text by default */
.wcgcp-detect-location-btn .loading-text {
  display: none;
}

/* Loading state */
.wcgcp-detect-location-btn.loading {
  pointer-events: none;
  opacity: 0.95;
}

/* When loading */
.wcgcp-detect-location-btn.loading .btn-text {
  display: none;
}

.wcgcp-detect-location-btn.loading .spinner,
.wcgcp-detect-location-btn.loading .loading-text {
  display: inline-block;
}

/* Spinner animation */
@keyframes wcgcpSpin {
  to { transform: rotate(360deg); }
}
























.wcgcp-current-location-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f4f6; /* softer gray */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-svg {
  width: 20px;
  height: 20px;
  stroke: #374151; /* softer dark gray instead of black */
  stroke-width: 1.5; /* thinner = sharper look */
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}





.wcgcp-map {
  position: absolute !important;
  bottom: 45px !important;
  left: 50% !important;
  transform: translateX(-50%) rotate(-3deg) !important;

  width: 240px !important;
  height: 130px !important;

  border-radius: 22px !important;
  overflow: hidden !important;

  box-shadow:
    0 20px 35px rgba(0,0,0,0.12) !important,
    0 6px 12px rgba(0,0,0,0.08) !important;

  z-index: 1 !important;
}

.wcgcp-map svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

@media (max-width: 768px) {
  .wcgcp-map {
    position: absolute !important;
    bottom: 222px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(-2deg) !important;

    width: 190px !important;
    height: 110px !important;

    border-radius: 18px !important;
    overflow: hidden !important;

    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.6) !important;

    /* Realistic layered depth */
    box-shadow:
      0 25px 45px rgba(0,0,0,0.18),
      0 12px 24px rgba(0,0,0,0.12),
      0 4px 8px rgba(0,0,0,0.08);

    z-index: 2 !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  }

  .wcgcp-map:hover {
    transform: translateX(-50%) rotate(0deg) scale(1.04) !important;
    box-shadow:
      0 35px 60px rgba(0,0,0,0.22),
      0 18px 30px rgba(0,0,0,0.15),
      0 6px 12px rgba(0,0,0,0.10);
  }
}
}



