
/* --- Custom Country Dropdown --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100px; /* Match previous width */
    flex-shrink: 0;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation; /* Improves touch responsiveness */
    transition: all 0.15s ease;
    height: 100%; /* Ensure full height */
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.custom-select-trigger .arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.custom-select-trigger .arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--color-gold);
    transition: transform 0.15s ease;
}

.custom-select-wrapper.open .custom-select-trigger .arrow::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%; /* Drop DOWN */
    left: 0;
    right: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: #1a1a1a;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    z-index: 2001; /* Above popup overlay */
    max-height: 200px; /* Scrollable height */
    overflow-y: auto; /* Enable scroll */
    
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.custom-options::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(5px); /* Small gap */
}

.custom-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover, 
.custom-option.selected {
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.05);
}

.custom-option img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.selected-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-value img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}
