.woocommerce.single-product form.cart:has(.sp-optional-products) {
    flex-wrap: wrap;
}
.sp-optional-products {
    order: 1;
    flex: 0 0 100%;
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 12px 0 0;
}
.sp-optional-products legend {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.sp-optional-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #e7e2da;
}
.sp-optional-product__choice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    margin: 0;
}
.sp-optional-product__choice input { flex-shrink: 0; accent-color: #80622b; }
.sp-optional-product__name { display: block; font-weight: 500; }
.sp-optional-product__price { display: block; font-size: .85rem; color: #625b53; }
.sp-optional-product__quantity { flex-shrink: 0; width: 110px; font-size: .8rem; text-align: center; margin: 0; }
.sp-optional-product__quantity .quantity { margin: 4px 0 0 !important; float: none !important; }
.sp-optional-product__quantity input { width: 40px; padding: 0; }
.sp-optional-product__quantity input:disabled { opacity: .45; }
.sp-optional-products-total { order: 2; flex: 0 0 100%; margin: 8px 0 !important; }
.woocommerce.single-product form.cart:has(.sp-optional-products) > .single_add_to_cart_button { order: 3; }
@media (max-width: 480px) {
    .sp-optional-product { gap: 10px; }
    .sp-optional-product__quantity { width: 100px; }
}
