/* ─────────────────────────────────────────
   Rabiya Star Currency Switcher v2.0
   rsc-style.css
───────────────────────────────────────── */

/* ── Wrapper ── */
.rsc-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Select wrap — the visual "button" ── */
.rsc-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* ── Native select — invisible, sits on top for accessibility/click ── */
.rsc-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    border: none;
    background: transparent;
    font-size: 13px;
}

/* ── Custom visible label ── */
.rsc-current-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    position: relative;
}

.rsc-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.rsc-select:focus ~ .rsc-current-label .rsc-chevron,
.rsc-select-wrap:focus-within .rsc-chevron {
    transform: rotate(180deg);
}

.rsc-select:focus,
.rsc-select:active,
.rsc-select-wrap:focus,
.rsc-switcher:focus {
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
}

/* ── Loading state ── */
.rsc-switcher.rsc--loading .rsc-current-label {
    opacity: 0.4;
}

/* ────────────────────────────────────────
   DESKTOP variant
   Injected before account icon in navbar
─────────────────────────────────────────*/
.rsc-switcher--desktop {
    /* Sits inline with other header icons */
    display: inline-flex;
    align-items: center;
    margin: 0 8px 0 0;
    height: 100%;
    vertical-align: middle;
    /* Ensure it's visible on desktop */
    visibility: visible !important;
    opacity: 1 !important;
}

.rsc-switcher--desktop .rsc-current-label {
    font-size: 13px;
}

/* Hide desktop switcher on mobile screens */
@media (max-width: 991px) {
    .rsc-switcher--desktop {
        display: none !important;
    }
}

/* ────────────────────────────────────────
   MOBILE variant
   Appears above account section in mobile menu panel
─────────────────────────────────────────*/
.rsc-switcher--mobile {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px 14px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: transparent;
    box-sizing: border-box;
}

/* Hide mobile switcher on desktop screens */
@media (min-width: 992px) {
    .rsc-switcher--mobile {
        display: none !important;
    }
}

.rsc-switcher--mobile::before {
    content: 'Currency';
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-right: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rsc-switcher--mobile .rsc-select-wrap {
    flex: 1;
}

.rsc-switcher--mobile .rsc-current-label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1410;
    width: 100%;
    justify-content: space-between;
}

.rsc-switcher--mobile .rsc-select {
    width: 100%;
}

/* ────────────────────────────────────────
   Smooth open animation via JS-added class
─────────────────────────────────────────*/
.rsc-dropdown-open .rsc-chevron {
    transform: rotate(180deg);
}

/* ── Subtle price transition when converting ── */
.woocommerce-Price-amount {
    transition: opacity 0.15s ease;
}
