/* =====================================================
   FTS Currency Switcher — Sleek & Elegant
   Glass-morphism design matching the language switcher
   ===================================================== */

#fts-v2-trip-header .fts-v2-thb-currency {
    position: relative;
}

#fts-v2-trip-header .fts-v2-thb-currency .wte-currency-switcher-drpdown {
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1;
}

#fts-v2-trip-header .fts-v2-thb-currency select.wte-cc-currency-list-display {
    display: none !important;
}

/* =====================================================
   Trigger button — glass-morphism pill
   ===================================================== */
#fts-v2-trip-header .fts-v2-thb-currency .nice-select {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 28px 0 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    cursor: pointer !important;
    user-select: none !important;
    white-space: nowrap !important;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select.open {
    background: rgba(231, 154, 69, 0.15) !important;
    border-color: rgba(231, 154, 69, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(231, 154, 69, 0.12) !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select:focus,
#fts-v2-trip-header .fts-v2-thb-currency .nice-select:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6) !important;
    outline-offset: 2px !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select .current {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Chevron arrow */
#fts-v2-trip-header .fts-v2-thb-currency .nice-select::after {
    content: "" !important;
    position: absolute !important;
    right: 11px !important;
    top: 50% !important;
    width: 5px !important;
    height: 5px !important;
    margin-top: -4px !important;
    border-right: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    border-top: 0 !important;
    border-left: 0 !important;
    transform: rotate(45deg) !important;
    pointer-events: none !important;
    transition: transform 0.22s ease, margin-top 0.22s ease, border-color 0.22s ease !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select:hover::after {
    border-color: rgba(255, 255, 255, 0.95) !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select.open::after {
    transform: rotate(-135deg) !important;
    margin-top: -1px !important;
    border-color: rgba(231, 154, 69, 0.9) !important;
}

/* =====================================================
   Dropdown list — clean card with soft shadow
   ===================================================== */
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .list {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 190px !important;
    max-width: 230px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none !important;
    background: rgba(255, 255, 255, 0.97) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transform: translateY(-6px) scale(0.97) !important;
    transform-origin: top right !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                visibility 0s linear 0.2s !important;
    z-index: 1000 !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select.open .list {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                visibility 0s linear 0s !important;
}

/* Scrollbar */
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .list::-webkit-scrollbar {
    width: 5px;
}
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .list::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* Options */
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    min-height: 36px !important;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    border-radius: 9px !important;
    color: #374151 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    text-align: left !important;
    list-style: none !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option:hover,
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.focus {
    background: rgba(231, 154, 69, 0.08) !important;
    color: #92400e !important;
    transform: translateX(2px) !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.selected {
    background: linear-gradient(135deg, rgba(231, 154, 69, 0.12) 0%, rgba(231, 154, 69, 0.18) 100%) !important;
    color: #92400e !important;
    font-weight: 600 !important;
    position: relative !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.selected::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 16px !important;
    background: #e79a45 !important;
    border-radius: 0 3px 3px 0 !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.selected.focus,
#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.selected:hover {
    background: linear-gradient(135deg, rgba(231, 154, 69, 0.16) 0%, rgba(231, 154, 69, 0.24) 100%) !important;
    color: #92400e !important;
}

#fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* =====================================================
   Tablet
   ===================================================== */
@media (max-width: 768px) {
    #fts-v2-trip-header .fts-v2-thb-currency .nice-select {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 26px 0 10px !important;
        font-size: 11.5px !important;
    }

    #fts-v2-trip-header .fts-v2-thb-currency .nice-select .list {
        right: -4px !important;
        min-width: 175px !important;
        max-width: 210px !important;
        max-height: 280px !important;
    }
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 480px) {
    #fts-v2-trip-header .fts-v2-thb-currency .nice-select {
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 22px 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }

    #fts-v2-trip-header .fts-v2-thb-currency .nice-select::after {
        right: 8px !important;
        width: 4px !important;
        height: 4px !important;
    }

    #fts-v2-trip-header .fts-v2-thb-currency .nice-select .list {
        min-width: 165px !important;
        max-width: 200px !important;
        padding: 5px !important;
        border-radius: 12px !important;
        right: -6px !important;
    }

    #fts-v2-trip-header .fts-v2-thb-currency .nice-select .option {
        min-height: 34px !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
}

/* =====================================================
   Mobile burger menu version
   ===================================================== */
#fts-v2-trip-header .fts-v2-thb-mobile-utils .fts-v2-thb-currency {
    width: 100% !important;
}

#fts-v2-trip-header .fts-v2-thb-mobile-utils .fts-v2-thb-currency .nice-select {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    justify-content: space-between !important;
    padding: 0 36px 0 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
}

#fts-v2-trip-header .fts-v2-thb-mobile-utils .fts-v2-thb-currency .nice-select:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#fts-v2-trip-header .fts-v2-thb-mobile-utils .fts-v2-thb-currency .nice-select .list {
    left: 0 !important;
    right: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
    transform-origin: top center !important;
}

/* =====================================================
   RTL support
   ===================================================== */
html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select {
    padding: 0 10px 0 26px !important;
}

html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select::after {
    right: auto !important;
    left: 10px !important;
}

html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select .list {
    right: auto !important;
    left: 0 !important;
    transform-origin: top left !important;
}

html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select .option {
    text-align: right !important;
    justify-content: flex-end !important;
}

html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select .option:hover,
html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.focus {
    transform: translateX(-2px) !important;
}

html[dir="rtl"] #fts-v2-trip-header .fts-v2-thb-currency .nice-select .option.selected::before {
    left: auto !important;
    right: 0 !important;
    border-radius: 3px 0 0 3px !important;
}
