/* Mathematics WooCommerce Styling */

body.mws-enabled {
    --mws-primary: #7c55f3;
    --mws-page-bg: #f7f7fa;
    --mws-card-bg: #fff;
    --mws-text: #4b465c;
    --mws-muted: #6f6b7d;
    --mws-border: #dbdade;
    --mws-radius: 8px;
    --mws-columns: 3;
    --mws-image-fit: contain;
    --mws-shadow: 0 2px 12px rgba(47, 43, 61, .10);
    color: var(--mws-text);
}

body.mws-enabled .content-wrapper {
    background: var(--mws-page-bg);
}

body.mws-enabled .mws-classic-shell {
    width: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(219, 218, 222, .65);
    border-radius: var(--mws-radius);
    background: var(--mws-card-bg);
    box-shadow: var(--mws-shadow);
}

body.mws-enabled .mws-classic-shell::after,
body.mws-enabled .woocommerce::after,
body.mws-enabled ul.products::after {
    display: table;
    clear: both;
    content: "";
}

/* Breadcrumbs and archive header */
body.mws-enabled .woocommerce-breadcrumb {
    margin: 0 0 12px;
    color: var(--mws-muted);
    font-size: .875rem;
}

body.mws-enabled .woocommerce-breadcrumb a {
    color: var(--mws-primary);
    text-decoration: none;
}

body.mws-enabled .woocommerce-products-header__title.page-title,
body.mws-enabled h1.product_title {
    margin: 0;
    color: var(--mws-text);
    font-weight: 600;
    line-height: 1.25;
}

body.mws-enabled .woocommerce-products-header__title.page-title {
    margin-bottom: 20px;
    font-size: clamp(1.75rem, 2vw, 2.25rem);
}

body.mws-enabled .woocommerce-result-count {
    margin: 10px 0 24px;
    color: var(--mws-muted);
}

body.mws-enabled .woocommerce-ordering {
    margin: 0 0 24px;
}

body.mws-enabled .woocommerce-ordering select {
    min-width: 210px;
    height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--mws-border);
    border-radius: 6px;
    background-color: var(--mws-card-bg);
    color: var(--mws-text);
    font: inherit;
}

/* Result count and catalogue sorting are intentionally hidden everywhere. */
body.mws-enabled .woocommerce-result-count,
body.mws-enabled .woocommerce-ordering,
body.mws-enabled .wc-block-product-results-count,
body.mws-enabled .wc-block-product-sort-select,
body.mws-enabled .wp-block-woocommerce-product-results-count,
body.mws-enabled .wp-block-woocommerce-catalog-sorting {
    display: none !important;
}

/* Product archive grid */
body.mws-enabled .mws-classic-shell ul.products {
    display: grid !important;
    grid-template-columns: repeat(var(--mws-columns), minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.mws-enabled .mws-classic-shell ul.products li.product {
    display: flex;
    float: none !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--mws-border);
    border-radius: var(--mws-radius);
    background: var(--mws-card-bg);
    box-shadow: 0 1px 5px rgba(47, 43, 61, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.mws-enabled .mws-classic-shell ul.products li.product:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--mws-primary) 38%, var(--mws-border));
    box-shadow: var(--mws-shadow);
}

body.mws-enabled ul.products li.product a.woocommerce-LoopProduct-link {
    color: inherit;
    text-decoration: none;
}

body.mws-enabled ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 16px !important;
    padding: 12px;
    border-radius: calc(var(--mws-radius) - 2px);
    background: #f7f9f9;
    object-fit: var(--mws-image-fit);
}

body.mws-enabled ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 8px;
    padding: 0 !important;
    color: var(--mws-text);
    font-size: 1.05rem !important;
    font-weight: 600;
    line-height: 1.4;
}

body.mws-enabled ul.products li.product .price {
    margin: 0 0 14px;
    color: var(--mws-primary) !important;
    font-size: 1rem !important;
    font-weight: 600;
}

body.mws-enabled ul.products li.product .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Buttons */
body.mws-enabled .woocommerce a.button,
body.mws-enabled .woocommerce button.button,
body.mws-enabled .woocommerce input.button,
body.mws-enabled .woocommerce #respond input#submit,
body.mws-enabled .wc-block-components-button:not(.is-link) {
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--mws-primary);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--mws-primary) 30%, transparent);
    color: #fff;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

body.mws-enabled .woocommerce a.button:hover,
body.mws-enabled .woocommerce button.button:hover,
body.mws-enabled .woocommerce input.button:hover,
body.mws-enabled .wc-block-components-button:not(.is-link):hover {
    background: var(--mws-primary);
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}

body.mws-enabled .woocommerce a.button.alt,
body.mws-enabled .woocommerce button.button.alt,
body.mws-enabled .woocommerce input.button.alt {
    background: var(--mws-primary);
}

