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

/*
 * Keep the native select available for the existing
 * currency-switcher JavaScript, but hide it visually.
 */
.wte-currency-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*
 * Trigger
 */
.wte-currency-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-width: 120px;

    padding: 9px 12px;

    border: 1px solid #dcdfe4;
    border-radius: 8px;

    background: #fff;
    color: #1f2937;

    font: inherit;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.wte-currency-trigger:hover {
    border-color: #b9bec7;
}

.wte-currency-trigger:focus-visible {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}

.wte-currency-trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wte-currency-flag {
    font-size: 18px;
    line-height: 1;
}

.wte-currency-code {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wte-currency-symbol {
    font-size: 14px;
    color: #6b7280;
}

.wte-currency-chevron {
    flex: 0 0 auto;

    color: #6b7280;

    transition: transform 0.2s ease;
}

.wte-currency-dropdown.is-open .wte-currency-chevron {
    transform: rotate(180deg);
}

/*
 * Dropdown menu
 */
.wte-currency-menu {
    position: absolute;
    z-index: 9999;

    top: calc(100% + 6px);
    right: 0;

    width: 220px;

    padding: 6px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease,
        transform 0.15s ease;
}

.wte-currency-dropdown.is-open .wte-currency-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
 * Currency option
 */
.wte-currency-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px 10px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition: background 0.15s ease;
}

.wte-currency-option:hover {
    background: #f5f6f8;
}

.wte-currency-option[aria-selected="true"] {
    background: #f1f2f4;
}

.wte-currency-option-flag {
    width: 24px;

    flex: 0 0 24px;

    font-size: 19px;
    line-height: 1;
}

.wte-currency-option-info {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;

    gap: 2px;
}

.wte-currency-option-code {
    font-size: 14px;
    font-weight: 600;

    color: #1f2937;
}

.wte-currency-option-name {
    overflow: hidden;

    color: #737984;

    font-size: 12px;
    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.wte-currency-option-symbol {
    flex: 0 0 auto;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;
}


/*
 * =========================================================
 * Currency disclaimer
 * =========================================================
 */

.wte-currency-disclaimer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}

/*
 * Backdrop
 */
.wte-currency-disclaimer-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(2px);
}

/*
 * Dialog
 */
.wte-currency-disclaimer-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 420px;

    padding: 26px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);

    animation: wteCurrencyDisclaimerIn 0.18s ease-out;
}

@keyframes wteCurrencyDisclaimerIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/*
 * Close button
 */
.wte-currency-disclaimer-close {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #737984;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.wte-currency-disclaimer-close:hover {
    background: #f5f6f8;
    color: #1f2937;
}

.wte-currency-disclaimer-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}

/*
 * Icon
 */
.wte-currency-disclaimer-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 16px;

    border-radius: 9px;

    background: #f5f6f8;
    color: #4b5563;
}

/*
 * Content
 */
.wte-currency-disclaimer-content h3 {
    margin: 0 32px 9px 0;
    color: rgb(2, 6, 21);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: capitalize;
}

.wte-currency-disclaimer-content p {
    margin: 0;
    color: #020615;
    font-size: 16px;
    line-height: 1.6;
}

.wte-currency-disclaimer-content strong {
    color: #1f2937;
    font-weight: 600;
}

.wte-currency-disclaimer-note {
    margin-top: 0.5rem !important;
    color: #737984 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/*
 * Confirmation button
 */
.wte-currency-disclaimer-button {
    width: 100%;
    margin-top: 20px;
    padding: 10px 14px;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    background: #031b61;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.wte-currency-disclaimer-button:hover {
    background: #fff;
    border: 1px solid #031b61;
    color: #031b61;
}

.wte-currency-disclaimer-button:active {
    transform: translateY(1px);
}

.wte-currency-disclaimer-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

/*
 * Mobile
 */
@media (max-width: 480px) {
    .wte-currency-disclaimer {
        padding: 16px;
    }

    .wte-currency-disclaimer-dialog {
        padding: 22px;
    }
}