:root {
    --al-commerce-ink: #10251c;
    --al-commerce-green: #1f6a49;
    --al-commerce-green-dark: #154b35;
    --al-commerce-line: #dbe5df;
    --al-commerce-paper: #f5f8f6;
    --al-commerce-card: #fff;
}

body.single-product,
body.woocommerce-cart,
body.woocommerce-checkout {
    background: var(--al-commerce-paper);
    color: var(--al-commerce-ink);
}

/* Product decision support. */
.single-product .al-product-promise {
    background: #eef7f2;
    border: 1px solid #cfe1d6;
    border-radius: 12px;
    display: grid;
    gap: .3rem;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
}

.single-product .al-product-promise strong {
    color: var(--al-commerce-ink);
    font-size: .94rem;
}

.single-product .al-product-promise span {
    color: #52675d;
    font-size: .86rem;
    line-height: 1.5;
}

.single-product .al-product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.single-product .al-product-trust li {
    align-items: center;
    color: #355648;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 700;
    gap: .4rem;
}

.single-product .al-product-trust li::before {
    background: var(--al-commerce-green);
    border-radius: 999px;
    color: #fff;
    content: "✓";
    display: inline-grid;
    font-size: .62rem;
    height: 1.2rem;
    place-items: center;
    width: 1.2rem;
}

.single-product .product.product_cat-uncategorized :is(.ast-woo-product-category, .product_meta .posted_in) {
    display: none !important;
}

/* Woo and Elementor both ship high-specificity button skins. Keep the actual
   purchase action on the same primary contract as the rest of AquariumLesson. */