/* Single product */
body.mws-enabled.single-product .mws-classic-shell div.product {
    display: grid;
}

body.mws-enabled.single-product div.product div.images,
body.mws-enabled.single-product div.product div.summary {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

body.mws-enabled.single-product div.product div.images {
    padding: 20px;
    border: 1px solid var(--mws-border);
    border-radius: var(--mws-radius);
    background: #f7f9f9;
}

body.mws-enabled.single-product div.product div.images img {
    width: 100%;
    max-height: 620px;
    object-fit: var(--mws-image-fit);
}

body.mws-enabled.single-product div.product div.summary {
    padding: 8px 4px;
}

body.mws-enabled.single-product .summary .price {
    margin: 18px 0;
    color: var(--mws-primary) !important;
    font-size: 1.35rem !important;
    font-weight: 600;
}

body.mws-enabled.single-product .summary .price .mws-price-label {
    color: inherit;
    font: inherit;
    font-weight: inherit;
}

body.mws-enabled.single-product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    color: var(--mws-muted);
    line-height: 1.7;
}

body.mws-enabled.single-product form.cart {
    display: flex;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    margin: 22px 0 !important;
    padding: 0 !important;
}

/* Sold-individually products can leave an invisible quantity wrapper that
   pushes the button to the right. Remove that space and keep the button
   aligned with the product text. */
body.mws-enabled.single-product form.cart .quantity:has(input.qty[type="hidden"]) {
    display: none !important;
}

body.mws-enabled.single-product form.cart .single_add_to_cart_button {
    float: none !important;
    align-self: flex-start;
    margin: 0 !important;
}

body.mws-enabled.single-product form.cart .quantity .qty {
    width: 72px;
    height: 42px;
    padding: 6px;
    border: 1px solid var(--mws-border);
    border-radius: 6px;
    color: var(--mws-text);
    text-align: center;
}

body.mws-enabled.single-product .product_meta {
    padding-top: 18px;
    border-top: 1px solid var(--mws-border);
    color: var(--mws-muted);
}

body.mws-enabled.single-product .product_meta a {
    color: var(--mws-primary);
    text-decoration: none;
}

body.mws-enabled.single-product .mws-product-description,
body.mws-enabled.single-product .related.products,
body.mws-enabled.single-product .up-sells.products {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--mws-border);
}

/* Defensive fallback: no tab navigation should be visible even if another
   extension re-adds WooCommerce's tab wrapper. */
body.mws-enabled.single-product div.product .woocommerce-tabs ul.tabs,
body.mws-enabled.single-product div.product .wc-tabs {
    display: none !important;
}

body.mws-enabled.single-product .mws-product-description h2,
body.mws-enabled .related.products > h2,
body.mws-enabled .up-sells.products > h2 {
    margin: 0 0 18px;
    color: var(--mws-text);
    font-size: 1.45rem;
}

body.mws-enabled.single-product .mws-product-description > :last-child {
    margin-bottom: 0;
}

/* Forms and classic tables */
body.mws-enabled .woocommerce input.input-text,
body.mws-enabled .woocommerce textarea,
body.mws-enabled .woocommerce select,
body.mws-enabled .select2-container--default .select2-selection--single {
    border: 1px solid var(--mws-border);
    border-radius: 6px;
    background: var(--mws-card-bg);
    color: var(--mws-text);
}

body.mws-enabled .woocommerce input.input-text,
body.mws-enabled .woocommerce textarea,
body.mws-enabled .woocommerce select {
    min-height: 42px;
    padding: 9px 12px;
}

body.mws-enabled .woocommerce table.shop_table {
    overflow: hidden;
    border: 1px solid var(--mws-border);
    border-radius: var(--mws-radius);
    background: var(--mws-card-bg);
}

/* Notices */
body.mws-enabled .woocommerce-message,
body.mws-enabled .woocommerce-info,
body.mws-enabled .woocommerce-error {
    display: flex;
    align-items: center;
    min-height: 62px;
    margin: 0 0 20px;
    padding: 16px 18px 16px 48px;
    border: 1px solid var(--mws-border);
    border-radius: var(--mws-radius);
    background: var(--mws-card-bg);
    box-shadow: 0 1px 5px rgba(47, 43, 61, .06);
    color: var(--mws-text);
    line-height: 1.5;
}

body.mws-enabled .woocommerce-message .button,
body.mws-enabled .woocommerce-info .button {
    float: none;
    flex: 0 0 auto;
    margin-left: auto;
}

body.mws-enabled .woocommerce-message::before,
body.mws-enabled .woocommerce-info::before,
body.mws-enabled .woocommerce-error::before {
    top: 50% !important;
    left: 18px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
}

body.mws-enabled .woocommerce-message {
    border-left: 4px solid #28c76f;
}

