/* Purchase selectors: neutral surfaces, with theme emphasis reserved for selection. */
body.single-product-page .floated-mobile:has(.product-option-panel) {
    border-color: color-mix(in srgb, CanvasText 14%, Canvas);
    background: Canvas;
    padding: clamp(14px, 2vw, 22px);
}
body.single-product-page .product-option-panel {
    --product-border: color-mix(in srgb, CanvasText 14%, Canvas);
    --product-soft: color-mix(in srgb, CanvasText 3%, Canvas);
    gap: 0;
    margin-top: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
body.single-product-page .product-option-panel .product-generic-variants { gap: 20px; }
body.single-product-page .product-option-panel > .product-option-group,
body.single-product-page .product-option-panel .product-generic-variant-group,
body.single-product-page .product-option-panel .product-counting-units {
    box-sizing: border-box;
    min-inline-size: 0;
    margin: 0 !important;
    padding: 16px;
    border: 1px solid var(--product-border);
    border-radius: 14px;
    background: Canvas;
}
body.single-product-page .product-option-panel .product-generic-variant-group > legend,
body.single-product-page .product-option-panel .product-unit-heading {
    float: inline-start;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: CanvasText;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}
body.single-product-page .product-option-panel > .product-option-group > span { font-weight: 500; }
body.single-product-page .product-option-panel .check-container label {
    min-width: 104px;
    min-height: 48px;
    border-width: 1px;
    border-radius: 10px;
    color: CanvasText;
    background: Canvas;
    box-shadow: none;
}
body.single-product-page .product-option-panel .check-container:has(.check-color) label {
    padding-inline-start: 40px;
    padding-inline-end: 14px;
}
body.single-product-page .product-option-panel .check-color {
    width: 20px;
    height: 20px;
    pointer-events: none;
}
body.single-product-page .product-option-panel .check-container input:checked + label {
    border-width: 1px;
    border-color: var(--colorMain, CanvasText);
    background: color-mix(in srgb, var(--colorMain, CanvasText) 5%, Canvas);
    box-shadow: inset 0 0 0 1px var(--colorMain, CanvasText);
}
body.single-product-page .product-option-panel .product-counting-units .product-unit-option label {
    min-height: 108px;
    padding: 14px;
    text-align: start;
    border-radius: 10px;
}
body.single-product-page .product-option-panel .product-unit-option-text { text-align: start; }
body.single-product-page .product-option-panel .product-unit-option-text > span { color: CanvasText; }
body.single-product-page .product-option-panel .product-unit-option-price {
    margin-top: 8px;
    padding-top: 10px;
    border-color: var(--product-border);
}
body.single-product-page .product-option-panel .product-unit-option-price strong { color: CanvasText; }
body.single-product-page .product-option-panel .product-unit-option input:checked + label .product-unit-option-price strong {
    color: var(--colorMain, CanvasText);
}
body.single-product-page .product-option-panel .product-unit-details {
    margin-top: 12px;
    padding-top: 6px;
}
body.single-product-page .product-option-panel .product-unit-details__toggle { min-height: 44px; }
body.single-product-page .product-option-panel .product-purchase-actions:not(.is-desktop-fixed) { margin-top: 4px !important; }
body.single-product-page .product-option-panel .product-selected-price-summary {
    border-color: var(--product-border);
    background: var(--product-soft);
    border-radius: 12px;
}
body.single-product-page .product-option-panel .product-selection-jump {
    border-color: var(--product-border);
    border-radius: 9px;
    background: Canvas;
    color: var(--product-muted);
}
body.single-product-page .product-option-panel .product-selection-jump:hover { color: var(--colorMain, CanvasText); }
body.single-product-page .product-option-panel .product-purchase-actions .quantity-box {
    border-color: var(--product-border);
}
body.single-product-page .product-option-panel .product-purchase-actions .quantity-box .increase,
body.single-product-page .product-option-panel .product-purchase-actions .quantity-box .decrease {
    color: CanvasText;
    background: var(--product-soft);
}
@media (min-width: 768px) {
    body.single-product-page .product-option-panel .product-purchase-actions:not(.is-desktop-fixed) .product-purchase-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }
    body.single-product-page .product-option-panel .product-purchase-actions:not(.is-desktop-fixed) .product-priced-button {
        width: 100%;
        min-height: 54px;
        border-radius: 12px;
        box-shadow: none;
    }
}
@media (max-width: 767.98px) {
    body.single-product-page .product-option-panel { gap: 0; padding: 0; }
    body.single-product-page .product-option-panel > .product-option-group,
    body.single-product-page .product-option-panel .product-generic-variant-group,
    body.single-product-page .product-option-panel .product-counting-units { padding: 12px; }
    body.single-product-page .product-option-panel .product-unit-options { grid-template-columns: minmax(0, 1fr); }
    body.single-product-page .product-option-panel .product-counting-units .product-unit-option label { min-height: 96px; }
}

/* Zero-height price and sticky-marker nodes must not add grid gutters. */
body.single-product-page .product-option-panel > .product-generic-variants,
body.single-product-page .product-option-panel > .product-option-group,
body.single-product-page .product-option-panel .product-counting-units { margin-bottom: 16px !important; }
body.single-product-page .product-option-panel .product-selected-price-summary { margin-top: 0; }
