body.single-product {
    background: #07090d !important;
}

body.single-product .woocommerce-breadcrumb,
body.single-product .product_meta,
body.single-product .related.products > h2 {
    display: none !important;
}

body.single-product .sb-single-product {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34) !important;
    color: #fff !important;
    display: grid !important;
    gap: 42px !important;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr) !important;
    margin: 42px auto !important;
    max-width: 1180px !important;
    overflow: hidden !important;
    padding: clamp(18px, 3vw, 34px) !important;
}

body.single-product .sb-single-product::before,
body.single-product .sb-single-product::after {
    content: none !important;
}

body.single-product .sb-single-product__media,
body.single-product .sb-single-product__summary {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

body.single-product .sb-single-product__media {
    align-self: start;
}

body.single-product .sb-single-product__media .woocommerce-product-gallery,
body.single-product .sb-single-product__media div.images {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
}

body.single-product .sb-single-product__media img {
    aspect-ratio: 1 / 1;
    border-radius: 24px !important;
    box-shadow: 0 24px 82px rgba(0, 0, 0, 0.38) !important;
    display: block !important;
    object-fit: cover;
    width: 100% !important;
}

body.single-product .sb-single-product__summary {
    align-self: center;
    background: #111418 !important;
    border: 1px solid rgba(250, 204, 21, 0.14) !important;
    border-radius: 24px !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28) !important;
    padding: clamp(22px, 3vw, 36px) !important;
}

body.single-product .sb-single-product__summary,
body.single-product .sb-single-product__summary p {
    color: rgba(255, 255, 255, 0.74) !important;
}

body.single-product .sb-single-product__summary .product_title {
    color: #fff !important;
    font-size: clamp(36px, 4vw, 60px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
    line-height: 0.96 !important;
    margin: 0 0 14px !important;
}

body.single-product .sb-single-product__summary p.price,
body.single-product .sb-single-product__summary span.price,
body.single-product .sb-single-product__summary .price .amount {
    color: #facc15 !important;
    font-size: 28px !important;
    font-weight: 950 !important;
    margin: 0 0 16px !important;
}

body.single-product .woocommerce-product-details__short-description {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin: 0 0 18px !important;
}

.sb-product-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.sb-product-info-row span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 850;
    padding: 7px 10px;
}

body.sb-product-modal-view .sb-product-allergens {
    background: rgba(250, 204, 21, 0.16);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 12px;
    color: #3f3100 !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
    margin: -10px 0 18px;
    padding: 10px 12px;
    -webkit-text-fill-color: #3f3100 !important;
}

body.sb-product-modal-view .sb-product-allergens * {
    color: #3f3100 !important;
    -webkit-text-fill-color: #3f3100 !important;
}

body.sb-product-modal-view .sb-product-allergens strong {
    color: #92400e !important;
    font-weight: 950;
    -webkit-text-fill-color: #92400e !important;
}

body.single-product .sb-single-product__summary form.cart {
    display: grid !important;
    gap: 16px !important;
    margin: 0 !important;
}

body.single-product .sb-single-product__summary form.cart::before,
body.single-product .sb-single-product__summary form.cart::after {
    content: none !important;
}

body.single-product .wc-pao-addons-container,
body.single-product .product-addon,
body.single-product .yith-wapo-container,
body.single-product .yith-wapo-block,
body.sb-product-modal-view .wapf-field-group,
.sb-product-drawer .wapf-field-group {
    width: 100% !important;
}

