/* Header cart modal — isolated from page/cart templates. */
body.am-cart-modal-open {
    overflow: hidden;
    overflow-x: hidden;
}

body.am-gift-modal-open {
    overflow: hidden;
}

.am-cart-modal[hidden],
.am-cart-modal [hidden] {
    display: none !important;
}

.am-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .24s ease, visibility .24s ease;
}

.am-cart-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.am-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, .64);
    cursor: default;
}

.am-cart-modal__dialog {
    position: relative;
    width: min(1200px, calc(100vw - 80px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 2px;
    padding: 44px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .24);
    opacity: 0;
    transform: translateY(20px) scale(.985);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .24s ease;
    outline: none;
}

.am-cart-modal.is-open .am-cart-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.am-cart-modal__close {
    position: absolute;
    z-index: 4;
    top: 25px;
    right: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #3E5338;
    cursor: pointer;
    transition: transform .2s ease;
}

.am-cart-modal__close:hover {
    transform: rotate(90deg);
}

.am-cart-modal__close svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.am-cart-modal__content {
    min-height: 120px;
    max-height: calc(100vh - 136px);
    overflow: hidden;
}

.am-cart-modal__loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(1px);
}

.am-cart-modal__loader span {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(62,83,56,.18);
    border-top-color: #3E5338;
    border-radius: 50%;
    animation: am-cart-spin .7s linear infinite;
}

@keyframes am-cart-spin { to { transform: rotate(360deg); } }

.am-cart-modal__status {
    margin: 14px 0 0;
    color: #B90101;
    font-size: 14px;
    text-align: center;
}

/* Empty cart. */
.am-cart-modal-empty {
    min-height: 345px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 30px 0;
    text-align: center;
}

.am-cart-modal-empty__icon {
    width: 204px;
    height: 156px;
    margin-bottom: 8px;
    color: #273528;
}

.am-cart-modal-empty__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.am-cart-modal-empty h2 {
    margin: 0 0 8px;
    color: #3E5338;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.am-cart-modal-empty p {
    margin: 0 0 28px;
    color: #282828;
    font-size: 18px;
    line-height: 1.4;
}

.am-cart-modal-empty__button {
    width: min(365px, 100%);
    min-height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
}

.am-cart-modal-empty__button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Filled cart. */
.am-cart-modal-filled {
    display: flex;
    flex-direction: column;
    height: min(720px, calc(100vh - 136px));
    min-height: 575px;
}

.am-cart-modal-filled__title {
    margin: 0 0 22px;
    padding-right: 50px;
    color: #3E5338;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.am-cart-shipping-progress {
    margin-bottom: 29px;
}

.am-cart-shipping-progress__text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3E5338;
}

.am-cart-shipping-progress__text > span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.am-cart-shipping-progress__text img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.am-cart-shipping-progress__text p {
    margin: 0;
    color: #3E5338;
    font-size: 16px;
    line-height: 1.35;
}

.am-cart-shipping-progress__text strong {
    font-weight: 600;
}

.am-cart-shipping-progress__separator {
    margin: 0 5px;
    font-weight: 400;
}

.am-cart-shipping-progress__track {
    position: relative;
    height: 4px;
    margin-top: 11px;
    border-radius: 3px;
    background: #D8DDD6;
}

.am-cart-shipping-progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 3px;
    background: #3E5338;
    transition: width .35s ease;
}

.am-cart-shipping-progress__track i {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 1px solid #282828;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: left .35s ease;
    max-width: 16px;
}

.am-cart-shipping-progress__track i[style*="left:100%"],
.am-cart-shipping-progress__track i[style*="left: 100%"] { left: calc(100% - 8px) !important; }

.am-cart-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 730px) minmax(320px, 1fr);
    gap: 24px;
    align-items: stretch;
    min-height: 0;
    flex: 1;
}

.am-cart-modal-items {
    min-height: 446px;
    display: flex;
    flex-direction: column;
    padding-right: 12px;
    overflow: hidden;
}

