:root {
    --mw-shell-blue: #103b8d;
    --mw-shell-ink: #06152f;
    --mw-shell-muted: #5f6f8a;
    --mw-shell-line: #dce6f5;
}

html {
    background: #fff;
    color: var(--mw-shell-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

body.mw-light-cart-shell {
    min-width: 320px;
    margin: 0;
    background: #fff;
    color: var(--mw-shell-ink);
    font-size: 16px;
    line-height: 1.5;
}

.mw-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--mw-shell-blue);
    box-shadow: 0 8px 24px rgba(6, 21, 47, .16);
    transform: translateY(-150%);
}

.mw-skip-link:focus { transform: none; }

.mw-light-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(16, 59, 141, .1);
    background: rgba(255, 255, 255, .97);
}

.mw-light-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 56px));
    min-height: 84px;
    margin: 0 auto;
    gap: 30px;
}

.mw-light-brand,
.mw-light-nav,
.mw-light-cart-link {
    display: flex;
    align-items: center;
}

.mw-light-brand {
    text-decoration: none;
}

.mw-light-brand img {
    display: block;
    width: 154px;
    height: auto;
    object-fit: contain;
}

.mw-light-nav { gap: 26px; }

.mw-light-nav a {
    color: #33466b;
    font-size: 13.5px;
    font-weight: 650;
    text-decoration: none;
}

.mw-light-nav a:hover { color: var(--mw-shell-blue); }

.mw-light-cart-link {
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--mw-shell-line);
    border-radius: 999px;
    background: #f8fbff;
}

.mw-light-cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mw-shell-blue);
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

/* Restore the complete WooCommerce cart controls hidden by the legacy design. */
.mw-light-cart-shell .mw-cart-stage th.product-quantity,
.mw-light-cart-shell .mw-cart-stage td.product-quantity,
.mw-light-cart-shell .mw-cart-stage th.product-subtotal,
.mw-light-cart-shell .mw-cart-stage td.product-subtotal {
    display: table-cell !important;
}

.mw-light-cart-shell .mw-cart-stage button[name="update_cart"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: right;
    min-height: 44px;
    margin-left: 12px !important;
    padding: 0 18px !important;
    border: 1px solid var(--mw-shell-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--mw-shell-ink) !important;
    font-size: 12.5px !important;
    font-weight: 720 !important;
}

.mw-light-cart-shell .mw-cart-stage button[name="update_cart"]:not(:disabled):hover {
    border-color: var(--mw-shell-blue) !important;
    color: var(--mw-shell-blue) !important;
}

.mw-light-cart-shell .mw-cart-stage .quantity .qty {
    width: 68px;
    height: 42px;
    padding: 0 8px;
    border: 1px solid var(--mw-shell-line);
    border-radius: 8px;
    background: #fff;
    color: var(--mw-shell-ink);
    text-align: center;
}

.mw-light-cart-shell .mw-cart-stage table.cart thead th.product-price,
.mw-light-cart-shell .mw-cart-stage table.cart td.product-price,
.mw-light-cart-shell .mw-cart-stage table.cart thead th.product-subtotal,
.mw-light-cart-shell .mw-cart-stage table.cart td.product-subtotal {
    width: 120px;
    text-align: right;
}

.mw-light-cart-shell .mw-cart-stage table.cart td.product-subtotal,
.mw-light-cart-shell .mw-cart-stage table.cart td.product-subtotal .amount {
    color: var(--mw-shell-ink);
    font-size: 15px;
    font-weight: 820;
}

body.mw-light-cart-shell.mw-cart-all-quantities-fixed .mw-cart-stage table.cart th.product-quantity,
body.mw-light-cart-shell.mw-cart-all-quantities-fixed .mw-cart-stage table.cart td.product-quantity,
body.mw-light-cart-shell.mw-cart-all-quantities-fixed .mw-cart-stage table.cart th.product-subtotal,
body.mw-light-cart-shell.mw-cart-all-quantities-fixed .mw-cart-stage table.cart td.product-subtotal,
body.mw-light-cart-shell.mw-cart-all-quantities-fixed .mw-cart-stage table.cart button[name="update_cart"] {
    display: none !important;
}

.mw-light-footer {
    border-top: 1px solid rgba(16, 59, 141, .1);
    background: #06152f;
    color: rgba(255, 255, 255, .74);
}

.mw-light-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto;
    padding: 38px 0;
    gap: 20px 40px;
}

.mw-light-footer-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 720;
    text-decoration: none;
}

.mw-light-footer p {
    max-width: 640px;
    margin: 7px 0 0;
    font-size: 12.5px;
}

.mw-light-footer nav {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.mw-light-footer nav a {
    color: #fff;
    font-size: 12.5px;
    font-weight: 650;
    text-decoration: none;
}

.mw-light-footer-note {
    grid-column: 1 / -1;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .56);
}

@media (max-width: 1100px) {
    .mw-light-cart-shell .mw-cart-stage > .woocommerce {
        grid-template-columns: 1fr;
    }

    .mw-light-cart-shell .mw-cart-stage .woocommerce-cart-form,
    .mw-light-cart-shell .mw-cart-stage .cart-collaterals {
        grid-column: 1;
    }
}

@media (max-width: 767px) {
    .mw-light-header-inner,
    .mw-light-footer-inner {
        width: min(100% - 32px, 1180px);
    }

    .mw-light-header-inner { min-height: 72px; }
    .mw-light-brand img { width: 138px; height: auto; }
    .mw-light-nav { gap: 14px; }
    .mw-light-nav > a:not(.mw-light-cart-link) { display: none; }

    .mw-light-cart-shell .mw-cart-stage table.cart tr.cart_item {
        grid-template-columns: 28px 62px minmax(0, 1fr) !important;
    }

    .mw-light-cart-shell .mw-cart-stage table.cart td.product-quantity,
    .mw-light-cart-shell .mw-cart-stage table.cart td.product-subtotal {
        display: block !important;
        grid-column: 3;
        width: 100% !important;
        padding-top: 8px !important;
        text-align: left;
    }

    .mw-light-cart-shell .mw-cart-stage table.cart td.product-quantity::before,
    .mw-light-cart-shell .mw-cart-stage table.cart td.product-subtotal::before {
        display: inline-block !important;
        margin-right: 8px;
        color: var(--mw-shell-muted);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .mw-light-cart-shell .mw-cart-stage table.cart td.actions {
        overflow: hidden;
    }

    .mw-light-cart-shell .mw-cart-stage button[name="update_cart"] {
        float: none;
        width: 100%;
        margin: 10px 0 0 !important;
    }

    .mw-light-footer-inner { grid-template-columns: 1fr; }
    .mw-light-footer nav { flex-wrap: wrap; }
    .mw-light-footer-note { grid-column: 1; }
}
