:root {
    --mc-cart-copper: #bb762c;
    --mc-cart-copper-dark: #8f541f;
    --mc-cart-green: #26704c;
    --mc-cart-ink: #26221e;
    --mc-cart-muted: #756e66;
    --mc-cart-sand: #f3ede4;
    --mc-cart-line: #e4ddd3;
}

body.mpquickcart-has-modal {
    overflow: hidden !important;
}

body.mpquickcart-has-modal .mc-ai {
    display: none !important;
}

.modal-slide.mpquickcart {
    left: auto !important;
    right: 0 !important;
    width: min(1040px, calc(100vw - 48px)) !important;
    max-width: 1040px !important;
}

.mpquickcart._inner-scroll._show ~ .modals-overlay {
    background: rgba(31, 25, 20, .46) !important;
}

.mpquickcart .modal-inner-wrap,
.mpquickcart .modal-content,
.mpquickcart .minicart-wrapper,
.mpquickcart .mpquickcart-block,
.mpquickcart .block-minicart,
.mpquickcart #minicart-content-wrapper {
    height: 100% !important;
    min-height: 0;
}

.mpquickcart .modal-inner-wrap {
    background: #fff;
    box-shadow: -18px 0 50px rgba(34, 27, 21, .18);
}

.mpquickcart .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 30;
    width: 64%;
    padding: 0 !important;
}

.mpquickcart .modal-title {
    display: none !important;
}

.mpquickcart .action-close {
    top: 21px !important;
    right: 22px !important;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid var(--mc-cart-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--mc-cart-ink) !important;
    box-shadow: none !important;
}

.mpquickcart .action-close::before {
    color: var(--mc-cart-ink) !important;
    font-size: 17px !important;
    line-height: 40px !important;
}

.mpquickcart .modal-content,
.mpquickcart .block-minicart,
.mpquickcart .mpquickcart-block {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.codex-smartcart-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    color: var(--mc-cart-ink);
    background: #fff;
}

.codex-smartcart-shell.codex-smartcart--with-recommendations {
    grid-template-columns: 36% 64%;
}

.codex-smartcart-recommendations {
    min-width: 0;
    padding: 34px 25px 28px;
    overflow-y: auto;
    background: var(--mc-cart-sand);
    border-right: 1px solid var(--mc-cart-line);
}

.codex-smartcart-recommendations__heading,
.codex-smartcart-cart__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.codex-smartcart-recommendations__heading {
    margin-bottom: 23px;
}

.codex-smartcart-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--mc-cart-copper-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.codex-smartcart-recommendations h2,
.codex-smartcart-cart__heading h2 {
    margin: 0;
    color: var(--mc-cart-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.codex-smartcart-recommendations__close {
    display: none;
}

.codex-smartcart-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.codex-smartcart-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(132, 102, 69, .16);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(65, 48, 33, .05);
}

.codex-smartcart-product__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f7f3;
}

.codex-smartcart-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.codex-smartcart-product__image:hover img {
    transform: scale(1.035);
}

.codex-smartcart-product__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
}

.codex-smartcart-product__name {
    display: -webkit-box;
    min-height: 38px;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--mc-cart-ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.codex-smartcart-product__add {
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 8px 9px;
    border: 1px solid var(--mc-cart-copper) !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: var(--mc-cart-copper-dark) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.codex-smartcart-product__add:hover,
.codex-smartcart-product__add:focus {
    background: var(--mc-cart-copper) !important;
    color: #fff !important;
}

.codex-smartcart-product__add.is-loading {
    opacity: .55;
}

.codex-smartcart-cart {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fff;
}

.codex-smartcart-cart__heading {
    min-height: 92px;
    padding: 24px 78px 18px 34px;
    border-bottom: 1px solid var(--mc-cart-line);
}

.codex-smartcart-count {
    color: var(--mc-cart-muted);
    font-size: 13px;
}

.mpquickcart .codex-smartcart-items.block-items {
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    overflow-y: auto;
    border: 0 !important;
}

.mpquickcart .codex-smartcart-items .minicart-items-wrapper {
    height: auto !important;
    margin: 0 !important;
    padding: 8px 34px 18px !important;
    overflow: visible !important;
}

.mpquickcart .codex-smartcart-items .minicart-items .product-item {
    padding: 22px 0 !important;
    border-bottom: 1px solid var(--mc-cart-line);
}

.mpquickcart .codex-smartcart-items .product-item-photo {
    width: 112px;
    overflow: hidden;
    border-radius: 10px;
    background: #f7f5f1;
}

.mpquickcart .codex-smartcart-items .product-item-details {
    padding-left: 132px;
}

.mpquickcart .codex-smartcart-items .product-item-name {
    margin: 0 35px 10px 0 !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.mpquickcart .codex-smartcart-items .product-item-name a {
    color: var(--mc-cart-ink) !important;
    font-weight: 700 !important;
}

.mpquickcart .codex-smartcart-items .product-item-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 15px;
}

.mpquickcart .codex-smartcart-items .price-container .price {
    color: var(--mc-cart-ink);
    font-size: 16px;
    font-weight: 700;
}

.mpquickcart .codex-smartcart-items .details-qty {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--mc-cart-line);
    border-radius: 8px;
    background: #fff;
}

.mpquickcart .codex-smartcart-items .details-qty .label {
    display: none;
}

.mpquickcart .codex-smartcart-items .item-qty {
    width: 42px !important;
    height: 36px !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.mpquickcart .codex-smartcart-items .button-action {
    width: 38px !important;
    height: 36px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    text-align: center;
}

.mpquickcart .codex-smartcart-items .button-action.minus {
    border-right: 1px solid var(--mc-cart-line) !important;
}

.mpquickcart .codex-smartcart-items .button-action.plus {
    border-left: 1px solid var(--mc-cart-line) !important;
}

.mpquickcart .codex-smartcart-items .button-action::before {
    color: var(--mc-cart-ink);
    line-height: 36px !important;
}

.mpquickcart .codex-smartcart-items .product.actions .action.delete {
    top: 20px;
    right: 0;
}

.mpquickcart .codex-smartcart-footer.block-footer {
    position: relative !important;
    height: auto !important;
    min-height: 0;
    padding: 18px 34px 20px;
    border-top: 1px solid var(--mc-cart-line);
    background: #fff;
    box-shadow: 0 -10px 26px rgba(44, 34, 25, .04);
}

.codex-smartcart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 16px;
}

.codex-smartcart-subtotal strong {
    font-size: 19px;
}

.codex-smartcart-shipping {
    margin-bottom: 16px;
}

.codex-smartcart-shipping__message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--mc-cart-green);
    font-size: 13px;
    line-height: 1.35;
}