.am-cart-modal-items__scroll {
    min-height: 0;
    overflow-y: auto;
    padding-right: 12px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #3E5338 #F2F2F2;
}

.am-cart-modal-items__scroll::-webkit-scrollbar { width: 6px; }
.am-cart-modal-items__scroll::-webkit-scrollbar-track { background: #F2F2F2; border-radius: 10px; }
.am-cart-modal-items__scroll::-webkit-scrollbar-thumb { background: #3E5338; border-radius: 10px; }

.am-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(190px, 1fr) 118px 112px 28px;
    gap: 12px;
    align-items: center;
    min-height: 160px;
    border-top: 1px solid #AEB3AD;
    border-bottom: 1px solid #AEB3AD;
    padding: 24px 0;
}

.am-cart-item + .am-cart-item {
    border-top: 0;
}

.am-cart-item__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    overflow: hidden;
    background: #F7F7F6;
}

.am-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.am-cart-item__info {
    min-width: 0;
}

.am-cart-item__title {
    display: -webkit-box;
    overflow: hidden;
    color: #3E5338;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.am-cart-item__variation {
    margin-top: 5px;
    color: #686868;
    font-size: 11px;
    line-height: 1.35;
}

.am-cart-item__variation dl,
.am-cart-item__variation p {
    margin: 0;
}

.am-cart-item__discount-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #686868;
}

.am-cart-item__discount-hint span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    border-radius: 4px;
    padding: 3px 6px;
    background: #F2F2F2;
    color: #282828;
    font-size: 12px;
    font-weight: 500;
}

.am-cart-item__discount-hint small {
    color: #282828;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.am-cart-item__quantity {
    display: grid;
    grid-template-columns: 32px 52px 32px;
    align-items: center;
}

.am-cart-item__quantity button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 52px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #3E5338;
    cursor: pointer;
}

.am-cart-item__quantity button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.am-cart-item__quantity span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border: 1px solid #282828;
    border-radius: 4px;
    color: #909090;
    font-size: 16px;
}

.am-cart-item__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.am-cart-item__price strong {
    color: #282828;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
}

.am-cart-item__price.is-discounted strong {
    color: #B90101;
}

.am-cart-item__price del {
    color: #909090;
    font-size: 12px;
    font-weight: 400;
}

.am-cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #3E5338;
    cursor: pointer;
}

.am-cart-item__remove img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.am-cart-modal-summary {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.am-cart-recommendations h3 {
    margin: 0 0 10px;
    color: #3E5338;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.am-cart-recommendations__viewport {
    overflow: hidden;
}

.am-cart-recommendations__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.am-cart-recommendations__track::-webkit-scrollbar { display: none; }

.am-cart-recommendation {
    min-width: 0;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 7px;
    scroll-snap-align: start;
    background: #fff;
}

.am-cart-recommendation__top {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 78px;
}

.am-cart-recommendation__top img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #F7F7F6;
}

.am-cart-recommendation__title {
    display: -webkit-box;
    overflow: hidden;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.am-cart-recommendation__top strong {
    display: block;
    margin-top: 4px;
    color: #282828;
    font-size: 18px;
    font-weight: 600;
}

.am-cart-recommendation__top del {
    display: none;
}

.am-cart-recommendation__button {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    padding: 12px 8px;
    font-size: 15px;
}

.am-cart-recommendations__dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 10px 0 18px;
}

.am-cart-recommendations__dots button {
    position: relative;
    width: 8px;
    height: 8px;
    border: 1px solid #282828;
    border-radius: 50%;
    padding: 0;
    background: #fff;
}

.am-cart-recommendations__dots button.is-active::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    inset: 1px;
    border-radius: 50%;
    background: #282828;
}

.am-cart-gift-wrap {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 73px;
    border-radius: 4px;
    padding: 14px 16px;
    background: #F2F2F2;
    color: #282828;
    cursor: pointer;
}