body.single-product .wc-pao-addons-container::before,
body.single-product .yith-wapo-container::before,
body.sb-product-modal-view .wapf-field-group::before,
.sb-product-drawer .wapf-field-group::before,
body.single-product .product-addon:first-of-type::before {
    color: #facc15 !important;
    content: "Tilpas din vare";
    display: block;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.sb-addon-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.sb-addon-choice-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.sb-addon-choice {
    align-items: center;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 14px 16px;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
    width: 100%;
}

.sb-addon-choice::before {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: transparent;
    content: "";
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    height: 18px;
    justify-content: center;
    margin-right: 10px;
    width: 18px;
}

.sb-addon-choice__name {
    align-items: center;
    display: flex;
    font-size: 15px;
    font-weight: 900;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.sb-addon-choice__name::before {
    border-radius: 999px;
    content: "";
    flex: 0 0 30px;
    height: 1px;
}

.sb-addon-choice__price {
    color: #facc15;
    font-size: 14px;
    font-weight: 950;
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
}

.sb-addon-choice__price:empty {
    display: none;
}

.sb-addon-choice:hover,
.sb-addon-choice:focus {
    border-color: rgba(250, 204, 21, 0.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    outline: none;
    transform: translateY(-1px);
}

.sb-addon-choice.is-selected {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.1));
    border-color: #facc15;
    box-shadow: 0 16px 38px rgba(250, 204, 21, 0.14);
}

.sb-addon-choice.is-selected::before {
    background: #facc15;
    border-color: #facc15;
    color: #05070d;
    content: "✓";
    font-size: 12px;
    font-weight: 950;
}

.sb-addon-card-option {
    align-items: center;
    background: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 16px !important;
    color: transparent !important;
    cursor: pointer;
    display: grid !important;
    font-size: 0 !important;
    grid-template-columns: minmax(0, 1fr);
    margin: 10px 0 !important;
    min-height: 58px;
    padding: 0 !important;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sb-addon-card-option:hover,
.sb-addon-card-option:focus-within {
    border-color: rgba(250, 204, 21, 0.48) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.sb-addon-card-option.is-selected {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.09)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 38px rgba(250, 204, 21, 0.14);
}

.sb-addon-native-input {
    height: 1px !important;
    left: 18px;
    opacity: 0 !important;
    position: absolute !important;
    top: 50%;
    width: 1px !important;
}

.sb-addon-card-option__visual {
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    display: grid;
    font-size: 15px;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 14px 16px;
    pointer-events: none;
    width: 100%;
}

.sb-addon-card-option__visual::before {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: transparent;
    content: "";
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    height: 18px;
    justify-content: center;
    margin-right: 10px;
    width: 18px;
}

.sb-addon-card-option.is-selected .sb-addon-card-option__visual::before {
    background: #facc15;
    border-color: #facc15;
    color: #05070d;
    content: "✓";
    font-size: 12px;
    font-weight: 950;
}

.sb-addon-card-option__name {
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    font-size: 15px;
    font-weight: 900;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.sb-addon-card-option__name::before {
    content: "";
    flex: 0 0 30px;
    height: 1px;
}

.sb-addon-card-option__price {
    color: #facc15;
    font-size: 14px;
    font-weight: 950;
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
}

.sb-addon-card-option__price:empty {
    display: none;
}

body.sb-product-modal-view .wapf-field-group,
.sb-product-drawer .wapf-field-group {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    display: grid;
    gap: 16px;
    padding: 16px !important;
}

body.sb-product-modal-view .wapf-field-row,
.sb-product-drawer .wapf-field-row {
    display: grid !important;
    gap: 16px !important;
}

body.sb-product-modal-view .wapf-field-container,
.sb-product-drawer .wapf-field-container {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.sb-product-modal-view .wapf-field-label label,
.sb-product-drawer .wapf-field-label label {
    color: #fff !important;
    display: block;
    font-size: 15px !important;
    font-weight: 950 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .wapf-field-description,
.sb-product-drawer .wapf-field-description {
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

body.sb-product-modal-view .wapf-radios,
body.sb-product-modal-view .wapf-checkboxes,
.sb-product-drawer .wapf-radios,
.sb-product-drawer .wapf-checkboxes {
    display: grid !important;
    gap: 10px !important;
}

body.sb-product-modal-view .wapf-checkable,
.sb-product-drawer .wapf-checkable {
    background: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 16px !important;
    cursor: pointer;
    margin: 0 !important;
    min-height: 58px;
    overflow: hidden;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.sb-product-modal-view .wapf-checkable:hover,
body.sb-product-modal-view .wapf-checkable:focus-within,
.sb-product-drawer .wapf-checkable:hover,
.sb-product-drawer .wapf-checkable:focus-within {
    border-color: rgba(250, 204, 21, 0.48) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

body.sb-product-modal-view .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-checkable:has(.wapf-input:checked),
.sb-product-drawer .wapf-checkable.wapf-checked,
.sb-product-drawer .wapf-checkable.is-selected,
.sb-product-drawer .wapf-checkable:has(.wapf-input:checked) {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.09)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 38px rgba(250, 204, 21, 0.14);
}

body.sb-product-modal-view .wapf-input-label,
.sb-product-drawer .wapf-input-label {
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    display: grid !important;
    font-size: 15px !important;
    gap: 12px;
    grid-template-columns: 22px minmax(0, 1fr);
    margin: 0 !important;
    min-height: 58px;
    padding: 14px 16px !important;
    width: 100%;
}

body.sb-product-modal-view .wapf-input-label .wapf-input,
.sb-product-drawer .wapf-input-label .wapf-input {
    appearance: none;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px;
    box-shadow: none !important;
    display: inline-grid !important;
    height: 20px !important;
    margin: 0 !important;
    min-height: 20px !important;
    place-items: center;
    position: static !important;
    width: 20px !important;
}

body.sb-product-modal-view .wapf-input-label .wapf-input.sb-addon-native-input,
.sb-product-drawer .wapf-input-label .wapf-input.sb-addon-native-input {
    height: 20px !important;
    left: auto !important;
    opacity: 1 !important;
    position: static !important;
    top: auto !important;
    width: 20px !important;
}

body.sb-product-modal-view .wapf-input-label .wapf-input[type="checkbox"],
.sb-product-drawer .wapf-input-label .wapf-input[type="checkbox"] {
    border-radius: 6px;
}

body.sb-product-modal-view .wapf-input-label .wapf-input:checked,
.sb-product-drawer .wapf-input-label .wapf-input:checked {
    background: #facc15 !important;
    border-color: #facc15 !important;
}

body.sb-product-modal-view .wapf-input-label .wapf-input:checked::before,
.sb-product-drawer .wapf-input-label .wapf-input:checked::before {
    color: #05070d;
    content: "✓";
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

body.sb-product-modal-view .wapf-label-text,
.sb-product-drawer .wapf-label-text {
    align-items: center;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    font-weight: 900;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.25;
    min-width: 0;
    width: 100%;
}

body.sb-product-modal-view .wapf-pricing-hint,
.sb-product-drawer .wapf-pricing-hint {
    color: #facc15 !important;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

body.sb-product-modal-view .wapf-product-totals,
.sb-product-drawer .wapf-product-totals {
    background: rgba(250, 204, 21, 0.08) !important;
    border: 1px solid rgba(250, 204, 21, 0.18) !important;
    border-radius: 16px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    margin: 0 !important;
    padding: 14px 16px !important;
}

body.sb-product-modal-view .wapf-product-totals .price,
body.sb-product-modal-view .wapf-product-totals .amount,
.sb-product-drawer .wapf-product-totals .price,
.sb-product-drawer .wapf-product-totals .amount {
    color: #facc15 !important;
    font-weight: 950 !important;
}

.sb-addon-pill {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    min-height: 44px;
    padding: 10px 14px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.sb-addon-pill:hover {
    border-color: rgba(250, 204, 21, 0.48);
    transform: translateY(-1px);
}

.sb-addon-pill.is-selected {
    background: #facc15;
    border-color: #facc15;
    color: #05070d;
    font-weight: 950;
}

.sb-addon-enhanced-select {
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 1px !important;
}

body.single-product .sb-single-product__summary select {
    background-color: #0d1117 !important;
    border: 1px solid rgba(250, 204, 21, 0.32) !important;
    border-radius: 14px !important;
    color: #fff !important;
    min-height: 50px !important;
    padding: 0 40px 0 14px !important;
    width: 100% !important;
}

body.single-product .sb-single-product__summary select:focus {
    border-color: #facc15 !important;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2) !important;
    outline: none !important;
}

.sb-product-qty {
    align-items: center;
    display: inline-grid;
    grid-template-columns: 56px minmax(68px, 96px) 56px;
    width: fit-content;
}

.sb-product-qty button {
    align-items: center;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.28);
    color: #facc15;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    font-weight: 950;
    height: 58px;
    justify-content: center;
}

.sb-product-qty button:first-child {
    border-radius: 18px 0 0 18px;
}

.sb-product-qty button:last-child {
    border-radius: 0 18px 18px 0;
}

.sb-product-qty button:hover {
    background: #facc15;
    color: #05070d;
}

body.single-product .sb-product-qty .qty,
body.single-product .sb-single-product__summary form.cart .qty {
    background: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    border-right: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    height: 58px !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100% !important;
}

.sb-product-total {
    align-items: center;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    font-size: 14px;
    font-weight: 850;
    justify-content: space-between;
    padding: 14px 16px;
}

.sb-product-total strong {
    color: #facc15;
    font-size: 18px;
    font-weight: 950;
}

body.single-product .sb-single-product__summary .single_add_to_cart_button {
    background: #facc15 !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 46px rgba(250, 204, 21, 0.28) !important;
    color: #05070d !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    min-height: 56px !important;
    padding: 16px 22px !important;
    width: 100% !important;
}

body.single-product .sb-single-product__summary .single_add_to_cart_button:hover {
    background: #ffdc32 !important;
    transform: translateY(-1px);
}

body.single-product .sb-single-product__after {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    body.single-product .sb-single-product {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin: 0 auto !important;
        padding: 14px !important;
    }

    body.single-product .sb-single-product__summary {
        border-radius: 18px !important;
        padding: 18px !important;
    }

    body.single-product .sb-single-product__summary .product_title {
        font-size: 34px !important;
    }

    .sb-addon-pill {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .sb-product-qty,
    body.single-product .sb-single-product__summary .single_add_to_cart_button {
        width: 100%;
    }
}

body.single-product.sb-product-modal-view .sb-single-product {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 100vh;
    padding: 14px !important;
}

body.single-product.sb-product-modal-view .sb-single-product__media {
    margin-bottom: 14px !important;
}

body.single-product.sb-product-modal-view .sb-single-product__media img {
    max-height: 280px;
}

body.single-product.sb-product-modal-view .sb-single-product__summary {
    border-radius: 18px !important;
    padding: 18px !important;
}

body.single-product.sb-product-modal-view .sb-single-product__summary .product_title {
    font-size: 34px !important;
}

/* Final product customization polish */
body.single-product .sb-single-product {
    background:
        radial-gradient(circle at 8% 0%, rgba(250, 204, 21, 0.11), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)) !important;
}

body.single-product .sb-single-product__summary {
    background:
        radial-gradient(circle at 100% 0%, rgba(27, 155, 216, 0.08), transparent 30%),
        #111418 !important;
}

body.single-product .sb-single-product__summary .product_title {
    text-wrap: balance;
}

body.single-product .woocommerce-product-details__short-description {
    color: rgba(255, 255, 255, 0.72) !important;
    max-width: 54ch;
}

body.single-product .wc-pao-addons-container,
body.single-product .product-addon,
body.single-product .yith-wapo-container,
body.single-product .yith-wapo-block {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    padding: 16px !important;
}

body.single-product .wc-pao-addon-name,
body.single-product .product-addon h3,
body.single-product .yith-wapo-block-title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    margin-bottom: 10px !important;
}

body.single-product .wc-pao-addon-wrap label,
body.single-product .product-addon label,
body.single-product .yith-wapo-option label {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.single-product .wc-pao-addon-wrap input[type="checkbox"],
body.single-product .wc-pao-addon-wrap input[type="radio"],
body.single-product .product-addon input[type="checkbox"],
body.single-product .product-addon input[type="radio"],
body.single-product .yith-wapo-option input[type="checkbox"],
body.single-product .yith-wapo-option input[type="radio"] {
    accent-color: #facc15;
}

body.single-product .wc-pao-addon-wrap:has(input[type="checkbox"]),
body.single-product .wc-pao-addon-wrap:has(input[type="radio"]),
body.single-product .product-addon p:has(input[type="checkbox"]),
body.single-product .product-addon p:has(input[type="radio"]),
body.single-product .yith-wapo-option {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin: 8px 0;
    padding: 12px 14px;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.single-product .wc-pao-addon-wrap:has(input[type="checkbox"]:checked),
body.single-product .wc-pao-addon-wrap:has(input[type="radio"]:checked),
body.single-product .product-addon p:has(input[type="checkbox"]:checked),
body.single-product .product-addon p:has(input[type="radio"]:checked),
body.single-product .yith-wapo-option:has(input[type="checkbox"]:checked),
body.single-product .yith-wapo-option:has(input[type="radio"]:checked) {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.58);
    box-shadow: 0 12px 28px rgba(250, 204, 21, 0.08);
}

body.single-product .wc-pao-addon-wrap:has(input[type="checkbox"]):hover,
body.single-product .wc-pao-addon-wrap:has(input[type="radio"]):hover,
body.single-product .product-addon p:has(input[type="checkbox"]):hover,
body.single-product .product-addon p:has(input[type="radio"]):hover,
body.single-product .yith-wapo-option:hover {
    border-color: rgba(250, 204, 21, 0.38);
    transform: translateY(-1px);
}

.sb-addon-pill {
    box-shadow: inset 0 0 0 1px transparent;
}

.sb-addon-pill.is-selected {
    box-shadow: 0 12px 30px rgba(250, 204, 21, 0.18);
}

.sb-product-total {
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(250, 204, 21, 0.06));
}

body.single-product.sb-product-modal-view {
    background: #07090d !important;
}

body.single-product.sb-product-modal-view .sb-single-product {
    background: transparent !important;
}

body.single-product.sb-product-modal-view .sb-single-product__summary {
    box-shadow: none !important;
}

body.single-product.sb-product-modal-view .sb-single-product__media img {
    border-radius: 20px !important;
    width: 100% !important;
}

@media (max-width: 760px) {
    body.single-product.sb-product-modal-view .sb-single-product {
        padding: 12px !important;
    }

    body.single-product.sb-product-modal-view .sb-single-product__summary .product_title {
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .sb-addon-pill-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sb-addon-pill,
    .sb-addon-choice {
        width: 100%;
    }

    .sb-addon-choice {
        min-height: 62px;
        padding: 15px 16px;
    }
}
/* WAPF cards inside the Order Online product drawer iframe */
body.sb-product-modal-view .wapf-checkboxes,
body.sb-product-modal-view .wapf-radios {
    display: grid !important;
    gap: 10px !important;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-checkable,
body.sb-product-modal-view .wapf-radios .wapf-checkable {
    background: #0d1117 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    cursor: pointer;
    margin: 0 !important;
    overflow: hidden;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-checkable:hover,
body.sb-product-modal-view .wapf-radios .wapf-checkable:hover,
body.sb-product-modal-view .wapf-checkboxes .wapf-checkable:focus-within,
body.sb-product-modal-view .wapf-radios .wapf-checkable:focus-within {
    border-color: rgba(250, 204, 21, 0.5) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
    transform: translateY(-1px);
}

body.sb-product-modal-view .wapf-checkboxes .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-radios .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-checkboxes .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-radios .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-checkboxes .wapf-checkable:has(.wapf-input:checked),
body.sb-product-modal-view .wapf-radios .wapf-checkable:has(.wapf-input:checked) {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(250, 204, 21, 0.09)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 38px rgba(250, 204, 21, 0.14) !important;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-input-label,
body.sb-product-modal-view .wapf-radios .wapf-input-label {
    align-items: center !important;
    cursor: pointer;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    margin: 0 !important;
    min-height: 58px;
    padding: 14px 16px !important;
    width: 100% !important;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-input,
body.sb-product-modal-view .wapf-radios .wapf-input {
    appearance: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    display: inline-grid !important;
    float: none !important;
    height: 20px !important;
    margin: 0 !important;
    min-height: 20px !important;
    opacity: 1 !important;
    place-items: center;
    position: static !important;
    width: 20px !important;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-input[type="checkbox"] {
    border-radius: 6px !important;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-input:checked,
body.sb-product-modal-view .wapf-radios .wapf-input:checked {
    background: #facc15 !important;
    border-color: #facc15 !important;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-input:checked::before,
body.sb-product-modal-view .wapf-radios .wapf-input:checked::before {
    color: #05070d;
    content: "✓";
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-label-text,
body.sb-product-modal-view .wapf-radios .wapf-label-text {
    align-items: center;
    color: rgba(255, 255, 255, 0.92) !important;
    display: flex !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.25;
    min-width: 0;
    padding-left: 0 !important;
    width: 100%;
}

body.sb-product-modal-view .wapf-checkboxes .wapf-pricing-hint,
body.sb-product-modal-view .wapf-radios .wapf-pricing-hint {
    color: #facc15 !important;
    flex: 0 0 auto;
    font-size: 14px !important;
    font-weight: 950 !important;
    opacity: 1 !important;
    white-space: nowrap;
}
body.sb-drawer-open aside.sb-sticky-cart-bar {
  display: none !important;
}
.sb-product-drawer__backdrop {
  backdrop-filter: none !important;
  background: rgba(0,0,0,0.4) !important; /* optional softer dark */
}
.sb-product-drawer__backdrop {
  display: none !important;
}
body.sb-drawer-open .sb-product-drawer__backdrop,
.sb-product-drawer__backdrop,
.sb-product-drawer-backdrop,
[class*="drawer__backdrop"],
[class*="drawer-backdrop"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  background: rgba(0, 0, 0, 0.45) !important;
}
body.sb-drawer-open .site,
body.sb-drawer-open .entry-content,
body.sb-drawer-open .woocommerce,
body.sb-drawer-open main {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Compact product customization drawer */
body.sb-product-modal-view .sb-single-product,
body.single-product.sb-product-modal-view .sb-single-product {
    display: block !important;
    min-height: auto !important;
    padding: 10px 12px 260px !important;
}

body.sb-product-modal-view .sb-single-product__media,
body.single-product.sb-product-modal-view .sb-single-product__media {
    display: none !important;
}

body.sb-product-modal-view div.images,
body.sb-product-modal-view .woocommerce-product-gallery {
    display: none !important;
}

/* Final drawer visual pass: keep summary and addons polished after legacy overrides. */
body.sb-product-modal-view .sb-single-product__summary {
    background:
        radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.09), transparent 34%),
        #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    padding: 18px !important;
}

body.sb-product-modal-view .sb-single-product__summary .product_title {
    color: #fff !important;
    font-size: clamp(28px, 5vw, 36px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .sb-single-product__summary p.price,
body.sb-product-modal-view .sb-single-product__summary span.price,
body.sb-product-modal-view .sb-single-product__summary .price .amount {
    color: #facc15 !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .woocommerce-product-details__short-description {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
    padding-bottom: 14px;
}

body.sb-product-modal-view .wapf-field-group {
    background: rgba(5, 7, 13, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding: 14px !important;
}

body.sb-product-modal-view .wapf-checkable {
    background: #0b0f14 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 15px !important;
    min-height: 58px !important;
}

body.sb-product-modal-view .wapf-input-label {
    min-height: 58px !important;
    padding: 13px 14px !important;
}

body.sb-product-modal-view .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-checkable:has(.wapf-input:checked) {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0.1)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.16) !important;
}

body.sb-product-modal-view .sb-product-total {
    background: rgba(17, 24, 39, 0.97) !important;
    border: 1px solid rgba(250, 204, 21, 0.22) !important;
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.34) !important;
    min-height: 56px;
}

body.sb-product-modal-view .sb-product-total strong {
    color: #facc15 !important;
    font-size: 20px !important;
}

body.sb-product-modal-view .sb-addon-has-error {
    border-color: rgba(250, 204, 21, 0.72) !important;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.22), 0 18px 38px rgba(0, 0, 0, 0.28) !important;
}

body.sb-product-modal-view .sb-addon-has-error .wapf-checkable,
body.sb-product-modal-view .sb-addon-has-error .sb-addon-choice {
    border-color: rgba(250, 204, 21, 0.42) !important;
}

body.sb-product-modal-view .sb-addon-validation {
    align-items: center;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(250, 204, 21, 0.36);
    border-left: 4px solid #facc15;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 12px;
}

body.sb-product-modal-view .sb-addon-validation span {
    align-items: center;
    background: #facc15;
    border-radius: 999px;
    color: #05070d;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 950;
    height: 20px;
    justify-content: center;
    width: 20px;
}

body.sb-product-modal-view .sb-addon-validation strong {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

/* Final drawer visual pass: keep summary and addons polished after legacy overrides. */
body.sb-product-modal-view .sb-single-product__summary {
    background:
        radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.09), transparent 34%),
        #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    padding: 18px !important;
}

body.sb-product-modal-view .sb-single-product__summary .product_title {
    color: #fff !important;
    font-size: clamp(28px, 5vw, 36px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .sb-single-product__summary p.price,
body.sb-product-modal-view .sb-single-product__summary span.price,
body.sb-product-modal-view .sb-single-product__summary .price .amount {
    color: #facc15 !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .woocommerce-product-details__short-description {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
    padding-bottom: 14px;
}

body.sb-product-modal-view .wapf-field-group {
    background: rgba(5, 7, 13, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding: 14px !important;
}

body.sb-product-modal-view .wapf-checkable {
    background: #0b0f14 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 15px !important;
    min-height: 58px !important;
}

body.sb-product-modal-view .wapf-input-label {
    min-height: 58px !important;
    padding: 13px 14px !important;
}

body.sb-product-modal-view .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-checkable:has(.wapf-input:checked) {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0.1)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.16) !important;
}

body.sb-product-modal-view .sb-product-total {
    background: rgba(17, 24, 39, 0.97) !important;
    border: 1px solid rgba(250, 204, 21, 0.22) !important;
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.34) !important;
    min-height: 56px;
}

body.sb-product-modal-view .sb-product-total strong {
    color: #facc15 !important;
    font-size: 20px !important;
}

/* Premium drawer-only product summary and option polish */
body.sb-product-modal-view .sb-single-product {
    background: #07090d !important;
    padding-top: 12px !important;
}

body.sb-product-modal-view .sb-single-product__summary {
    background:
        radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.09), transparent 34%),
        #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    color: rgba(255, 255, 255, 0.76) !important;
    padding: 18px !important;
}

body.sb-product-modal-view .sb-single-product__summary .product_title {
    color: #fff !important;
    font-size: clamp(28px, 5vw, 36px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .sb-single-product__summary p.price,
body.sb-product-modal-view .sb-single-product__summary span.price,
body.sb-product-modal-view .sb-single-product__summary .price .amount {
    color: #facc15 !important;
    display: inline-flex !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .woocommerce-product-details__short-description {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
    padding-bottom: 14px;
}

body.sb-product-modal-view .sb-product-info-row {
    margin: 0 0 14px !important;
}

body.sb-product-modal-view .sb-product-info-row span {
    background: rgba(250, 204, 21, 0.1) !important;
    border-color: rgba(250, 204, 21, 0.22) !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.sb-product-modal-view .wapf-field-group {
    background: rgba(5, 7, 13, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding: 14px !important;
}

body.sb-product-modal-view .wapf-field-row,
body.sb-product-modal-view .wapf-checkboxes,
body.sb-product-modal-view .wapf-radios {
    gap: 10px !important;
}

body.sb-product-modal-view .wapf-field-label label {
    color: #fff !important;
    font-size: 14px !important;
    letter-spacing: 0.01em;
    margin-bottom: 8px !important;
}

body.sb-product-modal-view .wapf-checkable {
    background: #0b0f14 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 15px !important;
    min-height: 58px !important;
}

body.sb-product-modal-view .wapf-input-label {
    min-height: 58px !important;
    padding: 13px 14px !important;
}

body.sb-product-modal-view .wapf-checkable:hover,
body.sb-product-modal-view .wapf-checkable:focus-within {
    border-color: rgba(250, 204, 21, 0.58) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24) !important;
}

body.sb-product-modal-view .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-checkable:has(.wapf-input:checked) {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0.1)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.16) !important;
}

body.sb-product-modal-view .sb-product-total {
    align-items: center !important;
    background: rgba(17, 24, 39, 0.97) !important;
    border: 1px solid rgba(250, 204, 21, 0.22) !important;
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.34) !important;
    display: flex !important;
    justify-content: space-between !important;
    min-height: 56px;
}

body.sb-product-modal-view .sb-product-total strong {
    color: #facc15 !important;
    font-size: 20px !important;
}

body.sb-product-modal-view .sb-single-product__summary .single_add_to_cart_button {
    box-shadow: 0 14px 34px rgba(250, 204, 21, 0.28) !important;
    font-size: 16px !important;
    min-height: 54px !important;
}

@media (max-width: 760px) {
    body.sb-product-modal-view .sb-single-product {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.sb-product-modal-view .sb-single-product__summary {
        border-radius: 18px !important;
        padding: 16px !important;
    }

    body.sb-product-modal-view .sb-single-product__summary .product_title {
        font-size: 30px !important;
    }
}

body.sb-product-modal-view div.images,
body.sb-product-modal-view .woocommerce-product-gallery {
    display: none !important;
}

body.sb-product-modal-view .sb-single-product__media,
body.single-product.sb-product-modal-view .sb-single-product__media {
    align-items: center !important;
    background: linear-gradient(135deg, #111827, #0b0f14) !important;
    border-radius: 16px !important;
    display: flex !important;
    height: min(240px, 30vh) !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    max-height: 240px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
body.sb-product-modal-view .sb-single-product__media div.images,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
body.single-product.sb-product-modal-view .sb-single-product__media div.images {
    margin-bottom: 0 !important;
}

body.sb-product-modal-view .sb-single-product__media img,
body.sb-product-modal-view .sb-single-product__placeholder-image,
body.single-product.sb-product-modal-view .sb-single-product__media img {
    aspect-ratio: 16 / 9 !important;
    border-radius: 16px !important;
    display: block !important;
    height: min(240px, 30vh) !important;
    max-height: 240px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__wrapper,
body.sb-product-modal-view .sb-single-product__media .flex-viewport,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image a,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__wrapper,
body.single-product.sb-product-modal-view .sb-single-product__media .flex-viewport,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image a {
    display: block !important;
    height: min(240px, 30vh) !important;
    max-height: 240px !important;
    overflow: hidden !important;
    width: 100% !important;
}

body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img.wp-post-image,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img.wp-post-image,
body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img {
    aspect-ratio: auto !important;
    height: 100% !important;
    max-height: 240px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

body.sb-product-modal-view .sb-single-product__summary,
body.single-product.sb-product-modal-view .sb-single-product__summary {
    border-radius: 16px !important;
    margin-top: 0 !important;
    padding: 14px !important;
}

body.sb-product-modal-view .sb-single-product__summary .product_title,
body.single-product.sb-product-modal-view .sb-single-product__summary .product_title {
    font-size: clamp(24px, 4vw, 30px) !important;
    line-height: 1.02 !important;
    margin-bottom: 8px !important;
}

body.sb-product-modal-view .sb-single-product__summary p.price,
body.sb-product-modal-view .sb-single-product__summary span.price,
body.sb-product-modal-view .sb-single-product__summary .price .amount,
body.single-product.sb-product-modal-view .sb-single-product__summary p.price,
body.single-product.sb-product-modal-view .sb-single-product__summary span.price,
body.single-product.sb-product-modal-view .sb-single-product__summary .price .amount {
    font-size: 22px !important;
    margin-bottom: 8px !important;
}

body.sb-product-modal-view .woocommerce-product-details__short-description,
body.single-product.sb-product-modal-view .woocommerce-product-details__short-description {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
}

body.sb-product-modal-view .sb-single-product__summary form.cart,
body.single-product.sb-product-modal-view .sb-single-product__summary form.cart {
    gap: 10px !important;
    padding-bottom: 112px !important;
}

body.sb-product-modal-view .wapf-field-group,
body.single-product.sb-product-modal-view .wapf-field-group {
    margin-top: 10px !important;
    padding: 12px !important;
}

body.sb-product-modal-view .wapf-field-row,
body.single-product.sb-product-modal-view .wapf-field-row {
    gap: 8px !important;
    margin-bottom: 8px !important;
}

body.sb-product-modal-view .wapf-checkboxes,
body.sb-product-modal-view .wapf-radios,
body.single-product.sb-product-modal-view .wapf-checkboxes,
body.single-product.sb-product-modal-view .wapf-radios {
    gap: 8px !important;
}

body.sb-product-modal-view .wapf-checkable,
body.single-product.sb-product-modal-view .wapf-checkable {
    min-height: 48px !important;
    padding: 0 !important;
}

body.sb-product-modal-view .wapf-input-label,
body.single-product.sb-product-modal-view .wapf-input-label {
    min-height: 46px !important;
    padding: 10px 12px !important;
}

body.sb-product-modal-view .sb-product-total,
body.single-product.sb-product-modal-view .sb-product-total {
    bottom: calc(66px + max(10px, env(safe-area-inset-bottom))) !important;
    left: 10px !important;
    padding: 11px 13px !important;
    right: 10px !important;
    z-index: 120 !important;
}

body.sb-product-modal-view .sb-single-product__summary .single_add_to_cart_button,
body.single-product.sb-product-modal-view .sb-single-product__summary .single_add_to_cart_button {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    min-height: 52px !important;
    padding: 13px 18px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    z-index: 121 !important;
}

@media (max-width: 760px) {
    body.sb-product-modal-view .sb-single-product,
    body.single-product.sb-product-modal-view .sb-single-product {
        padding: 10px 10px 124px !important;
    }

    body.sb-product-modal-view .sb-single-product__media img,
    body.sb-product-modal-view .sb-single-product__placeholder-image,
    body.single-product.sb-product-modal-view .sb-single-product__media img {
        height: 200px !important;
        max-height: 200px !important;
    }

    body.sb-product-modal-view .sb-single-product__media,
    body.single-product.sb-product-modal-view .sb-single-product__media {
        height: 200px !important;
        max-height: 200px !important;
        min-height: 0 !important;
    }

    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__wrapper,
    body.sb-product-modal-view .sb-single-product__media .flex-viewport,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image a,
    body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
    body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__wrapper,
    body.single-product.sb-product-modal-view .sb-single-product__media .flex-viewport,
    body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image,
    body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image a {
        height: 200px !important;
        max-height: 200px !important;
    }

    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img.wp-post-image,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img,
    body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img.wp-post-image,
    body.single-product.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img {
        max-height: 200px !important;
    }

    body.sb-product-modal-view .sb-single-product__summary,
    body.single-product.sb-product-modal-view .sb-single-product__summary {
        padding: 12px !important;
    }

    body.sb-product-modal-view .sb-single-product__summary .product_title,
    body.single-product.sb-product-modal-view .sb-single-product__summary .product_title {
        font-size: 26px !important;
    }
}

/* Hard cap the real product drawer media stack inside the iframe. */
body.sb-product-modal-view .sb-single-product__media,
body.sb-product-modal-view .sb-single-product__media div.images,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
body.sb-product-modal-view .sb-single-product__media figure.woocommerce-product-gallery__wrapper,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__wrapper,
body.sb-product-modal-view .sb-single-product__media .flex-viewport,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image a {
    aspect-ratio: auto !important;
    height: 220px !important;
    max-height: 220px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
}

body.sb-product-modal-view .sb-single-product__media img,
body.sb-product-modal-view .sb-single-product__media .wp-post-image,
body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img,
body.sb-product-modal-view .sb-single-product__placeholder-image {
    aspect-ratio: auto !important;
    display: block !important;
    height: 220px !important;
    max-height: 220px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
}

body.sb-product-modal-view .sb-drawer-product-image {
    background: linear-gradient(135deg, #111827, #0b0f14);
    border-radius: 18px;
    height: 220px;
    max-height: 220px;
    overflow: hidden;
    width: 100%;
}

body.sb-product-modal-view .sb-drawer-product-image img {
    display: block;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

@media (max-width: 760px) {
    body.sb-product-modal-view .sb-single-product__media,
    body.sb-product-modal-view .sb-single-product__media div.images,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
    body.sb-product-modal-view .sb-single-product__media figure.woocommerce-product-gallery__wrapper,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__wrapper,
    body.sb-product-modal-view .sb-single-product__media .flex-viewport,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image a,
    body.sb-product-modal-view .sb-single-product__media img,
    body.sb-product-modal-view .sb-single-product__media .wp-post-image,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery__image img,
    body.sb-product-modal-view .sb-single-product__placeholder-image {
        height: 200px !important;
        max-height: 200px !important;
    }

    body.sb-product-modal-view .sb-drawer-product-image,
    body.sb-product-modal-view .sb-drawer-product-image img {
        height: 200px;
        max-height: 200px;
    }
}

/* Drawer scroll safety: keep product content clear of fixed total/action controls. */
html:has(body.sb-product-modal-view),
body.sb-product-modal-view {
    min-height: 100%;
    overflow-y: auto !important;
}

body.sb-product-modal-view .sb-single-product__summary,
body.single-product.sb-product-modal-view .sb-single-product__summary {
    margin-bottom: 22px !important;
}

body.sb-product-modal-view .sb-product-total,
body.single-product.sb-product-modal-view .sb-product-total {
    display: none !important;
}

body.sb-product-modal-view .sb-single-product__media,
body.single-product.sb-product-modal-view .sb-single-product__media {
    display: none !important;
}

body.sb-product-modal-view div.images,
body.sb-product-modal-view .woocommerce-product-gallery {
    display: none !important;
}

/* Final drawer visual pass: keep summary and addons polished after legacy overrides. */
body.sb-product-modal-view .sb-single-product__summary {
    background:
        radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.09), transparent 34%),
        #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
    padding: 18px !important;
}

body.sb-product-modal-view .sb-single-product__summary .product_title {
    color: #fff !important;
    font-size: clamp(28px, 5vw, 36px) !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .sb-single-product__summary p.price,
body.sb-product-modal-view .sb-single-product__summary span.price,
body.sb-product-modal-view .sb-single-product__summary .price .amount {
    color: #facc15 !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    margin: 0 0 10px !important;
}

body.sb-product-modal-view .woocommerce-product-details__short-description {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
    padding-bottom: 14px;
}

body.sb-product-modal-view .wapf-field-group {
    background: rgba(5, 7, 13, 0.42) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding: 14px !important;
}

body.sb-product-modal-view .wapf-checkable {
    background: #0b0f14 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 15px !important;
    min-height: 58px !important;
}

body.sb-product-modal-view .wapf-input-label {
    min-height: 58px !important;
    padding: 13px 14px !important;
}

body.sb-product-modal-view .wapf-checkable.wapf-checked,
body.sb-product-modal-view .wapf-checkable.is-selected,
body.sb-product-modal-view .wapf-checkable:has(.wapf-input:checked) {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0.1)) !important;
    border-color: #facc15 !important;
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.16) !important;
}

body.sb-product-modal-view .sb-product-total {
    display: none !important;
}

body.sb-product-modal-view .sb-product-total strong {
    color: #facc15 !important;
    font-size: 20px !important;
}

.sb-order-menu-card__badge {
    align-self: flex-start !important;
    display: inline-block !important;
    max-width: fit-content !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    width: auto !important;
}

/* Final mobile product drawer polish. Visual/layout only. */
@media (max-width: 768px) {
    body .sb-product-drawer.is-open {
        align-items: flex-end !important;
        display: flex !important;
        overflow: hidden !important;
    }

    body .sb-product-drawer.is-open .sb-product-drawer__panel {
        background: #f8fafc !important;
        border: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.32) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        height: min(94dvh, 94vh) !important;
        margin: 0 !important;
        max-height: min(94dvh, 94vh) !important;
        max-width: none !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body .sb-product-drawer.is-open .sb-product-drawer__frame {
        background: #f8fafc !important;
        border: 0 !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    html:has(body.sb-product-modal-view),
    body.sb-product-modal-view {
        background: #f8fafc !important;
        box-sizing: border-box !important;
        color: #111827 !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scroll-padding-bottom: 116px !important;
    }

    body.sb-product-modal-view *,
    body.single-product.sb-product-modal-view * {
        box-sizing: border-box !important;
    }

    body.sb-product-modal-view .sb-single-product,
    body.single-product.sb-product-modal-view .sb-single-product,
    body.sb-product-modal-view div.product,
    body.single-product.sb-product-modal-view div.product {
        background: #f8fafc !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        margin: 0 !important;
        max-width: none !important;
        min-height: 100% !important;
        overflow: visible !important;
        padding: 12px 12px calc(106px + env(safe-area-inset-bottom)) !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .sb-single-product__media,
    body.single-product.sb-product-modal-view .sb-single-product__media {
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
        display: flex !important;
        height: clamp(154px, 38vw, 190px) !important;
        margin: 0 0 12px !important;
        max-height: 190px !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.sb-product-modal-view div.images,
    body.sb-product-modal-view .woocommerce-product-gallery,
    body.sb-product-modal-view .sb-single-product__media .woocommerce-product-gallery,
    body.sb-product-modal-view .sb-single-product__media div.images,
    body.single-product.sb-product-modal-view div.images,
    body.single-product.sb-product-modal-view .woocommerce-product-gallery {
        display: block !important;
        height: 100% !important;
        margin: 0 !important;
        max-height: none !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .sb-single-product__media img,
    body.sb-product-modal-view .sb-single-product__media .wp-post-image,
    body.sb-product-modal-view .sb-single-product__placeholder-image,
    body.single-product.sb-product-modal-view .sb-single-product__media img {
        border-radius: 20px !important;
        display: block !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .sb-single-product__summary,
    body.single-product.sb-product-modal-view .sb-single-product__summary,
    body.sb-product-modal-view div.product div.summary,
    body.single-product.sb-product-modal-view div.product div.summary {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #111827 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .sb-single-product__summary .product_title,
    body.single-product.sb-product-modal-view .sb-single-product__summary .product_title,
    body.sb-product-modal-view div.product .product_title {
        color: #111827 !important;
        font-size: 27px !important;
        font-weight: 950 !important;
        letter-spacing: 0 !important;
        line-height: 1.05 !important;
        margin: 0 54px 8px 0 !important;
    }

    body.sb-product-modal-view .sb-single-product__summary p.price,
    body.sb-product-modal-view .sb-single-product__summary span.price,
    body.sb-product-modal-view .sb-single-product__summary .price .amount,
    body.sb-product-modal-view p.price,
    body.sb-product-modal-view span.price,
    body.sb-product-modal-view .price,
    body.sb-product-modal-view .amount,
    body.single-product.sb-product-modal-view .sb-single-product__summary p.price,
    body.single-product.sb-product-modal-view .sb-single-product__summary span.price,
    body.single-product.sb-product-modal-view .sb-single-product__summary .price .amount {
        color: #111827 !important;
        display: inline-flex !important;
        font-size: 20px !important;
        font-weight: 950 !important;
        line-height: 1.1 !important;
        margin: 0 0 8px !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #111827 !important;
    }

    body.sb-product-modal-view .sb-product-info-row {
        background: transparent !important;
        border: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
        margin: 0 0 14px !important;
        overflow: visible !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .sb-product-info-row span {
        background: #fff7cc !important;
        border: 1px solid rgba(255, 204, 0, 0.55) !important;
        border-radius: 999px !important;
        color: #111827 !important;
        flex: 0 1 auto !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        max-width: calc(100vw - 72px) !important;
        padding: 8px 11px !important;
        white-space: nowrap !important;
        -webkit-text-fill-color: #111827 !important;
    }

    body.sb-product-modal-view .woocommerce-product-details__short-description,
    body.single-product.sb-product-modal-view .woocommerce-product-details__short-description,
    body.sb-product-modal-view .woocommerce-product-details__short-description p {
        border: 0 !important;
        color: #4b5563 !important;
        font-size: 14px !important;
        line-height: 1.42 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
    }

    body.sb-product-modal-view .sb-single-product__summary form.cart,
    body.single-product.sb-product-modal-view .sb-single-product__summary form.cart,
    body.sb-product-modal-view div.product form.cart {
        display: grid !important;
        gap: 12px !important;
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        padding: 0 0 104px !important;
        width: min(100%, calc(100vw - 72px)) !important;
    }

    body.sb-product-modal-view .wc-pao-addons-container,
    body.sb-product-modal-view .yith-wapo-container,
    body.sb-product-modal-view .wapf,
    body.sb-product-modal-view .wapf-wrapper,
    body.sb-product-modal-view .wapf-field-group,
    body.sb-product-modal-view .wapf-field-container,
    body.sb-product-modal-view .wc-pao-addon,
    body.sb-product-modal-view .product-addon,
    body.sb-product-modal-view .yith-wapo-block {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #111827 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: calc(100vw - 52px) !important;
        width: min(100%, calc(100vw - 52px)) !important;
    }

    body.sb-product-modal-view .wapf-field-group,
    body.sb-product-modal-view .wc-pao-addon,
    body.sb-product-modal-view .product-addon,
    body.sb-product-modal-view .yith-wapo-block {
        display: grid !important;
        gap: 9px !important;
        margin-top: 14px !important;
    }

    body.sb-product-modal-view .wapf-field-label,
    body.sb-product-modal-view .wapf-field-label label,
    body.sb-product-modal-view .wc-pao-addon-name,
    body.sb-product-modal-view .product-addon h3,
    body.sb-product-modal-view .yith-wapo-block .title {
        color: #111827 !important;
        font-size: 15px !important;
        font-weight: 950 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    body.sb-product-modal-view .wapf-field-description,
    body.sb-product-modal-view .wc-pao-addon-description,
    body.sb-product-modal-view .product-addon-description {
        color: #6b7280 !important;
        font-size: 13px !important;
        line-height: 1.34 !important;
        margin: 0 !important;
    }

    body.sb-product-modal-view .wapf-radios,
    body.sb-product-modal-view .wapf-checkboxes,
    body.sb-product-modal-view .wc-pao-addon-wrap,
    body.sb-product-modal-view .yith-wapo-options,
    body.sb-product-modal-view .sb-addon-choice-list {
        display: grid !important;
        gap: 8px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .wapf-checkable,
    body.sb-product-modal-view .wapf-input-label,
    body.sb-product-modal-view .wc-pao-addon label,
    body.sb-product-modal-view .product-addon label,
    body.sb-product-modal-view .yith-wapo-option label,
    body.sb-product-modal-view .sb-addon-choice,
    body.sb-product-modal-view .sb-addon-card-option {
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        color: #111827 !important;
        cursor: pointer !important;
        display: flex !important;
        gap: 10px !important;
        justify-content: space-between !important;
        margin: 0 !important;
        min-height: 50px !important;
        padding: 12px 13px !important;
        width: 100% !important;
    }

    body.sb-product-modal-view .wapf-input-label {
        display: grid !important;
        grid-template-columns: 22px minmax(0, 1fr) !important;
        justify-content: stretch !important;
    }

    body.sb-product-modal-view .wapf-input,
    body.sb-product-modal-view .sb-addon-native-input {
        accent-color: #ffcc00 !important;
        flex: 0 0 auto !important;
    }

    body.sb-product-modal-view .wapf-label-text,
    body.sb-product-modal-view .sb-addon-choice__name,
    body.sb-product-modal-view .sb-addon-card-option__name {
        color: #111827 !important;
        font-size: 14px !important;
        font-weight: 850 !important;
        line-height: 1.25 !important;
        min-width: 0 !important;
    }

    body.sb-product-modal-view .wapf-pricing-hint,
    body.sb-product-modal-view .sb-addon-choice__price,
    body.sb-product-modal-view .sb-addon-card-option__price {
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        margin-left: auto !important;
        white-space: nowrap !important;
    }

    body.sb-product-modal-view .wapf-checkable.wapf-checked,
    body.sb-product-modal-view .wapf-checkable.is-selected,
    body.sb-product-modal-view .wapf-checkable:has(.wapf-input:checked),
    body.sb-product-modal-view .wc-pao-addon label:has(input:checked),
    body.sb-product-modal-view .product-addon label:has(input:checked),
    body.sb-product-modal-view .yith-wapo-option label:has(input:checked),
    body.sb-product-modal-view .sb-addon-choice.is-selected,
    body.sb-product-modal-view .sb-addon-card-option.is-selected {
        background: #fff7cc !important;
        border-color: #ffcc00 !important;
        box-shadow: 0 8px 20px rgba(255, 204, 0, 0.16) !important;
    }

    body.sb-product-modal-view .quantity,
    body.sb-product-modal-view form.cart .quantity.sb-product-qty {
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid rgba(15, 23, 42, 0.12) !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        height: 48px !important;
        justify-self: start !important;
        margin: 2px 0 0 !important;
        max-width: 164px !important;
        overflow: hidden !important;
        width: auto !important;
    }

    body.sb-product-modal-view .quantity button,
    body.sb-product-modal-view .sb-product-qty button {
        align-items: center !important;
        background: #111827 !important;
        border: 0 !important;
        color: #ffffff !important;
        display: inline-flex !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        height: 48px !important;
        justify-content: center !important;
        min-width: 48px !important;
        width: 48px !important;
    }

    body.sb-product-modal-view .quantity input.qty,
    body.sb-product-modal-view .quantity input {
        background: #ffffff !important;
        border: 0 !important;
        color: #111827 !important;
        font-size: 16px !important;
        font-weight: 950 !important;
        height: 48px !important;
        min-width: 52px !important;
        padding: 0 !important;
        text-align: center !important;
        width: 52px !important;
    }

    body.sb-product-modal-view .sb-product-total,
    body.single-product.sb-product-modal-view .sb-product-total {
        display: none !important;
    }

    body.sb-product-modal-view .single_add_to_cart_button,
    body.single-product.sb-product-modal-view .single_add_to_cart_button,
    body.sb-product-modal-view div.product form.cart .single_add_to_cart_button,
    body.sb-product-modal-view form.cart button.single_add_to_cart_button,
    body.sb-product-modal-view form.cart button[name="add-to-cart"],
    body.single-product.sb-product-modal-view form.cart button[name="add-to-cart"] {
        background: #ffcc00 !important;
        border: 1px solid #d9a900 !important;
        border-radius: 999px !important;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2), 0 8px 20px rgba(255, 204, 0, 0.22) !important;
        color: #080a0e !important;
        display: flex !important;
        font-size: 16px !important;
        font-weight: 950 !important;
        justify-content: center !important;
        line-height: 1.15 !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 56px !important;
        padding: 15px 18px !important;
        text-align: center !important;
        width: 100% !important;
    }
}

@media (max-width: 374px) {
    body.sb-product-modal-view .sb-single-product,
    body.single-product.sb-product-modal-view .sb-single-product,
    body.sb-product-modal-view div.product,
    body.single-product.sb-product-modal-view div.product {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.sb-product-modal-view .sb-single-product__summary .product_title,
    body.single-product.sb-product-modal-view .sb-single-product__summary .product_title {
        font-size: 24px !important;
        margin-right: 48px !important;
    }

    body.sb-product-modal-view .single_add_to_cart_button,
    body.single-product.sb-product-modal-view .single_add_to_cart_button,
    body.sb-product-modal-view div.product form.cart .single_add_to_cart_button,
    body.sb-product-modal-view form.cart button.single_add_to_cart_button,
    body.sb-product-modal-view form.cart button[name="add-to-cart"],
    body.single-product.sb-product-modal-view form.cart button[name="add-to-cart"] {
        left: auto !important;
        right: auto !important;
        width: 100% !important;
    }
}

/* Product drawer option UX polish. Visual/state only; native inputs remain unchanged. */
body.sb-product-modal-view {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.sb-product-modal-view .sb-single-product,
body.single-product.sb-product-modal-view .sb-single-product,
body.sb-product-modal-view div.product,
body.single-product.sb-product-modal-view div.product {
    padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
}

body.sb-product-modal-view .sb-single-product__summary form.cart,
body.single-product.sb-product-modal-view .sb-single-product__summary form.cart {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
}

body.sb-product-modal-view .sb-addon-collapsible,
body.single-product.sb-product-modal-view .sb-addon-collapsible {
    display: grid !important;
    gap: 0 !important;
}

body.sb-product-modal-view .sb-addon-collapse-toggle,
body.single-product.sb-product-modal-view .sb-addon-collapse-toggle {
    align-items: center;
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
    color: #111827 !important;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 34px;
    min-height: 58px;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

body.sb-product-modal-view .sb-addon-collapse__text,
body.single-product.sb-product-modal-view .sb-addon-collapse__text {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.sb-product-modal-view .sb-addon-collapse__text strong,
body.single-product.sb-product-modal-view .sb-addon-collapse__text strong {
    color: #111827 !important;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
}

body.sb-product-modal-view .sb-addon-collapse__summary,
body.single-product.sb-product-modal-view .sb-addon-collapse__summary {
    color: #64748b !important;
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.sb-product-modal-view .sb-addon-collapse__chevron,
body.single-product.sb-product-modal-view .sb-addon-collapse__chevron {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

body.sb-product-modal-view .sb-addon-collapse__chevron::before,
body.single-product.sb-product-modal-view .sb-addon-collapse__chevron::before {
    border-bottom: 2px solid #111827;
    border-right: 2px solid #111827;
    content: "";
    height: 8px;
    margin-top: -3px;
    transform: rotate(45deg);
    transition: transform 160ms ease;
    width: 8px;
}

body.sb-product-modal-view .sb-addon-collapsible:not(.is-collapsed) .sb-addon-collapse__chevron::before,
body.single-product.sb-product-modal-view .sb-addon-collapsible:not(.is-collapsed) .sb-addon-collapse__chevron::before {
    margin-top: 3px;
    transform: rotate(225deg);
}

body.sb-product-modal-view .sb-addon-collapse__content,
body.single-product.sb-product-modal-view .sb-addon-collapse__content {
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

body.sb-product-modal-view .sb-addon-collapsible.is-collapsed .sb-addon-collapse__content,
body.single-product.sb-product-modal-view .sb-addon-collapsible.is-collapsed .sb-addon-collapse__content {
    display: none !important;
}

body.sb-product-modal-view .sb-addon-collapse__content > .wapf-field-label,
body.sb-product-modal-view .sb-addon-collapse__content > .wc-pao-addon-name,
body.sb-product-modal-view .sb-addon-collapse__content > h3,
body.sb-product-modal-view .sb-addon-collapse__content > .yith-wapo-block-title,
body.single-product.sb-product-modal-view .sb-addon-collapse__content > .wapf-field-label,
body.single-product.sb-product-modal-view .sb-addon-collapse__content > .wc-pao-addon-name,
body.single-product.sb-product-modal-view .sb-addon-collapse__content > h3,
body.single-product.sb-product-modal-view .sb-addon-collapse__content > .yith-wapo-block-title {
    display: none !important;
}

body.sb-product-modal-view .wapf-radios .wapf-input[type="radio"],
body.single-product.sb-product-modal-view .wapf-radios .wapf-input[type="radio"] {
    border-radius: 999px !important;
}

body.sb-product-modal-view .wapf-radios .wapf-input[type="radio"]:checked::before,
body.single-product.sb-product-modal-view .wapf-radios .wapf-input[type="radio"]:checked::before {
    background: #05070d;
    border-radius: 999px;
    content: "" !important;
    height: 8px;
    width: 8px;
}

body.sb-product-modal-view .sb-addon-choice[role="radio"].is-selected::before,
body.single-product.sb-product-modal-view .sb-addon-choice[role="radio"].is-selected::before,
body.sb-product-modal-view .sb-addon-card-option[role="radio"].is-selected .sb-addon-card-option__visual::before,
body.single-product.sb-product-modal-view .sb-addon-card-option[role="radio"].is-selected .sb-addon-card-option__visual::before {
    background: #ffffff !important;
    border-color: #facc15 !important;
    box-shadow: inset 0 0 0 5px #facc15;
    color: transparent !important;
    content: "" !important;
}

body.sb-product-modal-view .sb-addon-choice[role="checkbox"].is-selected::before,
body.single-product.sb-product-modal-view .sb-addon-choice[role="checkbox"].is-selected::before,
body.sb-product-modal-view .sb-addon-card-option[role="checkbox"].is-selected .sb-addon-card-option__visual::before,
body.single-product.sb-product-modal-view .sb-addon-card-option[role="checkbox"].is-selected .sb-addon-card-option__visual::before {
    content: "✓" !important;
}

@media (max-width: 760px) {
    body.sb-product-modal-view .sb-addon-collapse-toggle,
    body.single-product.sb-product-modal-view .sb-addon-collapse-toggle {
        border-radius: 15px !important;
        min-height: 54px;
        padding: 10px 12px;
    }

    body.sb-product-modal-view .sb-addon-collapse__content,
    body.single-product.sb-product-modal-view .sb-addon-collapse__content {
        gap: 6px;
        padding-top: 8px;
    }
}

/* Mobile drawer bottom guard: keep the normal-flow CTA clear of old bottom masks. */
@media (max-width: 768px) {
    body .sb-product-drawer.is-open::before,
    body .sb-product-drawer.is-open::after,
    body .sb-product-drawer.is-open .sb-product-drawer__panel::before,
    body .sb-product-drawer.is-open .sb-product-drawer__panel::after,
    body .sb-product-drawer.is-open .sb-product-drawer__frame::before,
    body .sb-product-drawer.is-open .sb-product-drawer__frame::after {
        content: none !important;
        display: none !important;
        pointer-events: none !important;
    }

    body .sb-product-drawer.is-open .sb-product-drawer__frame {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        -webkit-overflow-scrolling: touch;
    }

    body.sb-product-modal-view .sb-single-product,
    body.single-product.sb-product-modal-view .sb-single-product,
    body.sb-product-modal-view div.product,
    body.single-product.sb-product-modal-view div.product {
        padding-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    }

    body.sb-product-modal-view .sb-single-product__summary form.cart,
    body.single-product.sb-product-modal-view .sb-single-product__summary form.cart,
    body.sb-product-modal-view div.product form.cart,
    body.single-product.sb-product-modal-view div.product form.cart {
        padding-bottom: 0 !important;
    }

    body.sb-product-modal-view .single_add_to_cart_button,
    body.single-product.sb-product-modal-view .single_add_to_cart_button,
    body.sb-product-modal-view div.product form.cart .single_add_to_cart_button,
    body.single-product.sb-product-modal-view div.product form.cart .single_add_to_cart_button,
    body.sb-product-modal-view form.cart button.single_add_to_cart_button,
    body.sb-product-modal-view form.cart button[name="add-to-cart"],
    body.single-product.sb-product-modal-view form.cart button[name="add-to-cart"],
    body .sb-product-drawer.is-open button.single_add_to_cart_button {
        bottom: auto !important;
        margin: 8px 0 calc(18px + env(safe-area-inset-bottom)) !important;
        position: static !important;
        z-index: 1 !important;
    }
}
