/* =========================================
   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: rgba(0, 0, 0, 0.55);
  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) */
.wcgcp-open-location-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.wcgcp-open-location-btn:active {
  transform: scale(0.98);
}

/* ✅ 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;
}