.am-cart-gift-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.am-cart-gift-wrap__box {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #686868;
    border-radius: 4px;
    background: #fff;
}

.am-cart-gift-wrap input:checked + .am-cart-gift-wrap__box::after {
    content: "";
    width: 11px;
    height: 6px;
    border-left: 2px solid #3E5338;
    border-bottom: 2px solid #3E5338;
    transform: rotate(-45deg) translate(1px, -1px);
}

.am-cart-gift-wrap > span:nth-of-type(2) {
    font-size: 15px;
    line-height: 1.3;
}

.am-cart-gift-wrap strong {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.am-cart-total-card {
    margin-top: 16px;
    border-radius: 4px;
    padding: 16px;
    background: rgba(62,83,56,.2);
}

.am-cart-total-card__row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    color: #282828;
    font-size: 16px;
    font-weight: 400;
}

.am-cart-total-card__row strong { font-weight: 500; }

.am-cart-total-card__savings {
    border-top: 1px solid rgba(62,83,56,.35);
}

.am-cart-total-card__grand {
    margin-bottom: 9px;
    border-top: 1px solid rgba(62,83,56,.35);
    color: #3E5338;
    font-size: 18px;
    font-weight: 600;
}

.am-cart-total-card__grand strong {
    font-weight: 600;
}

.am-cart-total-card strong {
    white-space: nowrap;
}

.am-cart-checkout-button {
    width: 100%;
    min-height: 68px;
    padding: 15px;
    font-size: 17px;
    text-align: center;
}

@media (max-width: 1100px) {
    .am-cart-modal-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
    }
    .am-cart-item {
        grid-template-columns: 92px minmax(150px, 1fr) 106px 94px 26px;
        gap: 9px;
    }
    .am-cart-item__image { width: 92px; height: 92px; }
    .am-cart-item__title { font-size: 15px; }
}

