/* Shared accessible currency picker for standalone price-bearing service pages. */
[data-rw-currency-pricing] {
    --rw-currency-surface: rgba(255, 255, 255, 0.94);
    --rw-currency-surface-strong: #ffffff;
    --rw-currency-border: rgba(15, 23, 42, 0.11);
    --rw-currency-muted: #64748b;
    --rw-currency-ink: #0f172a;
}

html[data-theme="dark"] [data-rw-currency-pricing] {
    --rw-currency-surface: rgba(21, 31, 50, 0.94);
    --rw-currency-surface-strong: #172238;
    --rw-currency-border: rgba(148, 163, 184, 0.2);
    --rw-currency-muted: #a8b5c9;
    --rw-currency-ink: #f8fafc;
}

.rw-service-currency-shell {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 20px;
    color: var(--rw-currency-ink);
    background: var(--rw-currency-surface);
    border-bottom: 1px solid var(--rw-currency-border);
}

.rw-service-currency-shell .rw-currency-picker {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(132px, 164px);
    align-items: center;
    justify-content: start;
    gap: 9px;
}

.rw-service-currency-shell .rw-currency-title {
    color: var(--rw-currency-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.075em;
    line-height: 1.15;
    text-transform: uppercase;
}

.rw-service-currency-shell .rw-currency-trigger {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    color: var(--rw-currency-ink);
    background: rgba(var(--rw-specialist-accent-rgb, 8, 125, 241), 0.07);
    border: 1px solid rgba(var(--rw-specialist-accent-rgb, 8, 125, 241), 0.17);
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.rw-service-currency-shell .rw-currency-trigger:focus-visible,
.rw-service-currency-shell .rw-currency-option:focus-visible {
    outline: 3px solid rgba(var(--rw-specialist-accent-rgb, 8, 125, 241), 0.25);
    outline-offset: 2px;
}

.rw-service-currency-shell .rw-currency-flag {
    font-size: 20px;
    line-height: 1;
}

.rw-service-currency-shell .rw-currency-code {
    overflow: hidden;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rw-service-currency-shell .rw-currency-chevron {
    transition: transform 180ms ease;
}

.rw-service-currency-shell .rw-currency-trigger[aria-expanded="true"] .rw-currency-chevron {
    transform: rotate(180deg);
}

.rw-service-currency-shell .rw-currency-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    right: 0;
    width: min(250px, calc(100vw - 42px));
    display: grid;
    gap: 3px;
    padding: 7px;
    color: var(--rw-currency-ink);
    background: var(--rw-currency-surface-strong);
    border: 1px solid var(--rw-currency-border);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.rw-service-currency-shell .rw-currency-menu[hidden] {
    display: none;
}

.rw-service-currency-shell .rw-currency-option {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.rw-service-currency-shell .rw-currency-option:hover,
.rw-service-currency-shell .rw-currency-option[aria-selected="true"] {
    background: rgba(var(--rw-specialist-accent-rgb, 8, 125, 241), 0.1);
}

.rw-service-currency-shell .rw-currency-option strong {
    color: var(--rw-currency-ink);
    font-size: 13px;
}

.rw-service-currency-shell .rw-currency-option span:last-child {
    color: var(--rw-currency-muted);
    font-size: 11px;
    line-height: 1.25;
}

.rw-service-currency-shell .rw-native-currency-select,
.rw-service-currency-shell .rw-visually-hidden {
    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;
}

.rw-service-currency-shell .currency-rate-status {
    max-width: 178px;
    margin: 0;
    color: var(--rw-currency-muted);
    font-size: 9.5px;
    line-height: 1.35;
    text-align: right;
}

@media (max-width: 560px) {
    .rw-service-currency-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        margin-inline: -12px;
        padding: 10px 16px 11px;
    }

    .rw-service-currency-shell .rw-currency-picker {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .rw-service-currency-shell .rw-currency-trigger {
        min-height: 46px;
    }

    .rw-service-currency-shell .rw-currency-menu {
        left: 0;
        right: 0;
        width: 100%;
    }

    .rw-service-currency-shell .currency-rate-status {
        max-width: none;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rw-service-currency-shell .rw-currency-chevron {
        transition: none;
    }
}
