.detected-city-field input {
  background: none !important;
  border: 0 none !important;
  text-align: center;
  width: auto;
  color: #19120c !important;
  text-transform: uppercase;
  padding: 0 !important;
}

.detected-city-field .pin-icon {
    margin-right: 6px;
    color: #d33;
}

.detected-city-input {
    border: none;
    background: transparent;
    font-weight: 600;
    pointer-events: none;
}

.so-loader {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(3px);
}

.so-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 2px;
  background: linear-gradient(to right, #000, transparent);
  animation: so-spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes so-spin {
  0%   { transform: translate(-50%, -50%) scaleX(0); opacity: 0.2; }
  50%  { transform: translate(-50%, -50%) scaleX(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scaleX(0); opacity: 0.2; }
}

.city-modal {
  position: fixed;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  background: rgba(0,0,0,0.5);
  display: none;              /* hidden by default */
  display: flex;              /* make it a flex container */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  z-index: 9999;
}

.city-modal-content {
  position: relative;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.city-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}
.city-modal {
  position: fixed;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  background: rgba(0,0,0,0.5);
  display: none;              /* hidden by default */
  display: flex;              /* make it a flex container */
  align-items: center;        /* vertical centering */
  justify-content: center;    /* horizontal centering */
  z-index: 9999;
}

.city-modal-content {
  position: relative;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.city-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}


/* Wrapper: inline layout */
.shop-location-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  font-family: "Open Sans", Arial, sans-serif;
}

/* Dropdown */
#shop-location-selector, .choose-city-btn, .shop-location-selector, .detected-city-field {
  flex: 1;
  padding: 5px;
  border: 1px solid #19120c;
  border-radius: 35px;
  background: #f6f0eb;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: auto;
  min-width: 135px; max-width: 150px;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  font-family: Karla;
}

#shop-location-selector:focus {
  border-color: #0073aa;
  background: #fff;
  outline: none;
}

/* Toggle button */
.location-toggle-wrapper {
  display: flex; align-items: center; gap: 10px;
}

.location-toggle-btn {
  position: relative;
  width: 60px;
  height: 34px;
  background: #ccc;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.location-toggle-btn.active {
  background: #0073aa;
}

.location-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.location-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 25px;
  height: 25px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.3s ease;
}

.location-toggle-btn.active .location-toggle-thumb {
  left: 28px;
}

/* Popup */
.geoip-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073aa;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 14px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.geoip-popup .popup-text {
  flex: 1;
}

.geoip-popup .popup-close {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}
.pin-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-off { left: 8px; opacity: 1; }
.pin-on  { right: 8px; opacity: 0; }

.location-toggle-btn.active .pin-off { opacity: 0; }
.location-toggle-btn.active .pin-on  { opacity: 1; }

.pin-icon svg { width: 100%; height: 100%; }

/* Mobile responsiveness */
@media (max-width: 600px) {
    .choose-city-btn { display: none; }
    .location-toggle-track,
.location-toggle-thumb,
.pin-icon {
  pointer-events: none;
}

    .mobile-html2 #shop-location-selector,
    .drawer-inner #location-toggle {
  display: none;
}
  .shop-location-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .location-toggle-wrapper {
    align-self: flex-end;
  }

  #shop-location-selector {
    width: 100%;
  }
}