@media (max-width: 900px) {
    .am-cart-modal {
        padding: 16px;
    }
    .am-cart-modal__dialog {
        width: min(760px, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
        overflow: auto;
        padding: 32px 24px;
    }
    .am-cart-modal__content {
        max-height: none;
        overflow: visible;
    }
    .am-cart-modal-filled {
        height: auto;
    }
    .am-cart-modal-grid {
        grid-template-columns: 1fr;
    }
    .am-cart-modal-items {
        min-height: 0;
        border-right: 0;
        border-bottom: 3px solid #3E5338;
        padding: 0 0 24px;
    }
    .am-cart-recommendations__track {
        grid-auto-columns: 48%;
    }
}

@media (max-width: 640px) {
    .am-cart-modal {
        align-items: flex-end;
        padding: 8px;
    }
    .am-cart-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 6px 6px 0 0;
        padding: 24px 14px 20px;
    }
    .am-cart-modal__close {
        top: 13px;
        right: 12px;
    }
    .am-cart-modal-empty {
        min-height: 480px;
        padding: 25px 5px;
    }
    .am-cart-modal-empty__icon {
        width: 170px;
        height: 125px;
    }
    .am-cart-modal-empty h2 {
        font-size: 26px;
    }
    .am-cart-modal-empty p {
        font-size: 16px;
    }
    .am-cart-modal-empty__button {
        min-height: 56px;
        font-size: 15px;
    }
    .am-cart-modal-filled {
        min-height: 0;
    }
    .am-cart-modal-filled__title {
        margin-bottom: 16px;
        font-size: 18px;
    }
    .am-cart-shipping-progress {
        margin-bottom: 20px;
    }
    .am-cart-shipping-progress__text {
        align-items: flex-start;
    }
    .am-cart-shipping-progress__text p {
        font-size: 13px;
    }
    .am-cart-shipping-progress__separator {
        display: block;
        height: 5px;
        color: transparent;
    }
    .am-cart-item {
        grid-template-columns: 82px minmax(0,1fr) 25px;
        gap: 10px;
        padding: 16px 0;
    }
    .am-cart-item__image {
        width: 82px;
        height: 100px;
        grid-row: span 2;
    }
    .am-cart-item__title {
        font-size: 15px;
    }
    .am-cart-item__remove {
        align-self: start;
    }
    .am-cart-item__quantity {
        grid-column: 2;
        grid-template-columns: 30px 48px 30px;
        justify-self: start;
    }
    .am-cart-item__quantity button {
        width: 30px;
        height: 44px;
    }
    .am-cart-item__quantity span {
        height: 44px;
    }
    .am-cart-item__price {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
    }
    .am-cart-item__price strong {
        font-size: 15px;
    }
    .am-cart-item__discount-hint small {
        font-size: 10px;
    }
    .am-cart-recommendations__track {
        grid-auto-columns: 74%;
    }
    .am-cart-gift-wrap {
        grid-template-columns: 22px minmax(0,1fr) auto;
        padding: 12px;
    }
    .am-cart-gift-wrap__box {
        width: 22px;
        height: 22px;
    }
    .am-cart-total-card > div {
        font-size: 16px;
    }
    .am-cart-checkout-button {
        min-height: 56px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-cart-modal,
    .am-cart-modal__dialog,
    .am-cart-shipping-progress__fill {
        transition: none !important;
    }
}

/* Complimentary gift in cart. */
.am-cart-gift-wrap {
    margin-top: auto;
}

.am-cart-selected-gift,
.am-cart-gift-callout {
    flex: 0 0 auto;
    margin-top: 16px;
    border-radius: 4px;
    background: rgba(62, 83, 56, .2);
}

/* 6.26 — exact desktop/mobile cart composition. */
.am-cart-modal__back { display: none; }
.am-cart-title-mobile { display: none; }
.am-cart-modal-filled__top { flex: 0 0 auto; }

@media (min-width: 901px) {
    .am-cart-modal-filled__top > .am-cart-modal-filled__title { margin-bottom: 22px; }
    .am-cart-item {
        grid-template-columns: 112px minmax(250px, 1fr) 118px 112px 28px;
        min-height: 136px;
        padding: 12px 0;
        border-top: 0;
        border-bottom: 1px solid #AEB3AD;
    }
    .am-cart-item:first-child { border-top: 1px solid #AEB3AD; }
    .am-cart-item__image { width: 112px; height: 112px; }
    .am-cart-item__price { grid-column: 4; }
    .am-cart-item__remove { grid-column: 5; }
}

@media (max-width: 640px) {
    .am-cart-modal {
        align-items: stretch;
        padding: 0;
    }
    .am-cart-modal__backdrop { display: none; }
    .am-cart-modal__dialog {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        transform: translateY(16px);
        overflow-x: hidden;
    }
    .am-cart-modal__content {
        width: 100%;
        height: 100%;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }
    .am-cart-modal__content::-webkit-scrollbar { display: none; }
    .am-cart-modal-filled {
        width: 100%;
        max-width: 100%;
        display: block;
        min-height: 100%;
        height: auto;
        padding: 0 16px 188px;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .am-cart-modal-filled__top {
        position: sticky;
        z-index: 20;
        top: 0;
        margin: 0 -16px 16px;
        padding: 0 16px 14px;
        border-bottom: 0;
        background: #fff;
    }
    .am-cart-modal-filled__title {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 -16px 14px;
        border-bottom: 1px solid #AEB3AD;
        padding: 0 44px;
        color: #282828;
        font-size: 16px;
        font-weight: 400;
    }
    .am-cart-title-desktop { display: none; }
    .am-cart-title-mobile { display: inline; }
    .am-cart-modal__back {
        position: absolute;
        top: 15px;
        left: 16px;
        display: inline-flex;
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        border: 0;
        padding: 0;
        background: transparent;
        color: #3E5338;
    }
    .am-cart-modal__back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; }
    .am-cart-modal__close { position: fixed; z-index: 30; top: 15px; right: 16px; width: 30px; height: 30px; }
    .am-cart-modal__close svg { width: 25px; height: 25px; }
    .am-cart-shipping-progress { margin: 0; }
    .am-cart-shipping-progress__text { gap: 8px; }
    .am-cart-shipping-progress__text > span { width: 18px; height: 18px; flex-basis: 18px; }
    .am-cart-shipping-progress__text p { font-size: 12px; line-height: 1.25; }
    .am-cart-shipping-progress__track { margin-top: 9px; }
    .am-cart-modal-grid { display: block; }
    .am-cart-modal-items { display: block; min-height: 0; padding: 0; border: 0; overflow: visible; }
    .am-cart-modal-items__scroll { padding: 0; overflow: visible; }
    .am-cart-item {
        grid-template-columns: 70px minmax(0, 1fr) auto 24px;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 4px;
        min-height: 116px;
        padding: 16px 0;
        border-top: 0;
        border-bottom: 1px solid #AEB3AD;
    }
    .am-cart-item:first-child { border-top: 1px solid #AEB3AD; }
    .am-cart-item__image { grid-column: 1; grid-row: 1 / 3; width: 70px; height: 86px; background: #F7F7F6; }
    .am-cart-item__info { grid-column: 2 / 4; grid-row: 1; align-self: start; }
    .am-cart-item__title { font-size: 16px; font-weight: 400; line-height: 1.25; -webkit-line-clamp: 2; }
    .am-cart-item__variation { display: none; }
    .am-cart-item__discount-hint { margin-top: 4px; gap: 5px; }
    .am-cart-item__discount-hint span { min-width: 32px; min-height: 22px; padding: 2px 4px; }
    .am-cart-item__discount-hint small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .am-cart-item__price { position: relative; grid-column: 2; grid-row: 2; min-height: 34px; align-items: flex-start; justify-content: center; align-self: center; gap: 0; }
    .am-cart-item__price strong { font-size: 20px; }
    .am-cart-item__price del { position: absolute; bottom: calc(100% - 6px); left: 0; margin: 0; font-size: 11px; }
    .am-cart-item__quantity { grid-column: 3; grid-row: 2; grid-template-columns: 28px 34px 28px; align-self: center; justify-self: end; }
    .am-cart-item__quantity button { width: 28px; height: 34px; }
    .am-cart-item__quantity span { height: 34px; font-size: 14px; }
    .am-cart-item__remove { grid-column: 4; grid-row: 1 / 3; align-self: end; width: 24px; height: 34px; }
    .am-cart-item__remove img { width: 20px; height: 20px; }
    .am-cart-selected-gift { margin-top: 18px; }
    .am-cart-selected-gift header { flex-direction: row; align-items: center; padding: 8px 10px 6px; }
    .am-cart-selected-gift__product { grid-template-columns: 68px minmax(0,1fr); gap: 10px; padding: 0 10px; }
    .am-cart-selected-gift__product > img { width: 68px; height: 68px; }
    .am-cart-selected-gift__details { min-height: 68px; }
    .am-cart-selected-gift__change { width: fit-content; margin: 8px 10px 10px auto; }
    .am-cart-modal-summary { display: block; }
    .am-cart-recommendations { margin-top: 16px; }
    .am-cart-recommendations__viewport,
    .am-cart-recommendations__track { max-width: 100%; }
    .am-cart-recommendations h3 { text-align: left; }
    .am-cart-gift-wrap { margin-top: 18px; }
    .am-cart-total-card {
        position: fixed;
        z-index: 25;
        right: 0;
        bottom: 0;
        left: 0;
        margin: 0;
        border-radius: 0;
        padding: 10px 16px 14px;
        box-shadow: 0 -8px 24px rgba(40,40,40,.08);
        background: #DCE2D9;
        width: 100%;
        box-sizing: border-box;
    }
    .am-cart-total-card__row { padding: 3px 0; font-size: 14px; }
    .am-cart-total-card__grand { margin-bottom: 7px; padding-top: 5px; font-size: 17px; }
    .am-cart-checkout-button { min-height: 54px; font-size: 16px; }
    .am-cart-modal__loader { position: fixed; }
}

.am-cart-selected-gift header > span,
.am-cart-gift-callout strong {
    color: #6D8965;
    font-size: 18px;
    font-weight: 600;
}

.am-cart-selected-gift header img,
.am-cart-gift-callout__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.am-cart-selected-gift header {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    color: #3E5338;
}

.am-cart-selected-gift header > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.am-cart-selected-gift header i,
.am-cart-gift-callout__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    flex: 0 0 24px;
}

.am-cart-selected-gift header svg,
.am-cart-gift-callout svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.am-cart-selected-gift__change,
.am-cart-gift-callout > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #282828;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.am-cart-selected-gift__change svg,
.am-cart-gift-callout > button svg {
    width: 22px;
    height: 22px;
}

.am-cart-selected-gift__product {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 0 16px 14px;
}

.am-cart-selected-gift__product > img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 3px;
    background: #fff;
}

.am-cart-selected-gift__details {
    min-width: 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
}

.am-cart-selected-gift__name {
    color: #282828;
    font-size: 15px;
    line-height: 1.35;
}

.am-cart-selected-gift__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.am-cart-selected-gift__meta > strong {
    color: #282828;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
}

.am-cart-selected-gift__change {
    width: fit-content;
    margin: 0 16px 14px auto;
}

.am-cart-selected-gift__remove {
    width: 28px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #3E5338;
    cursor: pointer;
}

.am-cart-selected-gift__remove svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.am-cart-selected-gift__remove img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.am-cart-gift-callout {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
}

.am-cart-gift-callout > div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3E5338;
}

.am-cart-gift-callout strong,
.am-cart-gift-callout small {
    display: block;
}

.am-cart-gift-callout strong {
    margin-bottom: 4px;
    color: #6D8965;
    font-size: 18px;
    font-weight: 600;
}

.am-cart-gift-callout small {
    color: #686868;
    font-size: 12px;
}

/* Gift chooser — separate overlay above the cart, matching the supplied grid. */
.am-gift-modal[hidden],
.am-gift-modal [hidden] {
    display: none !important;
}

.am-gift-modal {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, visibility .22s ease;
}

.am-gift-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.am-gift-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, .66);
}