body.mws-enabled .woocommerce-info {
    border-left: 4px solid var(--mws-primary);
}

body.mws-enabled .woocommerce-error {
    border-left: 4px solid #ea5455;
}

/* Cart and Checkout blocks */
body.mws-enabled .wc-block-cart,
body.mws-enabled .wc-block-checkout {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(219, 218, 222, .65);
    border-radius: var(--mws-radius);
    background: var(--mws-card-bg);
    box-shadow: var(--mws-shadow);
}

body.mws-enabled .wc-block-components-sidebar-layout {
    gap: 32px;
}

body.mws-enabled .wc-block-components-order-summary,
body.mws-enabled .wc-block-components-totals-wrapper,
body.mws-enabled .wc-block-checkout__order-notes,
body.mws-enabled .wc-block-checkout__terms {
    border-color: var(--mws-border) !important;
}

body.mws-enabled .wc-block-components-text-input input,
body.mws-enabled .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.mws-enabled .wc-block-components-address-form__select,
body.mws-enabled .wc-block-components-textarea {
    border-color: var(--mws-border) !important;
    border-radius: 6px !important;
    color: var(--mws-text) !important;
}

body.mws-enabled .wc-block-components-text-input input:focus,
body.mws-enabled .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
body.mws-enabled .wc-block-components-textarea:focus {
    border-color: var(--mws-primary) !important;
    box-shadow: 0 0 0 1px var(--mws-primary) !important;
}

body.mws-enabled .wc-block-components-product-name,
body.mws-enabled .wc-block-components-product-name:hover {
    color: var(--mws-primary);
    text-decoration: none;
}

body.mws-enabled .wc-block-components-quantity-selector {
    border-color: var(--mws-border);
    border-radius: 6px;
}

body.mws-enabled .wc-block-cart__submit-button,
body.mws-enabled .wc-block-components-checkout-place-order-button {
    width: 100%;
}

body.mws-enabled .wc-block-components-title,
body.mws-enabled .wc-block-checkout__contact-fields .wc-block-components-checkout-step__title,
body.mws-enabled .wc-block-checkout__billing-fields .wc-block-components-checkout-step__title,
body.mws-enabled .wc-block-checkout__payment-method .wc-block-components-checkout-step__title {
    color: var(--mws-text);
    font-weight: 600;
}

/* My Account */
body.mws-enabled .woocommerce-MyAccount-navigation,
body.mws-enabled .woocommerce-MyAccount-content {
    padding: 20px;
    border: 1px solid var(--mws-border);
    border-radius: var(--mws-radius);
    background: var(--mws-card-bg);
    box-shadow: var(--mws-shadow);
}

body.mws-enabled .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.mws-enabled .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--mws-text);
    text-decoration: none;
}

body.mws-enabled .woocommerce-MyAccount-navigation li.is-active a,
body.mws-enabled .woocommerce-MyAccount-navigation li a:hover {
    background: color-mix(in srgb, var(--mws-primary) 12%, white);
    color: var(--mws-primary);
}

/* Pagination */
body.mws-enabled .woocommerce nav.woocommerce-pagination ul {
    display: flex;
    gap: 6px;
    border: 0;
}

body.mws-enabled .woocommerce nav.woocommerce-pagination ul li {
    border: 0;
}

body.mws-enabled .woocommerce nav.woocommerce-pagination ul li a,
body.mws-enabled .woocommerce nav.woocommerce-pagination ul li span {
    min-width: 38px;
    padding: 9px 11px;
    border: 1px solid var(--mws-border);
    border-radius: 6px;
    background: var(--mws-card-bg);
    color: var(--mws-text);
}

