/* Country Selector Dropdown Styles */
.country-selector-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: white;
  padding: 0px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.country-selector-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.country-selector {
  min-width: 90px;
  padding: 4px 35px 5px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.country-selector:hover {
  border-color: #0000fe;
  box-shadow: 0 2px 8px rgba(0, 0, 254, 0.1);
}

.country-selector:focus {
  outline: none;
  border-color: #0000fe;
  box-shadow: 0 0 0 3px rgba(0, 0, 254, 0.1);
}

.country-selector option {
  padding: 10px;
  font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .country-selector-wrapper {
    top: 10px;
    right: 10px;
    padding: 0px;
  }
  
  .country-selector {
    min-width: 90px;
    font-size: 13px;
    padding: 4px 30px 4px 10px;
  }
  
  .country-selector-label {
    font-size: 11px;
  }
}

/* Alternative: Inline placement in header */
.country-selector-inline {
  display: inline-block;
  margin-left: 20px;
  vertical-align: middle;
}

.country-selector-inline .country-selector {
  min-width: 200px;
  padding: 8px 30px 8px 10px;
  font-size: 13px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
}

.country-selector-inline .country-selector:hover {
  background-color: #fff;
}

/* Loading state */
.country-selector.loading {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

.country-selector.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid #0000fe;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