.am-gift-modal__dialog {
    position: relative;
    width: min(1200px, calc(100vw - 80px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 2px;
    padding: 44px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(0,0,0,.24);
    opacity: 0;
    transform: translateY(18px) scale(.985);
    transition: transform .28s ease, opacity .22s ease;
    outline: none;
}

.am-gift-modal.is-open .am-gift-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.am-gift-modal__dialog > h2 {
    margin: 0 50px 24px 0;
    color: #3E5338;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.am-gift-modal__close {
    position: absolute;
    z-index: 3;
    top: 24px;
    right: 25px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #3E5338;
    cursor: pointer;
}

.am-gift-modal__close svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.am-gift-modal__content {
    min-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #3E5338 transparent;
}

.am-gift-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-right: 10px;
}

.am-gift-product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 14px;
    background: #fff;
}

.am-gift-product-card__image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F8F8F7;
}

.am-gift-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.am-gift-product-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 14px 0 12px;
    overflow: hidden;
    color: #282828;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.am-gift-product-card .am-button {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 500;
}

.am-gift-product-card.is-selected .am-button,
.am-gift-product-card .am-button:disabled {
    border-color: transparent;
    background: rgba(62,83,56,.2);
    color: #3E5338;
    opacity: 1;
}

.am-gift-modal__back {
    width: fit-content;
    min-height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 28px;
    font-size: 16px;
}