.codex-smartcart-shipping__icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--mc-cart-green);
    color: #fff;
    font-size: 12px;
}

.codex-smartcart-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: #e2ded8;
}

.codex-smartcart-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--mc-cart-green);
    transition: width .35s ease;
}

.codex-smartcart-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.codex-smartcart-more {
    display: none;
}

.mpquickcart .codex-smartcart-checkout.action.primary {
    display: flex !important;
    width: 100% !important;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    float: none !important;
    padding: 13px 22px !important;
    border: 1px solid var(--mc-cart-copper-dark) !important;
    border-radius: 6px !important;
    background: var(--mc-cart-copper) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.25 !important;
    text-transform: uppercase;
}

.mpquickcart #top-cart-btn-checkout.codex-smartcart-checkout {
    width: 100% !important;
    border-color: var(--mc-cart-copper-dark) !important;
    background: var(--mc-cart-copper) !important;
}

.mpquickcart .codex-smartcart-checkout.action.primary::after {
    content: '→';
    font-size: 19px;
    font-weight: 400;
}

.mpquickcart .codex-smartcart-checkout.action.primary:hover,
.mpquickcart .codex-smartcart-checkout.action.primary:focus {
    background: var(--mc-cart-copper-dark) !important;
}

.mpquickcart #top-cart-btn-checkout.codex-smartcart-checkout:hover,
.mpquickcart #top-cart-btn-checkout.codex-smartcart-checkout:focus {
    border-color: var(--mc-cart-copper-dark) !important;
    background: var(--mc-cart-copper-dark) !important;
}

.codex-smartcart-viewcart {
    display: block;
    margin-top: 11px;
    color: var(--mc-cart-muted) !important;
    font-size: 12px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.codex-smartcart-empty {
    display: flex;
    grid-row: 2 / 4;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 30px;
    text-align: center;
}

.codex-smartcart-empty__icon {
    position: relative;
    display: block;
    width: 116px;
    height: 116px;
    margin-bottom: 24px;
    border: 2px solid rgba(187, 118, 44, .28);
    border-radius: 50%;
    background: #fbf7f0 url('../images/duck-concierge.png') center 12px / 94px auto no-repeat;
    box-shadow: 0 8px 24px rgba(69, 49, 30, .08);
}

.codex-smartcart-empty__bag {
    position: absolute;
    right: -4px;
    bottom: 4px;
    width: 38px;
    height: 31px;
    border: 3px solid var(--mc-cart-copper-dark);
    border-radius: 5px 5px 9px 9px;
    background: var(--mc-cart-sand);
    box-shadow: 0 3px 0 rgba(38, 34, 30, .1);
}

.codex-smartcart-empty__bag::before {
    position: absolute;
    top: -13px;
    left: 8px;
    width: 16px;
    height: 13px;
    border: 3px solid var(--mc-cart-copper-dark);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    content: '';
}

.codex-smartcart-empty h3 {
    margin: 0 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 700;
}

.codex-smartcart-empty p {
    max-width: 360px;
    color: var(--mc-cart-muted);
}

.codex-smartcart-empty__continue {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    margin-top: 26px;
    padding: 8px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mc-cart-ink) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--mc-cart-ink) !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
}

.codex-smartcart-empty__continue > span:first-child {
    color: var(--mc-cart-copper-dark);
    font-size: 24px;
    font-weight: 400;
    transition: transform .2s ease;
}