body.mws-enabled .woocommerce nav.woocommerce-pagination ul li span.current,
body.mws-enabled .woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--mws-primary);
    background: var(--mws-primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    body.mws-enabled .mws-classic-shell ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {
    body.mws-enabled .mws-classic-shell,
    body.mws-enabled .wc-block-cart,
    body.mws-enabled .wc-block-checkout {
        padding: 16px;
    }

    body.mws-enabled .woocommerce-ordering,
    body.mws-enabled .woocommerce-result-count {
        float: none;
        width: 100%;
    }

    body.mws-enabled .woocommerce-ordering select {
        width: 100%;
    }

    body.mws-enabled .mws-classic-shell ul.products {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.mws-enabled.single-product form.cart {
        flex-wrap: wrap;
    }

    body.mws-enabled.single-product form.cart .single_add_to_cart_button {
        flex: 1;
    }

    body.mws-enabled .wc-block-components-sidebar-layout {
        display: block;
    }

    body.mws-enabled .wc-block-components-sidebar {
        margin-top: 24px;
    }
}

@media (max-width: 575.98px) {
    body.mws-enabled .mws-classic-shell,
    body.mws-enabled .wc-block-cart,
    body.mws-enabled .wc-block-checkout {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* v1.0.2 layout corrections */
body.mws-enabled .mws-classic-shell ul.products {
    grid-column: 1 / -1 !important;
    grid-auto-flow: row !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
    align-self: stretch !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
}

body.mws-enabled .mws-classic-shell ul.products li.product {
    grid-column: auto !important;
    grid-row: auto !important;
    order: initial !important;
}

@media (min-width: 768px) {
    body.mws-enabled .wc-block-components-sidebar-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr) !important;
        gap: 32px !important;
        align-items: start !important;
    }

    body.mws-enabled .wc-block-components-sidebar-layout .wc-block-components-main,
    body.mws-enabled .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.mws-enabled .wc-block-components-sidebar-layout .wc-block-components-main {
        padding-right: 0 !important;
    }

    body.mws-enabled .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        padding-left: 0 !important;
    }
}

/* v1.0.3 shell alignment and duplicate-card cleanup */

/*
 * The theme navbar uses a 24px horizontal inset. Classic WooCommerce pages
 * are rendered outside that inset, so give the plugin shell the same margins.
 */
body.mws-enabled .mws-classic-shell {
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin-right: 24px;
    margin-left: 24px;
}

/*
 * WooCommerce's clearfix pseudo-elements become real CSS-grid items and can
 * consume the first product column. Remove them when the archive uses grid.
 */
body.mws-enabled .mws-classic-shell ul.products::before,
body.mws-enabled .mws-classic-shell ul.products::after {
    display: none !important;
    content: none !important;
}

/*
 * Cart and Checkout already sit inside the Mathematics.cy page card. Do not
 * draw a second card around the WooCommerce block itself.
 */
body.mws-enabled .wc-block-cart,
body.mws-enabled .wc-block-checkout {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    body.mws-enabled .mws-classic-shell {
        margin-right: 16px;
        margin-left: 16px;
    }

    body.mws-enabled .wc-block-cart,
    body.mws-enabled .wc-block-checkout {
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    body.mws-enabled .mws-classic-shell {
        margin-right: 12px;
        margin-left: 12px;
    }
}


/* v1.0.4 page spacing and sticky-footer correction */

/*
 * Keep a clear vertical gap between the detached top navbar and the main
 * WooCommerce card on classic Shop, product-category, and product pages.
 */
body.mws-enabled .mws-classic-shell {
    margin-top: 24px;
    margin-bottom: 24px;
}

/*
 * Mathematics.cy places the navbar, main content, and footer inside
 * .layout-page/.content-wrapper. Make that area fill the viewport so a short
 * Shop or product page does not leave the footer floating halfway up the page.
 */
body.mws-enabled .layout-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body.mws-enabled .content-wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0;
    flex-direction: column !important;
}

body.mws-enabled .content-wrapper > .container-fluid.flex-grow-1,
body.mws-enabled .content-wrapper > .container.flex-grow-1 {
    flex: 1 0 auto !important;
}

body.mws-enabled .content-wrapper > footer,
body.mws-enabled .content-wrapper > .content-footer,
body.mws-enabled .content-wrapper > .footer {
    flex: 0 0 auto;
    margin-top: auto !important;
}

body.admin-bar.mws-enabled .layout-page {
    min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    body.admin-bar.mws-enabled .layout-page {
        min-height: calc(100vh - 46px);
    }
}

@media (max-width: 767.98px) {
    body.mws-enabled .mws-classic-shell {
        margin-top: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    body.mws-enabled .mws-classic-shell {
        margin-top: 12px;
        margin-bottom: 12px;
    }
}

/* v1.0.5 responsive shell width and reliable sticky footer */

/*
 * Use an explicit calculated width instead of side margins. This keeps the
 * classic WooCommerce card inside the viewport and aligned with the detached
 * navbar at every breakpoint, including when Bootstrap rows use negative
 * margins.
 */
html body.mws-enabled .mws-classic-shell {
    box-sizing: border-box !important;
    width: calc(100% - 48px) !important;
    max-width: calc(100% - 48px) !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (max-width: 991.98px) {
    html body.mws-enabled .mws-classic-shell {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

@media (max-width: 575.98px) {
    /* Keep the mobile card complete instead of removing its side borders. */
    html body.mws-enabled .mws-classic-shell {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        overflow: hidden;
        border: 1px solid rgba(219, 218, 222, .65) !important;
        border-radius: var(--mws-radius) !important;
        background: var(--mws-card-bg) !important;
        box-shadow: var(--mws-shadow) !important;
    }

    html body.mws-enabled .mws-classic-shell ul.products,
    html body.mws-enabled .mws-classic-shell ul.products li.product,
    html body.mws-enabled.single-product .mws-classic-shell div.product,
    html body.mws-enabled.single-product div.product div.images,
    html body.mws-enabled.single-product div.product div.summary {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/*
 * Vuexy normally uses this hierarchy:
 * .layout-page > .content-wrapper > .container-*.flex-grow-1 + footer.
 * Force the full hierarchy to stretch to the viewport so the footer stays at
 * the bottom on short Shop and product pages.
 */
html body.mws-enabled .layout-wrapper,
html body.mws-enabled .layout-container {
    min-height: 100vh !important;
}

html body.mws-enabled .layout-wrapper .layout-container .layout-page {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 100vh !important;
    height: auto !important;
    flex-direction: column !important;
}

html body.mws-enabled .layout-page > .content-wrapper,
html body.mws-enabled .layout-page .content-wrapper {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    flex-direction: column !important;
}

html body.mws-enabled .content-wrapper > .container-fluid.flex-grow-1,
html body.mws-enabled .content-wrapper > .container.flex-grow-1,
html body.mws-enabled .content-wrapper > .container-xxl.flex-grow-1,
html body.mws-enabled .content-wrapper > .container-xl.flex-grow-1,
html body.mws-enabled .content-wrapper > .container-lg.flex-grow-1 {
    flex: 1 0 auto !important;
}

html body.mws-enabled .content-wrapper > footer,
html body.mws-enabled .content-wrapper > .content-footer,
html body.mws-enabled .content-wrapper > .footer,
html body.mws-enabled .layout-page > footer,
html body.mws-enabled .layout-page > .content-footer,
html body.mws-enabled .layout-page > .footer {
    flex: 0 0 auto !important;
    margin-top: auto !important;
}

html body.admin-bar.mws-enabled .layout-wrapper,
html body.admin-bar.mws-enabled .layout-container,
html body.admin-bar.mws-enabled .layout-wrapper .layout-container .layout-page {
    min-height: calc(100vh - 32px) !important;
}

@media (max-width: 782px) {
    html body.admin-bar.mws-enabled .layout-wrapper,
    html body.admin-bar.mws-enabled .layout-container,
    html body.admin-bar.mws-enabled .layout-wrapper .layout-container .layout-page {
        min-height: calc(100vh - 46px) !important;
    }
}

/* v1.0.6 sticky Cart and Checkout sidebar offset */

/*
 * WooCommerce Blocks pins the Cart/Checkout sidebar to the top of the
 * viewport. Mathematics.cy uses a detached fixed navbar, so the default
 * top: 0 position lets the order summary slide underneath the navbar.
 * frontend.js measures the real navbar bottom and stores it in this variable.
 */
body.mws-enabled {
    --mws-sticky-top: 88px;
}

@media (min-width: 768px) {
    html body.mws-enabled .wc-block-checkout__sidebar,
    html body.mws-enabled .wc-block-cart__sidebar,
    html body.mws-enabled .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
        position: sticky !important;
        top: var(--mws-sticky-top) !important;
        align-self: start !important;
        max-height: calc(100vh - var(--mws-sticky-top) - 16px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

@media (max-width: 767.98px) {
    html body.mws-enabled .wc-block-checkout__sidebar,
    html body.mws-enabled .wc-block-cart__sidebar,
    html body.mws-enabled .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
        position: static !important;
        top: auto !important;
        max-height: none;
        overflow: visible;
    }
}


/* v1.0.7 mobile Checkout duplicate Order Summary correction */
@media (max-width: 767.98px) {
    html body.mws-enabled .mws-mobile-order-summary-duplicate {
        display: none !important;
    }
}

/* v1.0.8 automatic Vuexy dark-mode support */

/*
 * Vuexy switches its colour scheme through data-bs-theme="dark" on the root
 * element. Override the plugin variables with dark equivalents so every
 * WooCommerce surface follows the active site theme automatically.
 */
html[data-bs-theme="dark"] body.mws-enabled,
html.dark-style body.mws-enabled,
body[data-bs-theme="dark"].mws-enabled,
body.dark-style.mws-enabled,
body.dark-mode.mws-enabled {
    --mws-page-bg: #25293c;
    --mws-card-bg: #2f3349;
    --mws-text: #d7d5e1;
    --mws-muted: #a8aec2;
    --mws-border: #464a65;
    --mws-image-bg: #353a52;
    --mws-field-bg: #292d42;
    --mws-shadow: 0 2px 14px rgba(15, 18, 32, .34);
    color-scheme: dark;
}

html[data-bs-theme="dark"] body.mws-enabled .content-wrapper,
html.dark-style body.mws-enabled .content-wrapper,
body[data-bs-theme="dark"].mws-enabled .content-wrapper,
body.dark-style.mws-enabled .content-wrapper,
body.dark-mode.mws-enabled .content-wrapper {
    background: var(--mws-page-bg) !important;
    color: var(--mws-text);
}

/* Classic Shop, category, product, related-product and account cards. */
html[data-bs-theme="dark"] body.mws-enabled .mws-classic-shell,
html[data-bs-theme="dark"] body.mws-enabled .mws-classic-shell ul.products li.product,
html[data-bs-theme="dark"] body.mws-enabled.single-product div.product div.images,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce table.shop_table,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-message,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-info,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-error,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-MyAccount-navigation,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-MyAccount-content,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce nav.woocommerce-pagination ul li a,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce nav.woocommerce-pagination ul li span,
html.dark-style body.mws-enabled .mws-classic-shell,
html.dark-style body.mws-enabled .mws-classic-shell ul.products li.product,
html.dark-style body.mws-enabled.single-product div.product div.images,
body[data-bs-theme="dark"].mws-enabled .mws-classic-shell,
body[data-bs-theme="dark"].mws-enabled .mws-classic-shell ul.products li.product,
body.dark-style.mws-enabled .mws-classic-shell,
body.dark-style.mws-enabled .mws-classic-shell ul.products li.product,
body.dark-mode.mws-enabled .mws-classic-shell,
body.dark-mode.mws-enabled .mws-classic-shell ul.products li.product {
    border-color: var(--mws-border) !important;
    background-color: var(--mws-card-bg) !important;
    color: var(--mws-text) !important;
    box-shadow: var(--mws-shadow);
}

/* Product image wells should be dark too, while leaving real images intact. */
html[data-bs-theme="dark"] body.mws-enabled ul.products li.product a img,
html[data-bs-theme="dark"] body.mws-enabled.single-product div.product div.images,
html.dark-style body.mws-enabled ul.products li.product a img,
body[data-bs-theme="dark"].mws-enabled ul.products li.product a img,
body.dark-style.mws-enabled ul.products li.product a img,
body.dark-mode.mws-enabled ul.products li.product a img {
    background-color: var(--mws-image-bg) !important;
}

/* Text, headings, tabs and metadata. */
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-products-header__title.page-title,
html[data-bs-theme="dark"] body.mws-enabled h1.product_title,
html[data-bs-theme="dark"] body.mws-enabled ul.products li.product .woocommerce-loop-product__title,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-Tabs-panel h2,
html[data-bs-theme="dark"] body.mws-enabled .related.products > h2,
html[data-bs-theme="dark"] body.mws-enabled .up-sells.products > h2,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-title,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-totals-item__label,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-totals-item__value,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-order-summary-item__individual-prices,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-order-summary-item__total-price,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__contact-fields .wc-block-components-checkout-step__title,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__billing-fields .wc-block-components-checkout-step__title,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__payment-method .wc-block-components-checkout-step__title,
html.dark-style body.mws-enabled .woocommerce-products-header__title.page-title,
html.dark-style body.mws-enabled h1.product_title,
body[data-bs-theme="dark"].mws-enabled .woocommerce-products-header__title.page-title,
body[data-bs-theme="dark"].mws-enabled h1.product_title,
body.dark-style.mws-enabled .woocommerce-products-header__title.page-title,
body.dark-style.mws-enabled h1.product_title,
body.dark-mode.mws-enabled .woocommerce-products-header__title.page-title,
body.dark-mode.mws-enabled h1.product_title {
    color: var(--mws-text) !important;
}

html[data-bs-theme="dark"] body.mws-enabled .woocommerce-result-count,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-breadcrumb,
html[data-bs-theme="dark"] body.mws-enabled.single-product .woocommerce-product-details__short-description,
html[data-bs-theme="dark"] body.mws-enabled.single-product .product_meta,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-product-metadata,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-product-details,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-checkout-step__description,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-address-card__address-section,
html.dark-style body.mws-enabled .woocommerce-result-count,
body[data-bs-theme="dark"].mws-enabled .woocommerce-result-count,
body.dark-style.mws-enabled .woocommerce-result-count,
body.dark-mode.mws-enabled .woocommerce-result-count {
    color: var(--mws-muted) !important;
}

/* Form controls on classic WooCommerce and WooCommerce Blocks. */
html[data-bs-theme="dark"] body.mws-enabled .woocommerce-ordering select,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce input.input-text,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce textarea,
html[data-bs-theme="dark"] body.mws-enabled .woocommerce select,
html[data-bs-theme="dark"] body.mws-enabled .select2-container--default .select2-selection--single,
html[data-bs-theme="dark"] body.mws-enabled.single-product form.cart .quantity .qty,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-text-input input,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-address-form__select,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-textarea,
html.dark-style body.mws-enabled .woocommerce-ordering select,
html.dark-style body.mws-enabled .woocommerce input.input-text,
body[data-bs-theme="dark"].mws-enabled .woocommerce-ordering select,
body[data-bs-theme="dark"].mws-enabled .woocommerce input.input-text,
body.dark-style.mws-enabled .woocommerce-ordering select,
body.dark-style.mws-enabled .woocommerce input.input-text,
body.dark-mode.mws-enabled .woocommerce-ordering select,
body.dark-mode.mws-enabled .woocommerce input.input-text {
    border-color: var(--mws-border) !important;
    background-color: var(--mws-field-bg) !important;
    color: var(--mws-text) !important;
}

html[data-bs-theme="dark"] body.mws-enabled input::placeholder,
html[data-bs-theme="dark"] body.mws-enabled textarea::placeholder,
html.dark-style body.mws-enabled input::placeholder,
body[data-bs-theme="dark"].mws-enabled input::placeholder,
body.dark-style.mws-enabled input::placeholder,
body.dark-mode.mws-enabled input::placeholder {
    color: var(--mws-muted) !important;
    opacity: .82;
}

/* Cart and Checkout Blocks contain their own white surfaces. */
html[data-bs-theme="dark"] body.mws-enabled .wc-block-cart,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-main,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-sidebar,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__main,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__sidebar,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-cart__main,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-cart__sidebar,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-order-summary,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-order-summary-item,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-totals-wrapper,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-panel,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-checkout-step,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__order-notes,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-checkout__terms,
html.dark-style body.mws-enabled .wc-block-components-main,
html.dark-style body.mws-enabled .wc-block-components-sidebar,
body[data-bs-theme="dark"].mws-enabled .wc-block-components-main,
body[data-bs-theme="dark"].mws-enabled .wc-block-components-sidebar,
body.dark-style.mws-enabled .wc-block-components-main,
body.dark-style.mws-enabled .wc-block-components-sidebar,
body.dark-mode.mws-enabled .wc-block-components-main,
body.dark-mode.mws-enabled .wc-block-components-sidebar {
    border-color: var(--mws-border) !important;
    background-color: transparent !important;
    color: var(--mws-text) !important;
}

html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-order-summary,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-totals-wrapper,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-panel,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-address-card,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-radio-control-accordion-option,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-checkout-step__container,
html.dark-style body.mws-enabled .wc-block-components-order-summary,
body[data-bs-theme="dark"].mws-enabled .wc-block-components-order-summary,
body.dark-style.mws-enabled .wc-block-components-order-summary,
body.dark-mode.mws-enabled .wc-block-components-order-summary {
    background-color: var(--mws-card-bg) !important;
}

html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-quantity-selector,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-order-summary,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-totals-wrapper,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-panel,
html[data-bs-theme="dark"] body.mws-enabled .wc-block-components-checkout-step,
html.dark-style body.mws-enabled .wc-block-components-quantity-selector,
body[data-bs-theme="dark"].mws-enabled .wc-block-components-quantity-selector,
body.dark-style.mws-enabled .wc-block-components-quantity-selector,
body.dark-mode.mws-enabled .wc-block-components-quantity-selector {
    border-color: var(--mws-border) !important;
}

/* Active tab needs a darker inactive state rather than a white background. */
html[data-bs-theme="dark"] body.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active),
html.dark-style body.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active),
body[data-bs-theme="dark"].mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active),
body.dark-style.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active),
body.dark-mode.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) {
    background-color: var(--mws-field-bg) !important;
}

html[data-bs-theme="dark"] body.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a,
html.dark-style body.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a,
body[data-bs-theme="dark"].mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a,
body.dark-style.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a,
body.dark-mode.mws-enabled .woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active) a {
    color: var(--mws-text) !important;
}

/* v1.0.8.3 text-only catalogue cards */
body.mws-enabled.mws-catalog-text-cards .mws-classic-shell ul.products li.product {
    min-height: 220px;
    padding: 20px;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product a img,
body.mws-enabled.mws-catalog-text-cards ul.products li.product .woocommerce-loop-product__link > img,
body.mws-enabled.mws-catalog-text-cards ul.products li.product .attachment-woocommerce_thumbnail {
    display: none !important;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 6px;
    color: var(--mws-primary) !important;
    font-size: 1.15rem !important;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--mws-primary) !important;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-category {
    margin: 0 0 10px;
    color: var(--mws-muted);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-short-description {
    margin: 0 0 14px;
    color: var(--mws-muted);
    font-size: .9375rem;
    line-height: 1.55;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-short-description p {
    margin: 0;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .price {
    margin-top: auto;
    margin-bottom: 0;
    color: var(--mws-primary) !important;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-price-label {
    color: var(--mws-primary);
    font-weight: 600;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .button {
    display: none !important;
}

@media (max-width: 767.98px) {
    body.mws-enabled.mws-catalog-text-cards .mws-classic-shell ul.products li.product {
        min-height: 0;
    }
}

/* v1.0.8.4 centred product-page prompt on catalogue cards */
body.mws-enabled.mws-catalog-text-cards ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    background: color-mix(in srgb, var(--mws-primary) 14%, transparent);
    box-shadow: none;
    color: var(--mws-primary);
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn:hover,
body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn:focus-visible {
    background: color-mix(in srgb, var(--mws-primary) 22%, transparent);
    color: var(--mws-primary);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--mws-primary) 20%, transparent);
    transform: translateY(-1px);
}

html[data-bs-theme="dark"] body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn,
html.dark-style body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn,
body[data-bs-theme="dark"].mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn,
body.dark-style.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn,
body.dark-mode.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn {
    background: color-mix(in srgb, var(--mws-primary) 22%, transparent);
    color: color-mix(in srgb, var(--mws-primary) 82%, white);
}


/* v1.0.8.5 centred catalogue card content and section dividers */
body.mws-enabled.mws-catalog-text-cards .mws-classic-shell ul.products li.product {
    text-align: center;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product a.woocommerce-LoopProduct-link {
    align-items: stretch;
    text-align: center;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .woocommerce-loop-product__title,
body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-category,
body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-short-description,
body.mws-enabled.mws-catalog-text-cards ul.products li.product .price {
    width: 100%;
    text-align: center;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-category {
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mws-border);
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-short-description {
    margin-bottom: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--mws-border);
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .price {
    margin-top: 0;
    padding-top: 16px;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap {
    margin-top: 16px;
}


/* v1.0.8.6 reliable product links and bottom-aligned card actions */
body.mws-enabled.mws-catalog-text-cards .mws-classic-shell ul.products li.product {
    height: 100%;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-short-description {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-short-description-empty {
    min-height: 72px;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .price {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap {
    flex: 0 0 auto;
}

body.mws-enabled.mws-catalog-text-cards ul.products li.product .mws-product-view-wrap .btn {
    text-decoration: none;
}


/* v1.0.8.6.4 single-column product page without gallery */
body.mws-enabled.single-product .woocommerce-product-gallery,
body.mws-enabled.single-product div.product div.images {
    display: none !important;
}

body.mws-enabled.single-product div.product div.summary {
    width: 100% !important;
    max-width: none !important;
}


/* v1.0.8.6.5 related products in a separate outer card */
body.mws-enabled.single-product .mws-related-shell .related.products {
    margin: 0;
    padding: 0;
    border-top: 0;
}

body.mws-enabled.single-product .mws-related-shell .related.products > h2 {
    margin: 0 0 24px;
}

body.mws-enabled.single-product .mws-related-shell:empty {
    display: none;
}

/* v1.0.8.6.8 keep notice actions aligned consistently */
body.mws-enabled .woocommerce-error .button,
body.mws-enabled .woocommerce-error .wc-forward,
body.mws-enabled .woocommerce-message .wc-forward,
body.mws-enabled .woocommerce-info .wc-forward {
    float: none !important;
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;
    white-space: nowrap;
}

body.mws-enabled .woocommerce-error > li {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

body.mws-enabled .woocommerce-error > li .button,
body.mws-enabled .woocommerce-error > li .wc-forward {
    margin-left: auto !important;
}

@media (max-width: 575.98px) {
    body.mws-enabled .woocommerce-message,
    body.mws-enabled .woocommerce-info,
    body.mws-enabled .woocommerce-error,
    body.mws-enabled .woocommerce-error > li {
        flex-wrap: wrap;
    }

    body.mws-enabled .woocommerce-message .button,
    body.mws-enabled .woocommerce-message .wc-forward,
    body.mws-enabled .woocommerce-info .button,
    body.mws-enabled .woocommerce-info .wc-forward,
    body.mws-enabled .woocommerce-error .button,
    body.mws-enabled .woocommerce-error .wc-forward {
        margin-top: 8px !important;
    }
}

/* v1.0.8.6.9 simplified empty Cart Block */
body.mws-enabled.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    padding: 36px 20px 44px;
    text-align: center;
}

/* Defensive fallbacks in case a cached Cart Block still contains the defaults. */
body.mws-enabled.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-separator,
body.mws-enabled.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading:not(.wc-block-cart__empty-cart__title),
body.mws-enabled.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-woocommerce-product-new,
body.mws-enabled.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-grid {
    display: none !important;
}

body.mws-enabled.woocommerce-cart .mws-empty-cart-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 28px;
}

body.mws-enabled.woocommerce-cart .mws-empty-cart-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--mws-primary);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--mws-primary) 30%, transparent);
    color: #fff;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

body.mws-enabled.woocommerce-cart .mws-empty-cart-shop-button:hover,
body.mws-enabled.woocommerce-cart .mws-empty-cart-shop-button:focus {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    body.mws-enabled.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
        padding: 28px 12px 36px;
    }

    body.mws-enabled.woocommerce-cart .mws-empty-cart-shop-button {
        width: 100%;
        max-width: 280px;
    }
}