.am-gift-modal__back svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.am-gift-modal__loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.68);
}

.am-gift-modal__loader span {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(62,83,56,.18);
    border-top-color: #3E5338;
    border-radius: 50%;
    animation: am-cart-spin .7s linear infinite;
}

.am-gift-modal__status,
.am-gift-modal-empty {
    color: #686868;
    font-size: 16px;
    text-align: center;
}

.am-gift-modal-empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .am-gift-products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .am-cart-modal-items { overflow: visible; padding-right: 0; }
    .am-cart-modal-items__scroll { overflow-y: visible; padding-right: 0; }
    .am-cart-gift-wrap { margin-top: 18px; }
    .am-gift-modal { padding: 16px; }
    .am-gift-modal__dialog {
        width: min(760px, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
        padding: 32px 24px;
    }
    .am-gift-products-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .am-cart-selected-gift header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .am-cart-selected-gift__product {
        grid-template-columns: 66px minmax(0,1fr);
        gap: 9px;
        padding: 0 12px;
    }
    .am-cart-selected-gift__product > img { width: 66px; height: 66px; }
    .am-cart-selected-gift header > span { font-size: 18px; }
    .am-cart-gift-callout {
        align-items: flex-start;
        flex-direction: column;
    }
    .am-gift-modal {
        align-items: flex-end;
        padding: 8px;
    }
    .am-gift-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 6px 6px 0 0;
        padding: 24px 14px 18px;
    }
    .am-gift-modal__dialog > h2 { font-size: 26px; }
    .am-gift-modal__close { top: 13px; right: 12px; }
    .am-gift-products-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
        padding-right: 4px;
    }
    .am-gift-product-card { padding: 8px; }
    .am-gift-product-card h3 { min-height: 44px; font-size: 14px; }
    .am-gift-product-card .am-button { min-height: 46px; font-size: 13px; }
    .am-gift-modal__back {
        width: 100%;
        min-height: 56px;
        margin-top: 16px;
    }
}

