/**
 * HO GeoSwitch - Frontend Styles
 * Modal styling for language/store switching prompt
 */

.ho-geoswitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1rem;
  animation: hoGeoswitchFadeIn 0.25s ease-out;
}

@keyframes hoGeoswitchFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ho-geoswitch-modal {
  position: relative;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  animation: hoGeoswitchSlideUp 0.3s ease-out;
}

@keyframes hoGeoswitchSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ho-geoswitch-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: #666;
  transition: background 0.2s, color 0.2s;
}

.ho-geoswitch-close:hover {
  background: #f0f0f0;
  color: #333;
}


.ho-geoswitch-title {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.ho-geoswitch-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ho-geoswitch-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.ho-geoswitch-btn:active {
  transform: scale(0.98);
}

.ho-geoswitch-btn--primary {
  background: #000;
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.ho-geoswitch-btn--primary:hover,
.ho-geoswitch-btn--primary:focus,
.ho-geoswitch-btn--primary:active {
  background: #222;
  color: #fff !important;
}

.ho-geoswitch-btn--secondary {
  background: #f3f4f6;
  color: #374151;
}

.ho-geoswitch-btn--secondary:hover {
  background: #e5e7eb;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .ho-geoswitch-modal {
    padding: 1.5rem;
    border-radius: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    animation: hoGeoswitchSlideUpMobile 0.3s ease-out;
  }
  
  @keyframes hoGeoswitchSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .ho-geoswitch-overlay {
    align-items: flex-end;
    padding: 0;
  }
  
  .ho-geoswitch-title {
    font-size: 1.25rem;
  }
}



