.mb-bundle {
    display: grid;
    gap: 9px;
    margin: 14px 0;
    width: 100%;
    max-width: 100%;
}

.single-product .summary form.cart .mb-bundle,
.single-product .summary form.cart .woocommerce-variation-add-to-cart .mb-bundle {
    grid-column: 1 / -1;
    clear: both;
}

.mb-bundle__title {
    color: var(--mb-primary, #11103b);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.mb-bundle-card {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) minmax(90px, auto);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #eadfd4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.mb-bundle-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mb-bundle-card:has(input:checked),
.mb-bundle-card.is-selected {
    border-color: var(--mb-primary, #11103b);
    background: #fffaf5;
    box-shadow: 0 0 0 2px rgba(17, 16, 59, .08);
}

.mb-bundle-card__dot {
    width: 18px;
    height: 18px;
    border: 2px solid #d9d1c8;
    border-radius: 50%;
}

.mb-bundle-card input:checked + .mb-bundle-card__dot,
.mb-bundle-card.is-selected .mb-bundle-card__dot {
    border: 5px solid var(--mb-primary, #11103b);
}

.mb-bundle-card__main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mb-bundle-card__main strong {
    color: var(--mb-primary, #11103b);
    font-size: 16px;
    line-height: 1.2;
    word-break: normal;
}

.mb-bundle-card__main small,
.mb-bundle-card__price small {
    color: #746a61;
    font-size: 12px;
    line-height: 1.25;
}

.mb-bundle-card__badge {
    position: absolute;
    top: -10px;
    right: 12px;
    max-width: min(210px, 55%);
    padding: 4px 9px;
    border-radius: 4px;
    background: var(--mb-primary, #11103b);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
}

.mb-bundle-card__price {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--mb-primary, #11103b);
    white-space: nowrap;
}

.mb-bundle-card__price strong {
    font-size: 16px;
    line-height: 1.1;
}

.mb-bundle-colors {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px dashed #d9d1c8;
    border-radius: 8px;
    background: #fffaf5;
}

.mb-bundle-colors[hidden] {
    display: none !important;
}

.mb-bundle-colors__title {
    color: var(--mb-primary, #11103b);
    font-size: 13px;
    font-weight: 900;
}

.mb-bundle-colors__items {
    display: grid;
    gap: 8px;
}

.mb-bundle-color {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.mb-bundle-color label {
    margin: 0;
    color: #746a61;
    font-size: 12px;
    font-weight: 900;
}

.mb-bundle-color select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #ded6cf;
    border-radius: 6px;
    background: #fff;
    color: var(--mb-primary, #11103b);
    font-weight: 800;
}

.mb-bundle-card__price small {
    text-decoration: line-through;
}

.mb-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(0, 0, 0, .46);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.mb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99998;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100vw, 620px);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fff;
    color: #171717;
    box-shadow: -20px 0 50px rgba(0, 0, 0, .18);
    transform: translateX(104%);
    transition: transform .2s ease;
    max-width: 100%;
    overscroll-behavior-x: none;
}

.mb-drawer,
.mb-drawer * {
    box-sizing: border-box;
}

.mb-drawer button,
.mb-drawer select,
.mb-drawer input,
.mb-checkout {
    touch-action: manipulation;
}

/* Le geste horizontal est reserve aux carrousels (upsells, suggestions) :
   partout ailleurs, seul le defilement vertical est autorise, sinon iOS
   laisse "swiper" le panier des qu'un element deborde d'un pixel. */
.mb-drawer__head,
.mb-drawer__foot,
.mb-drawer__body,
.mb-timer,
.mb-progress,
.mb-gift-ladder,
.mb-gift-card,
.mb-cart-items,
.mb-cart-item,
.mb-gift-options,
.mb-upsells__title,
.mb-empty-suggestions__head {
    touch-action: pan-y pinch-zoom;
}

.mb-timer,
.mb-cart-items,
.mb-cart-item {
    overflow-x: hidden;
    overflow-x: clip;
}

.mb-cart-item__info dl,
.mb-cart-item__info p {
    max-width: 100%;
    overflow: hidden;
}

.mb-gift-options select {
    max-width: 100%;
}

body.mb-drawer-open {
    overflow: hidden;
}

body.mb-drawer-open .mb-drawer {
    transform: translateX(0);
}

body.mb-drawer-open .mb-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.mb-drawer__head,
.mb-drawer__foot {
    padding: 18px 28px;
    background: #fff;
}

.mb-drawer__head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    border-bottom: 1px solid #eee7df;
}

.mb-drawer__head strong {
    color: var(--mb-primary, #11103b);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.mb-drawer__head strong span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--mb-primary, #11103b);
    color: #fff;
    font-size: 15px;
}

.mb-back-btn,
.mb-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: #f5f1ec;
    color: #111;
    font-size: 20px;
    cursor: pointer;
}

.mb-back-btn {
    position: relative;
    justify-self: start;
    overflow: hidden;
    color: transparent;
    background: transparent;
}

.mb-back-btn:before,
.mb-back-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    color: var(--mb-primary, #11103b);
}

.mb-back-btn:before {
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: translate(-58%, -50%);
}

.mb-back-btn:after {
    width: 10px;
    height: 10px;
    border: solid currentColor;
    border-width: 2px 2px 0 0;
    transform: translate(16%, -50%) rotate(45deg);
}

.mb-drawer__body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    padding: 0 28px 22px;
}

.mb-timer {
    margin: 0 -28px 18px;
    padding: 13px 28px;
    min-width: 0;
    max-width: calc(100% + 56px);
    background: #e8d7b7;
    color: var(--mb-primary, #11103b);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.mb-timer strong {
    font-weight: 950;
}

.mb-progress {
    width: 100%;
    min-width: 0;
    margin-bottom: 22px;
    max-width: 100%;
    padding: 9px 0 0;
    contain: layout;
    overflow: visible;
}

.mb-progress p {
    margin: 0 0 10px;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.mb-progress__track {
    position: relative;
    height: 7px;
    max-width: 100%;
    overflow: visible;
    border-radius: 999px;
    background: #e8e1d9;
}

.mb-progress__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mb-primary, #11103b);
}

.mb-progress__track i {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--mb-primary, #11103b);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    transform: translate(0, -50%);
    box-shadow: 0 0 0 3px #fff, 0 1px 0 rgba(0, 0, 0, .18);
}

.mb-progress__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.mb-progress__steps span {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: #746a61;
    overflow-wrap: anywhere;
    word-break: normal;
}

.mb-progress__steps span.is-done {
    color: var(--mb-primary, #11103b);
}

.mb-gift-ladder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 14px;
    overflow-x: hidden;
}

.mb-gift-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 9px;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #eee7df;
    border-radius: 8px;
    background: #fffaf5;
}

.mb-gift-card.is-unlocked {
    border-color: #bfeecb;
    background: #effcf2;
}

.mb-gift-card__image img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 7px;
    background: #f5f1ec;
}

.mb-gift-card__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.mb-gift-card__text strong {
    color: var(--mb-primary, #11103b);
    font-size: 12px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.mb-gift-card__text span {
    color: #746a61;
    font-size: 11px;
    font-weight: 800;
}

.mb-gift-card.is-unlocked .mb-gift-card__text span {
    color: #08783d;
}

.mb-cart-items {
    display: grid;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.mb-cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(106px, auto);
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid #eee7df;
}

.mb-cart-item__image img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    background: #efe4d6;
    box-shadow: 0 12px 24px rgba(17, 16, 59, .08);
}

.mb-cart-item__info {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
}

.mb-cart-item__info strong {
    color: var(--mb-primary, #11103b);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.mb-cart-item__info dl,
.mb-cart-item__info p {
    margin: 0;
    color: #746a61;
    font-size: 12px;
}

.mb-gift-options {
    display: grid;
    gap: 7px;
    margin-top: 3px;
}

.mb-gift-options label {
    display: grid;
    gap: 4px;
    max-width: 190px;
}

.mb-gift-options span {
    color: #746a61;
    font-size: 11px;
    font-weight: 800;
}

.mb-gift-options select {
    width: 100%;
    min-height: 34px;
    padding: 0 30px 0 10px;
    border: 1px solid #eee0d4;
    border-radius: 7px;
    background-color: #fff;
    color: var(--mb-primary, #11103b);
    font-size: 12px;
    font-weight: 800;
}

.mb-cart-item__info button,
.mb-cart-item__side button {
    border: 0;
    background: transparent;
    color: #746a61;
    cursor: pointer;
    text-decoration: underline;
}

.mb-cart-item__side {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 10px;
    white-space: nowrap;
}

.mb-qty {
    display: grid;
    grid-template-columns: 26px 42px 26px;
    height: 38px;
    border: 1px solid #ded6cf;
    border-radius: 8px;
    overflow: hidden;
}

.mb-qty button,
.mb-qty input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: #fff;
    color: #111;
    text-align: center;
}

.mb-qty button {
    text-decoration: none;
}

.mb-pill,
.mb-cart-line-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #d9f5df;
    color: #08783d;
    font-size: 12px;
    font-weight: 700;
}

.mb-saving {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #d9f5df;
    color: #08783d;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.mb-upsells {
    margin-top: 22px;
}

.mb-upsells__title {
    margin-bottom: 12px;
    color: var(--mb-primary, #11103b);
    font-size: 15px;
    font-weight: 900;
}

.mb-upsells__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y pinch-zoom;
}

.mb-upsell {
    display: grid;
    grid-template-rows: 92px auto auto;
    gap: 8px;
    align-items: center;
    flex: 0 0 172px;
    min-height: 202px;
    padding: 12px;
    background: #f5f6f8;
    border-radius: 12px;
    scroll-snap-align: start;
}

.mb-upsell img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    justify-self: center;
    border-radius: 12px;
}

.mb-upsell span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.mb-upsell strong {
    display: -webkit-box;
    color: var(--mb-primary, #11103b);
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mb-upsell button,
.mb-checkout {
    border: 0;
    border-radius: 6px;
    background: var(--mb-primary, #11103b);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.mb-upsell button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
}

.mb-drawer__foot {
    display: grid;
    gap: 12px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eee7df;
    box-shadow: 0 -12px 26px rgba(17, 16, 59, .05);
}

.mb-summary-row,
.mb-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mb-coupon {
    display: grid;
    gap: 7px;
    padding: 0 0 5px;
    border-bottom: 1px solid #eee7df;
}

.mb-coupon__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
    margin: 0;
}

.mb-coupon__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mb-primary, #11103b);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
}

.mb-coupon__toggle i {
    display: block;
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.mb-coupon__toggle[aria-expanded="true"] i {
    transform: rotate(225deg);
}

.mb-coupon__panel {
    display: grid;
    gap: 4px;
}

.mb-coupon__panel[hidden] {
    display: none !important;
}

.mb-coupon input {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #ded6cf;
    border-radius: 4px;
    background: #fff;
    color: var(--mb-primary, #11103b);
    font-size: 14px;
    font-weight: 600;
    -webkit-appearance: none;
}

.mb-coupon button {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: var(--mb-primary, #11103b);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.mb-coupon button.is-loading {
    opacity: .65;
    pointer-events: none;
}

.mb-coupon__message {
    min-height: 0;
    color: #08783d;
    font-size: 11px;
    font-weight: 800;
}

.mb-coupon__message.is-error {
    color: #b42318;
}

.mb-coupon__applied {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.mb-coupon__applied span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
    color: #11103b;
    font-size: 12px;
    font-weight: 400;
}

.mb-coupon__applied button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #475569;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
}

.mb-summary-row {
    color: #171717;
    font-size: 14px;
    font-weight: 600;
}

.mb-summary-row--discount {
    color: #08783d;
}

.mb-total {
    color: var(--mb-primary, #11103b);
    font-size: 22px;
    font-weight: 700;
}

.mb-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    box-shadow: 0 12px 22px rgba(17, 16, 59, .15);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.mb-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.mb-payments--image img {
    display: block;
    width: auto;
    max-width: min(100%, 430px);
    max-height: 34px;
    margin: 0 auto;
    object-fit: contain;
}

.mb-payments span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #fff;
    color: var(--mb-primary, #11103b);
    font-size: 11px;
    font-weight: 950;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.mb-empty {
    display: grid;
    gap: 7px;
    padding: 54px 0;
    color: #746a61;
    font-size: 14px;
    text-align: center;
}

.mb-empty strong {
    color: var(--mb-primary, #11103b);
    font-size: 18px;
}

.mb-empty-suggestions {
    display: grid;
    gap: 14px;
    margin: 4px 0 22px;
    max-width: 100%;
    overflow: hidden;
}

.mb-empty-suggestions__head {
    display: grid;
    gap: 4px;
    text-align: center;
}

.mb-empty-suggestions__head strong {
    color: var(--mb-primary, #11103b);
    font-size: 18px;
    line-height: 1.2;
}

.mb-empty-suggestions__head span {
    color: #746a61;
    font-size: 13px;
}

.mb-empty-suggestions__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    touch-action: pan-x pan-y pinch-zoom;
}

.mb-empty-product {
    display: grid;
    grid-template-rows: 150px auto auto auto;
    gap: 8px;
    flex: 0 0 188px;
    padding: 12px;
    border: 1px solid #eee7df;
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
}

.mb-empty-product a {
    display: block;
}

.mb-empty-product img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f1ec;
}

.mb-empty-product strong {
    display: -webkit-box;
    color: var(--mb-primary, #11103b);
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mb-empty-product span {
    color: #111;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mb-empty-product .woocommerce-Price-amount {
    display: inline-flex;
    gap: 3px;
    align-items: baseline;
    white-space: nowrap;
}

.mb-empty-product button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    background: var(--mb-primary, #11103b);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 560px) {
    .mb-bundle-card {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        min-height: 78px;
        gap: 10px;
        padding: 12px;
    }

    .mb-bundle-card__price {
        grid-column: auto;
        justify-items: end;
        align-self: center;
        min-width: 74px;
    }

    .mb-bundle-card__badge {
        right: 10px;
        max-width: 54%;
    }

    .mb-bundle-card__main strong,
    .mb-bundle-card__price strong {
        font-size: 15px;
    }

    .mb-bundle-card__main small,
    .mb-bundle-card__price small {
        font-size: 11px;
    }

    .mb-bundle-color {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mb-drawer {
        width: 100vw;
    }

    .mb-drawer__head,
    .mb-drawer__foot,
    .mb-drawer__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mb-drawer__head strong {
        font-size: 20px;
    }

    .mb-drawer__head strong span {
        min-width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .mb-timer {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        border-radius: 6px;
    }

    .mb-cart-item {
        grid-template-columns: 86px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 18px 0;
    }

    .mb-cart-item__info strong {
        font-size: 13px;
    }

    .mb-cart-item__image img {
        width: 86px;
        height: 86px;
        border-radius: 14px;
    }

    .mb-cart-item__side {
        grid-column: 3;
        justify-items: end;
    }

    .mb-saving {
        display: none;
    }

    .mb-drawer__foot {
        gap: 8px;
        padding-top: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .mb-total {
        font-size: 20px;
    }

    .mb-checkout {
        min-height: 50px;
        font-size: 15px;
    }

    .mb-coupon input,
    .mb-coupon button {
        min-height: 42px;
    }

    .mb-coupon input {
        font-size: 16px;
    }

    .mb-coupon button {
        font-size: 13px;
    }

    .mb-payments {
        gap: 5px;
    }

    .mb-payments span {
        min-width: 0;
        height: 26px;
        padding: 0 8px;
        font-size: 10px;
    }

    .mb-payments--image img {
        max-height: 30px;
    }

}

@media (max-width: 420px) {
    .mb-cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .mb-cart-item__image img {
        width: 76px;
        height: 76px;
    }

    .mb-cart-item__side {
        grid-column: 2;
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .mb-drawer {
        font-size: var(--mb-mobile-body-font, 13px);
    }

    .mb-drawer__head strong {
        font-size: var(--mb-mobile-header-font, 20px);
    }

    .mb-timer,
    .mb-progress p,
    .mb-coupon__toggle,
    .mb-coupon__applied span {
        font-size: var(--mb-mobile-body-font, 13px);
        line-height: 1.35;
    }

    .mb-drawer__head {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mb-timer {
        margin-bottom: 14px;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 9px;
        padding-bottom: 9px;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px);
    }

    .mb-progress {
        margin-bottom: 14px;
        padding-top: 9px;
    }

    .mb-progress p {
        margin-bottom: 7px;
    }

    .mb-progress__track {
        height: 6px;
        margin-top: 2px;
    }

    .mb-progress__track i {
        width: 18px;
        height: 18px;
        font-size: 10px;
        right: 5px;
    }

    .mb-progress__steps {
        gap: 6px;
        margin-top: 7px;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 2px);
        line-height: 1.2;
    }

    .mb-gift-ladder {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 12px;
    }

    .mb-gift-card {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 7px;
        align-items: center;
        min-height: 60px;
        padding: 7px;
    }

    .mb-gift-card__image img {
        width: 34px;
        height: 34px;
    }

    .mb-gift-card__text strong {
        display: -webkit-box;
        overflow: hidden;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 2px);
        line-height: 1.15;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mb-gift-card__text span {
        font-size: calc(var(--mb-mobile-body-font, 13px) - 3px);
    }

    .mb-cart-item {
        grid-template-columns: 78px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "image info price"
            "image info price";
        gap: 8px 12px;
        align-items: start;
        padding: 15px 0;
    }

    .mb-cart-item__image {
        grid-area: image;
    }

    .mb-cart-item__image img {
        width: 78px;
        height: 78px;
        border-radius: 12px;
    }

    .mb-cart-item__info {
        grid-area: info;
        gap: 4px;
    }

    .mb-cart-item__info strong {
        font-size: var(--mb-mobile-product-font, 14px);
        line-height: 1.25;
    }

    .mb-cart-item__info button {
        width: fit-content;
        padding: 0;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px);
    }

    .mb-gift-options {
        gap: 5px;
    }

    .mb-gift-options label {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 7px;
        max-width: 220px;
    }

    .mb-gift-options span {
        white-space: nowrap;
    }

    .mb-gift-options select {
        min-height: 36px;
        font-size: 16px;
        font-weight: 700;
    }

    .mb-qty input {
        font-size: 16px;
    }

    .mb-cart-item__side {
        grid-area: price !important;
        grid-column: auto !important;
        justify-items: end !important;
        align-content: start;
        min-width: 76px;
        gap: 8px;
    }

    .mb-cart-item__side > strong {
        font-size: var(--mb-mobile-product-font, 14px);
        line-height: 1.2;
    }

    .mb-qty {
        width: 86px;
        height: 34px;
        grid-template-columns: 26px 32px 26px;
    }

    .mb-upsells {
        margin-top: 16px;
    }

    .mb-upsells__title {
        margin-bottom: 9px;
        font-size: var(--mb-mobile-product-font, 14px);
    }

    .mb-upsells__rail {
        gap: 10px;
        padding-bottom: 8px;
    }

    .mb-upsell {
        flex-basis: 146px;
        grid-template-rows: 74px auto auto;
        min-height: 0;
        gap: 6px;
        padding: 10px;
        border-radius: 10px;
    }

    .mb-upsell img {
        width: 74px;
        height: 74px;
        border-radius: 8px;
    }

    .mb-upsell strong {
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px);
    }

    .mb-upsell small {
        color: var(--mb-primary, #11103b);
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px);
        font-weight: 700;
    }

    .mb-upsell button {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .mb-summary-row {
        font-size: var(--mb-mobile-body-font, 13px);
    }

    .mb-coupon {
        gap: 6px;
    }

    .mb-coupon__applied {
        justify-content: flex-start;
    }

    .mb-total {
        font-size: var(--mb-mobile-total-font, 24px);
    }

    .mb-empty {
        padding: 24px 0 8px;
    }

    .mb-empty strong,
    .mb-empty span {
        display: block;
        line-height: 1.35;
    }

    .mb-empty-suggestions {
        gap: 10px;
        margin: 0 -16px 18px;
        padding: 0 16px;
        overflow: hidden;
    }

    .mb-empty-suggestions__head {
        gap: 3px;
        text-align: left;
    }

    .mb-empty-suggestions__head strong {
        display: block;
        font-size: calc(var(--mb-mobile-header-font, 20px) - 5px);
        line-height: 1.2;
    }

    .mb-empty-suggestions__head span {
        display: block;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px);
        line-height: 1.35;
    }

    .mb-empty-suggestions__rail {
        display: flex !important;
        gap: 10px;
        margin: 0 -16px;
        padding: 0 16px 12px;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
    }

    .mb-empty-product {
        display: grid !important;
        grid-template-rows: 118px minmax(40px, auto) auto 34px !important;
        flex: 0 0 148px !important;
        width: 148px !important;
        min-width: 148px !important;
        gap: 6px;
        padding: 8px;
        scroll-snap-align: start;
    }

    .mb-empty-product a {
        display: block !important;
        min-width: 0;
    }

    .mb-empty-product img {
        display: block !important;
        width: 100% !important;
        height: 118px !important;
        max-width: none !important;
        object-fit: cover !important;
        border-radius: 7px;
    }

    .mb-empty-product strong {
        display: -webkit-box !important;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px) !important;
        line-height: 1.18;
        min-height: 32px;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mb-empty-product span {
        display: block !important;
        font-size: calc(var(--mb-mobile-body-font, 13px) - 1px) !important;
        line-height: 1.1;
        white-space: nowrap !important;
    }

    .mb-empty-product .woocommerce-Price-amount,
    .mb-empty-product .woocommerce-Price-currencySymbol {
        white-space: nowrap !important;
    }

    .mb-empty-product button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 34px !important;
        padding: 0 8px !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: var(--mb-primary, #11103b) !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: normal !important;
    }
}

@media (max-width: 380px) {
    .mb-gift-ladder {
        gap: 6px;
    }

    .mb-gift-card {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 6px;
        min-height: 56px;
        padding: 6px;
    }

    .mb-gift-card__image img {
        width: 30px;
        height: 30px;
    }

    .mb-gift-card__text strong {
        font-size: 10px;
    }

    .mb-gift-card__text span {
        font-size: 10px;
    }

    .mb-cart-item {
        grid-template-columns: 68px minmax(0, 1fr) auto !important;
        gap: 8px;
    }

    .mb-cart-item__image img {
        width: 68px;
        height: 68px;
    }

    .mb-cart-item__side {
        min-width: 68px;
    }

    .mb-empty-product {
        flex-basis: 136px !important;
        width: 136px !important;
        min-width: 136px !important;
        grid-template-rows: 108px minmax(40px, auto) auto 34px !important;
    }

    .mb-empty-product img {
        height: 108px !important;
    }

    .mb-upsell {
        flex-basis: 138px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mb-drawer,
    .mb-drawer-overlay,
    .mb-coupon__toggle i {
        transition: none;
    }
}