/* 6.28 — final mobile gift composition. */
@media (max-width: 640px) {
    .am-cart-selected-gift header {
        align-items: center;
        flex-direction: row;
        gap: 0;
        padding: 8px 10px 6px;
    }
    .am-cart-selected-gift__product {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    .am-cart-selected-gift__product > img {
        width: 68px;
        height: 68px;
    }
    .am-cart-selected-gift__details {
        min-height: 68px;
    }
    .am-cart-selected-gift__change {
        width: fit-content;
        margin: 8px 10px 10px auto;
    }
}

/* 6.29 — selected gift matched to the supplied desktop and mobile frames. */
.am-cart-selected-gift {
    position: relative;
    overflow: hidden;
    background: rgba(62, 83, 56, .2);
}

.am-cart-selected-gift header {
    min-height: 0;
    padding: 18px 16px 0;
}

.am-cart-selected-gift header > span {
    gap: 7px;
    font-size: 18px;
    line-height: 1.2;
}

.am-cart-selected-gift header i,
.am-cart-selected-gift header img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.am-cart-selected-gift__product {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 24px;
    padding: 15px 16px 14px;
}

.am-cart-selected-gift__product > img {
    width: 80px;
    height: 80px;
}

.am-cart-selected-gift__details {
    min-height: 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 28px;
    gap: 16px;
    align-items: center;
}

.am-cart-selected-gift__name {
    grid-column: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
}

.am-cart-selected-gift__meta {
    display: contents;
}

.am-cart-selected-gift__meta > strong {
    grid-column: 2;
    justify-self: start;
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.am-cart-selected-gift__remove {
    grid-column: 3;
    justify-self: end;
}

.am-cart-selected-gift__change {
    position: absolute;
    top: 19px;
    right: 16px;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .am-cart-selected-gift {
        min-height: 163px;
    }

    .am-cart-selected-gift header {
        min-height: 42px;
        padding: 8px 9px 6px;
    }

    .am-cart-selected-gift header > span {
        font-size: 18px;
    }

    .am-cart-selected-gift__product {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 7px;
        padding: 0 9px;
    }

    .am-cart-selected-gift__product > img {
        width: 72px;
        height: 72px;
    }

    .am-cart-selected-gift__details {
        min-height: 72px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .am-cart-selected-gift__name {
        font-size: 16px;
        line-height: 1.25;
    }

    .am-cart-selected-gift__meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: auto;
    }

    .am-cart-selected-gift__meta > strong {
        font-size: 18px;
    }

    .am-cart-selected-gift__remove {
        width: 20px;
        height: 26px;
    }

    .am-cart-selected-gift__remove img,
    .am-cart-selected-gift__remove svg {
        width: 20px;
        height: 20px;
    }

    .am-cart-selected-gift__change {
        position: static;
        width: fit-content;
        margin: 13px 9px 10px auto;
        font-size: 18px;
    }
}

/* 6.32 — the /cart/ page is the same cart surface as the header popup. */
.am-content-layout--cart {
    width: min(calc(100% - 80px), 1200px);
    max-width: 1200px;
    padding-top: 38px;
    padding-bottom: 20px;
}

.am-content-layout--cart .am-entry,
.am-cart-page {
    width: 100%;
}

.am-cart-page {
    position: relative;
    min-height: 433px;
    overflow: hidden;
    border: 0;
    border-radius: 2px;
    padding: 44px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .12);
    outline: none;
}

.am-cart-page [hidden] {
    display: none !important;
}

.am-cart-page__content {
    min-height: 345px;
    overflow: hidden;
}

.am-cart-page__loader {
    position: absolute;
}

.am-cart-page__status {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .am-content-layout--cart {
        width: min(calc(100% - 32px), 760px);
        padding-top: 28px;
    }

    .am-cart-page {
        padding: 32px 24px;
    }

    .am-cart-page__content {
        overflow: visible;
    }

}

@media (max-width: 640px) {
    body.woocommerce-cart .am-content-layout--cart {
        width: 100%;
        margin: 0;
        padding: 20px 16px 40px;
    }

    .am-cart-page {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .am-cart-page__content {
        width: 100%;
        height: auto;
        min-height: 0;
        overflow-y: visible;
        overflow-x: hidden;
    }

    .am-cart-page .am-cart-modal-filled {
        min-height: 0;
        padding: 0 0 24px;
        overflow: visible;
    }

    .am-cart-page .am-cart-modal-filled__top {
        position: static;
        margin: 0 0 16px;
        padding: 0 0 14px;
    }

    .am-cart-page .am-cart-modal-filled__title {
        margin: 0 0 14px;
    }

    .am-cart-page .am-cart-modal__back {
        left: 0;
    }

    .am-cart-page .am-cart-total-card {
        position: static;
        width: 100%;
        margin: 18px 0 0;
        border-radius: 4px;
        padding: 12px 16px 16px;
        box-shadow: none;
    }

    .am-cart-page__status {
        position: static;
        border-radius: 4px;
        padding: 8px 12px;
        background: #EEF2EC;
        box-shadow: none;
    }
}

/* Coupon integration for the custom cart / cart page. */
.am-cart-coupon {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #E1E1E1;
    border-radius: 4px;
    background: #fff;
}
.am-cart-coupon__title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    color: #282828;
}
.am-cart-coupon__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}
.am-cart-coupon__form input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #CFCFCF;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}
.am-cart-coupon__form button {
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 4px;
    background: #3E5338;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.am-cart-coupon__applied {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.am-cart-coupon__applied button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #3E5338;
    border-radius: 4px;
    background: #fff;
    color: #3E5338;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.am-cart-total-card__coupon { color: #3E5338; }
@media (max-width: 640px) {
    .am-cart-coupon__form { grid-template-columns: 1fr; }
    .am-cart-coupon__form button { width: 100%; }
}
