/**
 * MOD Currency Switcher — styles
 * Kept neutral-looking; tune to match Justhome header.
 */

.mod-cs-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: inherit;
    color: inherit;
}

.mod-cs-switcher__label {
    opacity: 0.8;
}

/* ---- Dropdown style ------------------------------------------------------- */

.mod-cs-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    line-height: 1;
}

.mod-cs-switcher__toggle:hover,
.mod-cs-switcher.is-open .mod-cs-switcher__toggle {
    border-color: currentColor;
    background: rgba(0, 0, 0, 0.03);
}

.mod-cs-switcher__current {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mod-cs-switcher__caret {
    transition: transform .15s;
    opacity: 0.7;
}

.mod-cs-switcher.is-open .mod-cs-switcher__caret {
    transform: rotate(180deg);
}

.mod-cs-switcher__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    color: #333;
}

.mod-cs-switcher__option {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.mod-cs-switcher__option:hover,
.mod-cs-switcher__option.is-active {
    background: rgba(0, 0, 0, 0.05);
}

.mod-cs-switcher__option.is-active {
    font-weight: 600;
}

.mod-cs-switcher__code {
    font-weight: 600;
    min-width: 32px;
    color: #111;
}

.mod-cs-switcher__name {
    font-size: 12px;
    color: #666;
}

/* ---- Inline / pill style -------------------------------------------------- */

.mod-cs-switcher__pills {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
}

.mod-cs-switcher__pill {
    padding: 5px 12px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.mod-cs-switcher__pill:hover {
    background: rgba(0, 0, 0, 0.08);
}

.mod-cs-switcher__pill.is-active {
    background: #ffffff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Converted price spans — no visible styling by default. */
.mod-cs-converted {
    /* Uncomment to visually confirm detection is working during testing:
    outline: 1px dashed rgba(255, 100, 0, 0.4);
    */
}