html body.single-product form.cart button.single_add_to_cart_button.button.alt {
    -webkit-text-fill-color: #fff !important;
    align-items: center;
    background: linear-gradient(135deg, #173f2c 0%, #2c6b4a 56%, #407f5c 100%) !important;
    border: 1px solid rgba(120, 185, 163, .38) !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(24, 77, 53, .22) !important;
    color: #fff !important;
    display: inline-flex !important;
    font-weight: 700 !important;
    justify-content: center;
    line-height: 1.1 !important;
    min-height: 48px;
    padding: .82rem 1.35rem !important;
    text-decoration: none !important;
}

html body.single-product form.cart button.single_add_to_cart_button.button.alt:hover,
html body.single-product form.cart button.single_add_to_cart_button.button.alt:focus-visible {
    background: linear-gradient(135deg, #123624 0%, #245d3f 56%, #356f50 100%) !important;
    border-color: rgba(120, 185, 163, .55) !important;
    box-shadow: 0 14px 32px rgba(24, 77, 53, .28) !important;
    color: #fff !important;
}

/* Shared cart and checkout surfaces. */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    margin-inline: auto;
    max-width: 1180px;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
    background: var(--al-commerce-card);
    border: 1px solid var(--al-commerce-line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(21, 64, 44, .07);
}

.woocommerce-cart .woocommerce-cart-form {
    padding: 1rem;
}

.woocommerce-cart .woocommerce-cart-form + .cart-collaterals {
    margin-top: 1.25rem;
}

.woocommerce-cart .cart-collaterals {
    padding: 1rem 1.1rem;
}

.woocommerce-cart .cart_totals,
.woocommerce-cart .cart_totals table {
    width: 100% !important;
}

.woocommerce-cart .cart_totals h2 {
    color: var(--al-commerce-ink);
    font-size: 1.25rem;
}

.woocommerce-cart .woocommerce-shipping-totals:not(.al-cart-shipping-summary) {
    display: none;
}

.woocommerce-cart .al-cart-shipping-summary td {
    color: #617269;
    font-size: .88rem;
}

.woocommerce-cart .al-cart-shipping-summary__value {
    display: block;
}

.woocommerce-cart .al-cart-shipping-summary .shipping-calculator-button {
    color: var(--al-commerce-green);
    display: inline-block;
    font-size: .84rem;
    font-weight: 700;
    margin-top: .22rem;
    text-decoration: underline;
    text-underline-offset: .16em;
}

.woocommerce-cart .al-cart-shipping-summary .shipping-calculator-form {
    margin-top: .7rem;
}

/* Replace WooCommerce's loader.svg dependency everywhere it renders a
   block overlay. The same lightweight spinner is also used over express
   Apple Pay and Google Pay actions. */
.woocommerce .blockUI.blockOverlay::before,
.woocommerce .loader::before {
    box-sizing: border-box !important;
    width: 24px !important;
    height: 24px !important;
    margin: -12px 0 0 -12px !important;
    background: transparent !important;
    background-image: none !important;
    border: 2px solid rgba(44, 107, 74, .24) !important;
    border-top-color: var(--al-commerce-green) !important;
    border-radius: 50% !important;
    animation: al-commerce-spinner .7s linear infinite !important;
}

.woocommerce .wcpay-express-checkout-wrapper .blockUI.blockOverlay::before,
.woocommerce .wcpay-express-checkout-wrapper .loader::before {
    border-color: rgba(255, 255, 255, .42) !important;
    border-top-color: #fff !important;
}

@keyframes al-commerce-spinner {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce .blockUI.blockOverlay::before,
    .woocommerce .loader::before {
        animation-duration: 1.8s !important;
    }
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order {
    align-items: center;
    background: var(--al-commerce-green) !important;
    border: 1px solid var(--al-commerce-green) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(31, 106, 73, .2) !important;
    color: #fff !important;
    display: flex !important;
    font-weight: 800 !important;
    justify-content: center;
    min-height: 48px;
    width: 100%;
}

.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout {
    margin-top: 1rem;
}

/* Woo and theme styles are deliberately aggressive here. Bind the foreign
   buttons to the AquariumLesson primary contract with enough scope to keep
   their label, fill and hover state stable. */
html body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.button.alt.al-btn.al-btn--primary,
html body.woocommerce-checkout form.checkout #payment button#place_order.button.alt.al-btn.al-btn--primary {
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, #173f2c 0%, #2c6b4a 56%, #407f5c 100%) !important;
    border-color: rgba(120, 185, 163, .38) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout #place_order:hover {
    background: var(--al-commerce-green-dark) !important;
    border-color: var(--al-commerce-green-dark) !important;
}

/* Cart and checkout: hide the empty WooPayments express-payment shell. The
   regular checkout CTA remains the only visible purchase action here. */
body.woocommerce-cart .wc-proceed-to-checkout > .wcpay-express-checkout-wrapper,
.woocommerce-checkout form.checkout > .wcpay-express-checkout-wrapper {
    display: none !important;
}

/* Checkout: one direct vertical path from details to payment and order. */
.woocommerce-checkout form.checkout {
    display: block;
    margin-inline: auto;
    max-width: 820px;
}

/* Keep the optional coupon path inside the same checkout column. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout form.checkout_coupon {
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 820px;
    width: 100%;
}

body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #eef7f2;
    border: 1px solid #cfe1d6;
    border-radius: 12px;
    color: #355648;
    margin: 0 0 .75rem !important;
    padding: .8rem 1rem !important;
}

body.woocommerce-checkout form.checkout_coupon {
    background: #fff;
    border: 1px solid var(--al-commerce-line);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(21, 64, 44, .06);
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    padding: 1rem !important;
}

body.woocommerce-checkout form.checkout_coupon[style*="display: block"],
body.woocommerce-checkout form.checkout_coupon[style*="display:block"] {
    display: grid !important;
}

body.woocommerce-checkout form.checkout_coupon .form-row {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

body.woocommerce-checkout form.checkout_coupon .form-row-first {
    grid-column: 1;
}

body.woocommerce-checkout form.checkout_coupon .form-row-last {
    grid-column: 2;
}

html body.woocommerce-checkout form.checkout_coupon button.button {
    -webkit-text-fill-color: #fff !important;
    align-items: center;
    background: linear-gradient(135deg, #173f2c 0%, #2c6b4a 56%, #407f5c 100%) !important;
    border: 1px solid rgba(120, 185, 163, .38) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(31, 106, 73, .18) !important;
    color: #fff !important;
    display: inline-flex !important;
    font-weight: 700 !important;
    justify-content: center;
    min-height: 48px;
    padding: .75rem 1.2rem !important;
    white-space: nowrap;
}

html body.woocommerce-checkout form.checkout_coupon button.button:hover,
html body.woocommerce-checkout form.checkout_coupon button.button:focus-visible {
    background: linear-gradient(135deg, #123624 0%, #245d3f 56%, #356f50 100%) !important;
    color: #fff !important;
}

.woocommerce-checkout #customer_details {
    margin-bottom: 1rem;
    padding: 1.15rem;
}

.woocommerce-checkout #order_review_heading {
    display: none;
}

.woocommerce-checkout #order_review {
    max-height: none;
    overflow: visible;
    padding: 1rem;
    position: static;
}

.woocommerce-checkout #order_review::before {
    color: var(--al-commerce-ink);
    content: "Your order";
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

/* The item column is a price, while the footer is the actual subtotal. Keep
   the useful table heading but remove Woo's misleading duplicate label. */
.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-total {
    font-size: 0;
    text-align: right;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-total::after {
    content: "Price";
    font-size: .8rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead .product-name {
    text-align: left;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table {
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .cart_item td {
    border-bottom: 1px solid #e4ebe7;
    padding: .75rem .55rem;
    vertical-align: top;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-name {
    color: var(--al-commerce-ink);
    font-weight: 600;
    text-align: left;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tbody .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    white-space: nowrap;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    border-bottom: 1px solid #e4ebe7;
    padding: .85rem .55rem;
    vertical-align: top;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
    color: var(--al-commerce-ink);
    font-weight: 700;
}

.woocommerce-checkout #shipping_method {
    display: grid;
    gap: .5rem;
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.woocommerce-checkout #shipping_method li {
    align-items: flex-start;
    display: flex;
    line-height: 1.4;
    list-style: none !important;
    margin: 0;
}

.woocommerce-checkout #shipping_method input[type="radio"] {
    flex: 0 0 auto;
    margin: .25rem .45rem 0 0;
}

.woocommerce-checkout #shipping_method label {
    color: #304b3f;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total :is(th, td) {
    border-bottom: 0;
    color: var(--al-commerce-ink);
    font-size: 1.04rem;
    font-weight: 800;
    padding-top: 1rem;
}

.woocommerce-checkout :is(input.input-text, select, textarea) {
    border: 1px solid #cbd8d1 !important;
    border-radius: 9px !important;
    min-height: 46px;
}

.woocommerce-checkout .al-checkout-trust {
    background: #eef7f2;
    border: 1px solid #cfe1d6;
    border-radius: 10px;
    display: grid;
    gap: .25rem;
    margin: 1rem 0;
    padding: .8rem .9rem;
}

.woocommerce-checkout .al-checkout-trust strong {
    color: var(--al-commerce-ink);
    font-size: .9rem;
}

.woocommerce-checkout .al-checkout-trust span {
    color: #52675d;
    font-size: .78rem;
}

@media (max-width: 767px) {
    body.woocommerce-checkout .site-content,
    body.woocommerce-checkout .site-content > .ast-container,
    body.woocommerce-checkout .site-content :is(.elementor, .e-con, .e-con-inner, .elementor-widget-shortcode, .elementor-shortcode) {
        margin-inline: 0 !important;
        max-width: none !important;
        padding-inline: 0 !important;
        width: 100% !important;
    }

    body.woocommerce-checkout .woocommerce {
        box-sizing: border-box;
        max-width: none;
        padding-inline: max(.5rem, env(safe-area-inset-left)) max(.5rem, env(safe-area-inset-right));
        width: 100%;
    }

    body.woocommerce-checkout .woocommerce-form-coupon-toggle,
    body.woocommerce-checkout form.checkout_coupon,
    body.woocommerce-checkout form.checkout {
        max-width: none;
        width: 100%;
    }

    body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
    body.woocommerce-checkout .woocommerce-form-coupon-toggle a,
    body.woocommerce-checkout :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
        box-sizing: border-box;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal !important;
    }

    body.woocommerce-checkout form.checkout_coupon[style*="display: block"],
    body.woocommerce-checkout form.checkout_coupon[style*="display:block"] {
        grid-template-columns: 1fr;
    }

    body.woocommerce-checkout form.checkout_coupon .form-row-first,
    body.woocommerce-checkout form.checkout_coupon .form-row-last {
        grid-column: 1;
    }

    html body.woocommerce-checkout form.checkout_coupon button.button {
        width: 100%;
    }

    body.woocommerce-cart {
        --al-commerce-header-height: 69px;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.woocommerce-cart #page {
        height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
        height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
        overflow: hidden;
    }

    body.woocommerce-cart header.elementor-location-header,
    body.woocommerce-cart #alHeader {
        background: #fff;
        position: sticky !important;
        top: 0;
        z-index: 1000;
    }

    body.woocommerce-cart .site-content {
        height: calc(100% - var(--al-commerce-header-height));
        overflow: hidden;
        padding: 0 !important;
    }

    body.woocommerce-cart .site-content :is(.ast-container, .elementor, .e-con, .e-con-inner, .elementor-widget-shortcode, .elementor-shortcode) {
        height: 100%;
        min-height: 0 !important;
    }

    body.woocommerce-cart .site-content :is(.e-con, .e-con-inner) {
        --padding-top: 0px !important;
        --padding-right: 0px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .site-content .e-con-inner,
    body.woocommerce-cart .site-content .elementor-widget-shortcode {
        width: 100%;
    }

    body.woocommerce-cart .woocommerce {
        display: grid;
        gap: 0;
        grid-template-rows: auto minmax(0, 1fr) auto;
        height: 100%;
        max-width: none;
        min-height: 0;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-notices-wrapper:empty {
        display: none;
    }

    body.woocommerce-cart .woocommerce-notices-wrapper {
        grid-row: 1;
    }

    body.woocommerce-cart .woocommerce-cart-form {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .85rem .9rem 1rem;
        -webkit-overflow-scrolling: touch;
    }

    body.woocommerce-cart .woocommerce > .woocommerce-cart-form {
        grid-row: 2;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents,
    body.woocommerce-cart .woocommerce-cart-form__contents tbody {
        display: block;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents thead {
        display: none;
    }

    body.woocommerce-cart .woocommerce-cart-form__cart-item {
        background: #fff;
        border: 1px solid var(--al-commerce-line);
        border-radius: 14px;
        display: grid !important;
        gap: .35rem .8rem;
        grid-template-columns: 78px minmax(0, 1fr) auto;
        margin-bottom: .75rem;
        padding: .75rem;
        position: relative;
    }

    body.woocommerce-cart .woocommerce-cart-form__cart-item > td {
        border: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__cart-item > td::before {
        content: none !important;
    }

    body.woocommerce-cart td.product-thumbnail {
        display: block !important;
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    body.woocommerce-cart td.product-thumbnail img {
        background: #f4f6f4;
        border-radius: 10px;
        height: 78px;
        object-fit: contain;
        width: 78px;
    }

    body.woocommerce-cart td.product-name {
        grid-column: 2 / 4;
        padding-right: 2rem !important;
    }

    body.woocommerce-cart td.product-name a {
        color: var(--al-commerce-ink);
        font-weight: 750;
        line-height: 1.35;
        text-decoration: none;
    }

    body.woocommerce-cart td.product-price {
        display: none !important;
    }

    body.woocommerce-cart td.product-quantity {
        align-self: end;
        grid-column: 2;
        grid-row: 2;
    }

    body.woocommerce-cart td.product-quantity input.qty {
        border: 1px solid #cfdbd4;
        border-radius: 8px;
        height: 38px;
        min-height: 38px;
        width: 58px;
    }

    body.woocommerce-cart td.product-subtotal {
        align-self: center;
        color: var(--al-commerce-ink);
        font-weight: 800;
        grid-column: 3;
        grid-row: 2;
        white-space: nowrap;
    }

    body.woocommerce-cart td.product-remove {
        position: absolute;
        right: .55rem;
        top: .55rem;
        z-index: 2;
    }

    body.woocommerce-cart td.product-remove a.remove {
        align-items: center;
        background: #f3f5f4;
        border-radius: 999px;
        color: #455b50 !important;
        display: flex;
        height: 30px;
        justify-content: center;
        width: 30px;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents tr:last-child:not(.cart_item) {
        display: block;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents td.actions {
        display: grid;
        gap: .65rem;
        padding: .25rem 0 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon {
        display: grid;
        gap: .5rem;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.woocommerce-cart .cart-collaterals {
        border: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -14px 34px rgba(15, 45, 31, .13);
        padding: .75rem .9rem calc(.75rem + env(safe-area-inset-bottom));
        position: relative;
        z-index: 4;
    }

    body.woocommerce-cart .woocommerce > .cart-collaterals {
        grid-row: 3;
    }

    body.woocommerce-cart .woocommerce-cart-form + .cart-collaterals {
        margin-top: 0;
    }

    body.woocommerce-cart .woocommerce > wc-order-attribution-inputs {
        display: none;
    }

    body.woocommerce-cart .cart_totals {
        float: none !important;
    }

    body.woocommerce-cart .cart_totals h2 {
        display: none;
    }

    body.woocommerce-cart .cart_totals table {
        border: 0 !important;
        margin: 0 0 .6rem !important;
    }

    body.woocommerce-cart .cart_totals table tbody {
        display: grid;
        gap: .22rem;
    }

    body.woocommerce-cart .cart_totals table tr {
        align-items: baseline;
        border: 0;
        display: flex;
        justify-content: space-between;
    }

    body.woocommerce-cart .cart_totals table :is(th, td) {
        border: 0 !important;
        padding: .15rem 0 !important;
        text-align: right;
    }

    body.woocommerce-cart .cart_totals table th {
        color: #53675e;
        font-size: .82rem;
        font-weight: 650;
    }

    body.woocommerce-cart .cart_totals .order-total :is(th, td) {
        color: var(--al-commerce-ink);
        font-size: 1rem;
        font-weight: 800;
    }

    body.woocommerce-cart .wc-proceed-to-checkout {
        margin-top: .55rem;
        padding: 0;
    }

    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        margin: 0;
        min-height: 50px;
    }

    body.woocommerce-checkout .woocommerce {
        padding-inline: .9rem;
    }

    body.woocommerce-checkout form.checkout {
        display: block;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review {
        box-sizing: border-box;
        border-radius: 13px;
        margin-bottom: 1rem;
        max-height: none;
        min-width: 0;
        padding: .8rem;
        position: static;
        width: 100%;
    }

    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2 {
        float: none;
        width: 100%;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table {
        display: table !important;
        table-layout: fixed;
        width: 100% !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
        display: table-header-group !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody {
        display: table-row-group !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item {
        display: table-row !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item td {
        display: table-cell !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table :is(th, td)::before {
        content: none !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table :is(.product-name) {
        overflow-wrap: anywhere;
        width: auto;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table :is(.product-total) {
        text-align: right !important;
        width: 6.25rem;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
        box-sizing: border-box;
        display: block !important;
        width: 100% !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr {
        border-bottom: 1px solid #e4ebe7;
        padding: .7rem 0;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
        border: 0;
        padding: .15rem 0;
        text-align: left;
        white-space: normal;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
        text-align: right;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-totals td {
        padding-top: .45rem;
        text-align: left;
    }

    body.woocommerce-checkout #shipping_method,
    body.woocommerce-checkout #shipping_method label {
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    body.woocommerce-checkout #payment,
    body.woocommerce-checkout #payment .wc_payment_methods,
    body.woocommerce-checkout #payment .wc_payment_method,
    body.woocommerce-checkout #payment .payment_box,
    body.woocommerce-checkout #payment iframe {
        box-sizing: border-box;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100%;
    }

    body.single-product .site-content,
    body.single-product .site-content > .ast-container {
        margin-inline: 0 !important;
        max-width: none !important;
        padding-inline: max(.65rem, env(safe-area-inset-left)) max(.65rem, env(safe-area-inset-right)) !important;
        width: 100% !important;
    }

    body.single-product .site-content .elementor {
        max-width: none !important;
        width: 100% !important;
    }

    body.single-product form.cart .woocommerce-variation-add-to-cart {
        align-items: stretch;
        display: grid !important;
        gap: .65rem;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
    }

    body.single-product form.cart button.single_add_to_cart_button {
        min-width: 0;
        width: 100%;
    }

    body.single-product form.cart .wcpay-express-checkout-wrapper,
    body.single-product .al-product-promise,
    body.single-product .al-product-trust {
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
    }

    .single-product .al-product-trust {
        gap: .55rem .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce-cart *,
    .woocommerce-checkout *,
    .single-product * {
        scroll-behavior: auto !important;
    }
}
