/* The selector shares the store's language and theme panel. */
.shop-page .switches-wrapper.hib-fx-dock {
    --preferences-open-width: 168px;
    --preferences-open-height: 246px;
}

.hib-fx-picker {
    box-sizing: border-box;
    inline-size: 142px;
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--text-primary);
}

.hib-fx-picker legend {
    margin-inline: auto;
    margin-block-end: 6px;
    padding: 0;
    font-size: .79rem;
    font-weight: 700;
    line-height: 1.15;
}

.hib-fx-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--text-secondary);
    border-radius: 22px;
    background: rgb(255 255 255 / 10%);
}

.hib-fx-options label {
    position: relative;
    cursor: pointer;
}

.hib-fx-options input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: 0;
    clip-path: inset(50%);
}

.hib-fx-options label span {
    display: grid;
    min-block-size: 44px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 17px;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1;
}

.hib-fx-options input:checked + span {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

[data-theme="dark"] .hib-fx-options input:checked + span {
    color: var(--hib-petrol);
}

.hib-fx-options input:focus-visible + span {
    outline: 2px solid var(--text-primary);
    outline-offset: -2px;
}

@media (hover: hover) {
    .hib-fx-options label:hover input:not(:checked) + span {
        background: var(--glass-border);
    }
}

@media (max-width: 768px) {
    .shop-page .switches-wrapper.hib-fx-dock {
        --preferences-open-width: 160px;
        --preferences-open-height: 232px;
    }
}

@media (forced-colors: active) {
    .hib-fx-options input:checked + span {
        border-color: Highlight;
    }
}

.hib-fx-help { display:block; margin:.45rem 0 .7rem; font-size:.76rem; line-height:1.4; }
#shop-catalog + .hib-fx-help { text-align:center; }
.hib-fx-help[hidden], .hib-fx-estimate[hidden] { display:none !important; }
.shop-page .hib-fx-estimate { color:inherit; font-weight:800; display:block; flex-basis:100%; line-height:1.15; }
.shop-page :is(.shop-price,.sgp-purchase-price,.race-map-price,.checkout-price) .hib-fx-estimate { color:var(--shop-gold,inherit); }
.shop-page .hib-fx-base { font-size:.83rem !important; line-height:1.25; font-weight:650; white-space:nowrap; }

/* Keep data attribution with the control that uses it. */
.shop-page .switches-wrapper.hib-fx-dock-with-note {
    --preferences-open-height: 276px;
}

.hib-fx-note {
    display: block;
    margin-block-start: 7px;
    color: var(--text-secondary);
    font-size: .68rem;
    line-height: 1.3;
    text-align: center;
}

a.hib-fx-note {
    text-underline-offset: .15em;
}

.shop-page .switches-wrapper.hib-fx-standalone {
    display: block;
    padding: 8px 12px;
}

.hib-fx-standalone summary {
    cursor: pointer;
    font-weight: 700;
}

.hib-fx-standalone[open] .hib-fx-picker {
    margin-block-start: 8px;
}

@media (max-width: 768px) {
    .shop-page .switches-wrapper.hib-fx-dock-with-note {
        --preferences-open-height: 262px;
    }
}

