/**
 * Custom Currency Switcher Dropdown
 */

.wcsy-currency-switcher {
    display: inline-block;
    position: relative;
}

.wcsy-custom-select {
    position: relative;
    min-width: 68px;
    width: auto;
    height: 24px;
    user-select: none;
}

.wcsy-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #E6EAF2;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.wcsy-selected-currency {
    flex: 0 0 auto;
    white-space: nowrap;
}

.wcsy-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 12px;
    color: #E6EAF2;
    transition: transform 0.2s ease;
}

.wcsy-custom-select.open .wcsy-arrow {
    transform: rotate(180deg);
}

.wcsy-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: transparent;
    border: none;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.wcsy-custom-select.open .wcsy-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wcsy-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: #E6EAF2;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.wcsy-option:hover {
    color: #7C86F5;
}

.wcsy-option:hover .wcsy-checkmark {
    color: #7C86F5;
}

.wcsy-option[data-selected="true"] {
    font-weight: 500;
    color: #8A94FF;
}

.wcsy-option[data-selected="true"] .wcsy-checkmark {
    color: #8A94FF;
}

.wcsy-checkmark {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: transparent;
    transition: color 0.15s ease;
}

.wcsy-option[data-selected="true"] .wcsy-checkmark {
    color: #8A94FF;
}

/* Scrollbar styling for options */
.wcsy-options::-webkit-scrollbar {
    width: 4px;
}

.wcsy-options::-webkit-scrollbar-track {
    background: transparent;
}

.wcsy-options::-webkit-scrollbar-thumb {
    background: rgba(230, 234, 242, 0.3);
    border-radius: 2px;
}

.wcsy-options::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 234, 242, 0.5);
}

/* Loading state */
.wcsy-currency-switcher.loading .wcsy-custom-select {
    opacity: 0.6;
    pointer-events: none;
}
