/**
 * Unified Language + Currency Switcher
 * Combines language selection with currency indicator in a single dropdown
 */

/* ── Unified Switcher ──────────────────────────────────────────── */
.fjt-unified-switcher {
    position: relative;
    display: inline-flex;
}

.fjt-unified-switcher .fjt-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #1f2328;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.fjt-unified-switcher .fjt-switcher__toggle:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.fjt-unified-switcher .fjt-flag {
    font-size: 18px;
    line-height: 1;
}

.fjt-unified-switcher .fjt-switcher__caret {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.fjt-unified-switcher .fjt-switcher__toggle[aria-expanded="true"] .fjt-switcher__caret {
    transform: rotate(180deg);
}

.fjt-unified-switcher .fjt-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}

.fjt-unified-switcher .fjt-switcher__menu[hidden] {
    display: none;
}

.fjt-unified-switcher .fjt-switcher__item {
    list-style: none;
}

.fjt-unified-switcher .fjt-switcher__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    text-decoration: none;
    color: #1f2328;
    transition: background 0.1s;
    cursor: pointer;
}

.fjt-unified-switcher .fjt-switcher__link:hover {
    background: #f0fdfa;
    color: #0d9488;
}

.fjt-unified-switcher .fjt-switcher__item[aria-selected="true"] .fjt-switcher__link {
    background: #f0fdfa;
    color: #0d9488;
    font-weight: 600;
}

.fjt-unified-switcher .fjt-switcher__label {
    flex: 1;
    font-weight: 500;
}

.fjt-unified-switcher .fjt-switcher__currency {
    font-size: 11px;
    color: #71879c;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: auto;
}

.fjt-unified-switcher .fjt-switcher__item[aria-selected="true"] .fjt-switcher__currency {
    background: #e0f2f1;
    color: #0d9488;
    font-weight: 500;
}

/* ── Hide the old currency switcher (now integrated) ──────────────────── */
.fjt-currency-switcher {
    display: none !important;
}
