/* Country Toggle Styles */

/* Container for country toggle in footer */
.country-toggle-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Country labels */
.country-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.country-label.active {
  color: var(--text-dark);
  font-weight: 500;
}

/* Toggle switch wrapper */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

/* Hide default checkbox */
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Toggle track/background */
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2dc18b;
  transition: all 0.3s ease;
  border-radius: 22px;
}

/* Toggle knob/circle */
.toggle-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px #156d9533;
}

/* Checked state - move knob to right */
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* Focus state for accessibility */
.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px #156d9533;
}

/* Hover state */
.toggle-switch:hover .toggle-slider {
  background-color: #d0d0d0;
}

.toggle-switch:hover input:checked + .toggle-slider {
  background-color: var(--primary-hover);
}

/* Footer legal section with toggle */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .country-toggle-container {
    order: -1;
    margin-bottom: 0.5rem;
  }
}

/* Small toggle variant for compact spaces */
.toggle-switch.small {
  width: 34px;
  height: 18px;
}

.toggle-switch.small .toggle-slider::before {
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
}

.toggle-switch.small input:checked + .toggle-slider::before {
  transform: translateX(16px);
}
