[data-og-option-flow] {
    --og-qty-price-size: 13px;
    --og-order-total-size: clamp(36px, 5vw, 40px);
    --og-order-unit-size: 15px;
}

[data-og-option-flow] :is(.quantity-grid .choice small, #lv-quantities small, .cp-qty-choice small) {
    font-size: var(--og-qty-price-size) !important;
    overflow-wrap: anywhere;
}

[data-og-option-flow] :is(.quantity-grid .choice, .cp-qty-choice) > span {
    min-width: 0;
}

[data-og-option-flow] :is(.summary, .cp-summary, .price) :is(strong[id="og-total"], strong[id="total"], #lv-total, #cp-total, strong[data-total], strong[id="og-unit"]) {
    font-size: var(--og-order-total-size) !important;
}

[data-og-option-flow] :is(.summary, .price, .cp-summary) :is(.per, #cp-unit, [data-unit]) {
    font-size: var(--og-order-unit-size) !important;
}

@media (max-width: 520px) {
    [data-og-option-flow] {
        --og-qty-price-size: 12px;
        --og-order-unit-size: 14px;
    }
}

@media (forced-colors: none) {
    [data-og-option-flow] {
        --og-choice-circle-size: 20px;
        --og-choice-circle-dot: 3.5px;
    }

    [data-og-option-flow][data-og-option-flow] label input[type="radio"] {
        appearance: none;
        box-sizing: border-box;
        width: var(--og-choice-circle-size);
        height: var(--og-choice-circle-size);
        border: 1px solid #778b88;
        border-radius: 50%;
        background: #fff;
        cursor: inherit;
    }

    [data-og-option-flow][data-og-option-flow] label:not(.pv-choice) input[type="radio"] {
        flex: 0 0 var(--og-choice-circle-size);
        margin: 0;
    }

    [data-og-option-flow][data-og-option-flow] label:not(.pv-choice) input[type="radio"]:focus-visible {
        outline: 2px solid #477a70;
        outline-offset: 2px;
    }

    [data-og-option-flow] :is(.cp-preset,button[data-lid]) {
        position: relative;
    }

    [data-og-option-flow] button[data-lid] {
        padding-right: 32px;
    }

    [data-og-option-flow] :is(.cp-preset,button[data-lid])::after {
        content: "";
        position: absolute;
        right: 7px;
        top: 7px;
        width: var(--og-choice-circle-size);
        height: var(--og-choice-circle-size);
        box-sizing: border-box;
        border: 1px solid #778b88;
        border-radius: 50%;
        background: #fff;
        pointer-events: none;
    }

    [data-og-option-flow][data-og-option-flow] label input[type="radio"]:checked,
    [data-og-option-flow] :is(.cp-preset,button[data-lid])[aria-pressed="true"]::after {
        border-color: #477a70;
        background: radial-gradient(circle, #fff var(--og-choice-circle-dot), #477a70 calc(var(--og-choice-circle-dot) + .5px));
    }
}

@media (forced-colors: none) and (max-width: 520px) {
    [data-og-option-flow] {
        --og-choice-circle-size: 18px;
        --og-choice-circle-dot: 3px;
    }
}
