.country-selector {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.country-button:focus-visible {
    background: white !important;
}

.country-button:focus {
    background: white !important;
}

.country-selector .country-button {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.country-selector .country-button:hover {
    border-color: #9ca3af;
    background-color: white;
}

.country-selector .country-button:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.country-selector .country-button.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.country-selector .country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-selector .flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.country-selector .country-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.country-selector .country-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 2px;
}

.country-selector .country-name {
    font-size: 14px;
    color: #111827;
    font-weight: 400;
    line-height: 1;
}

.country-selector .dropdown-arrow {
    color: #6b7280;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.country-selector .country-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.country-selector .country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
}

.country-selector .country-dropdown.show {
    display: block;
}

.country-selector .search-container {
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
}

.country-selector .search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px 6px 0 0;
    font-size: 13px;
    outline: none;
    font-family: 'Inter', sans-serif;
    background: white;
}

.country-selector .search-input:focus {
    outline: none;
}

.country-selector .search-input::placeholder {
    color: #9ca3af;
}

.country-selector .country-list {
    max-height: 240px;
    overflow-y: auto;
}

.country-selector .country-list::-webkit-scrollbar {
    width: 6px;
}

.country-selector .country-list::-webkit-scrollbar-track {
    background: #f9fafb;
}

.country-selector .country-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.country-selector .country-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.country-selector .country-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.country-selector .country-item:hover {
    background-color: #f9fafb;
}

.country-selector .country-item.selected {
    background-color: #eff6ff;
    color: #3b82f6;
}

.country-selector .country-item .country-name {
    font-size: 13px;
    color: #374151;
}

.country-selector .country-item.selected .country-name {
    color: #3b82f6;
}

.country-selector .preferred-section {
    background-color: #f9fafb;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.country-selector .no-results {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-style: italic;
}

.country-selector .separator {
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
}

@media (max-width: 480px) {
    .country-selector .country-button {
        padding: 10px 14px;
    }

    .country-selector .search-input {
        padding: 10px 14px;
    }
}