.codex-smartcart-empty__continue:hover,
.codex-smartcart-empty__continue:focus {
    border-bottom-color: var(--mc-cart-copper-dark) !important;
    color: var(--mc-cart-copper-dark) !important;
}

.codex-smartcart-empty__continue:hover > span:first-child,
.codex-smartcart-empty__continue:focus > span:first-child {
    transform: translateX(-3px);
}

@media (max-width: 767px) {
    .modal-slide.mpquickcart {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mpquickcart .modal-header {
        width: 100%;
    }

    .mpquickcart .action-close {
        top: 13px !important;
        right: 13px !important;
        width: 38px;
        height: 38px;
    }

    .mpquickcart .action-close::before {
        line-height: 36px !important;
    }

    .codex-smartcart-shell {
        position: relative;
        display: block;
        height: 100dvh;
        overflow: hidden;
    }

    .codex-smartcart-cart {
        height: 100%;
    }

    .codex-smartcart-cart__heading {
        min-height: 66px;
        align-items: center;
        padding: 12px 62px 10px 18px;
    }

    .codex-smartcart-cart__heading .codex-smartcart-eyebrow {
        display: none;
    }

    .codex-smartcart-cart__heading h2 {
        font-size: 23px;
    }

    .codex-smartcart-count {
        font-size: 12px;
    }

    .mpquickcart .codex-smartcart-items .minicart-items-wrapper {
        padding: 2px 16px 12px !important;
    }

    .mpquickcart .codex-smartcart-items .minicart-items .product-item {
        padding: 16px 0 !important;
    }

    .mpquickcart .codex-smartcart-items .product-item-photo {
        width: 88px;
    }

    .mpquickcart .codex-smartcart-items .product-item-details {
        padding-left: 103px;
    }

    .mpquickcart .codex-smartcart-items .product-item-name {
        margin-right: 25px !important;
        font-size: 15px;
    }

    .mpquickcart .codex-smartcart-items .product-item-pricing {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-top: 10px;
    }

    .mpquickcart .codex-smartcart-footer.block-footer {
        padding: 12px 16px calc(13px + env(safe-area-inset-bottom));
    }

    .codex-smartcart-subtotal {
        margin-bottom: 9px;
        font-size: 14px;
    }

    .codex-smartcart-subtotal strong {
        font-size: 17px;
    }

    .codex-smartcart-shipping {
        margin-bottom: 11px;
    }

    .codex-smartcart-shipping__message {
        margin-bottom: 7px;
        font-size: 11.5px;
    }

    .codex-smartcart-shipping__icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
        font-size: 10px;
    }

    .codex-smartcart-actions {
        grid-template-columns: minmax(118px, .43fr) minmax(0, 1fr);
    }

    .codex-smartcart-more {
        display: flex;
        min-height: 49px;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 14px;
        border: 1px solid var(--mc-cart-line) !important;
        border-radius: 6px !important;
        background: var(--mc-cart-sand) !important;
        color: var(--mc-cart-ink) !important;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .03em;
        line-height: 1.2;
        text-align: left;
        text-transform: uppercase;
    }

    .mpquickcart .codex-smartcart-checkout.action.primary {
        min-height: 49px;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    .codex-smartcart-viewcart {
        margin-top: 8px;
        font-size: 11px;
    }

    .codex-smartcart-recommendations {
        position: absolute;
        inset: 0;
        z-index: 50;
        padding: 20px 16px calc(22px + env(safe-area-inset-bottom));
        transform: translateY(100%);
        border: 0;
        opacity: 0;
        transition: transform .28s ease, opacity .2s ease;
        pointer-events: none;
    }

    .codex-smartcart--suggestions-open .codex-smartcart-recommendations {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .codex-smartcart-recommendations__heading {
        position: sticky;
        top: -20px;
        z-index: 2;
        margin: -20px -16px 18px;
        padding: 18px 16px 14px;
        background: var(--mc-cart-sand);
        border-bottom: 1px solid var(--mc-cart-line);
    }

    .codex-smartcart-recommendations h2 {
        font-size: 23px;
    }

    .codex-smartcart-recommendations__close {
        display: grid;
        width: 39px;
        height: 39px;
        padding: 0;
        place-items: center;
        border: 1px solid var(--mc-cart-line) !important;
        border-radius: 50% !important;
        background: #fff !important;
        color: var(--mc-cart-ink) !important;
        font-size: 25px;
        font-weight: 300;
        line-height: 1;
    }

    .codex-smartcart-recommendations__grid {
        gap: 12px;
    }

    .codex-smartcart-product__body {
        padding: 10px;
    }

    .codex-smartcart-product__name {
        min-height: 35px;
        font-size: 12px;
    }

    .codex-smartcart-product__add {
        min-height: 35px;
        padding: 7px;
        font-size: 11px;
    }
}

@media (max-width: 370px) {
    .codex-smartcart-actions {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .codex-smartcart-more {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 10px;
    }

    .mpquickcart .codex-smartcart-checkout.action.primary {
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .codex-smartcart-recommendations,
    .codex-smartcart-progress span,
    .codex-smartcart-product__image img {
        transition: none !important;
    }
}
