/**
 * The sliding cart. Plain CSS rather than Tailwind utilities: the storefront's Tailwind build
 * is precompiled, so classes it has never seen would simply not exist.
 */
.mc-header {
    --mc-dark: #371e0f;
    padding: 28px 64px 18px 24px !important;
    gap: 6px !important;
    border-bottom: 1px solid #eee5dd;
    font-weight: 400 !important;
    color: var(--mc-dark);
}

.mc-title {
    font-family: Fraunces, "DM Serif Display", Georgia, serif !important;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 500;
    color: #371e0f;
}

.mc-offer {
    font-family: Roboto, sans-serif !important;
    font-size: 13px;
    color: #371e0f;
}

.mc-content {
    min-height: 0;
    padding: 0 24px !important;
    color: #371e0f;
    font-family: Roboto, sans-serif !important;
}

/* Lines */
.mc-items {
    display: grid;
    gap: 22px;
    padding: 22px 0;
}

.mc-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.mc-item-image img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: #f4ede6;
}

.mc-item-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mc-item-name {
    font-family: Oswald, sans-serif !important;
    font-size: 15px;
    line-height: 1.25;
    color: #371e0f;
    text-transform: capitalize;
}

.mc-item-meta {
    font-size: 12px;
    color: #4b3529;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mc-qty {
    width: auto !important;
    max-width: 116px;
    margin-top: 6px;
    padding: 5px 0 !important;
    gap: 0 !important;
    border: 1.5px solid #371e0f !important;
    border-radius: 999px !important;
}

.mc-qty button,
.mc-qty span {
    color: #371e0f !important;
    font-size: 15px;
}

.mc-qty button {
    padding: 0 12px;
}

.mc-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: 12px;
}

.mc-item-price {
    font-family: Oswald, sans-serif !important;
    font-size: 15px;
    white-space: nowrap;
    color: #371e0f;
    text-align: end;
}

.mc-item-excl {
    display: block;
    font-family: Roboto, sans-serif !important;
    font-size: 11px;
    color: #7a685d;
}

.mc-remove {
    padding: 2px;
    color: #371e0f;
}

.mc-remove svg {
    width: 24px;
    height: 24px;
}

.mc-remove:hover {
    color: #a0522d;
}

/* Free delivery */
.mc-delivery {
    display: flex;
    align-items: center;
    gap: 14px;
    /* Sits above the items, whose own padding spaces it from the first line. */
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #f7f0ea;
}

.mc-delivery-icon {
    flex: none;
    width: 32px;
    height: 26px;
    color: #371e0f;
}

.mc-delivery-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.mc-delivery-text strong {
    font-weight: 700;
}

.mc-delivery-bar {
    flex: none;
    width: 34%;
    height: 10px;
    border-radius: 999px;
    background: #e7ddd4;
    overflow: hidden;
}

.mc-delivery-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #371e0f;
    transition: width .4s ease;
}

/* You may also like */
.mc-recs {
    margin: 0 -24px;
    padding: 28px 24px 24px;
    background: #f7f1eb;
}

.mc-eyebrow {
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #c08a6a;
    font-weight: 500;
}

.mc-recs-title {
    margin-top: 6px;
    font-family: Fraunces, "DM Serif Display", Georgia, serif !important;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 500;
    color: #371e0f;
}

.mc-recs-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #6b5a50;
}

.mc-recs-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    gap: 12px;
    margin-top: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.mc-recs-row::-webkit-scrollbar {
    display: none;
}

.mc-rec {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(55, 30, 15, .06);
    scroll-snap-align: start;
}

.mc-rec-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / .92;
    object-fit: cover;
    background: #f4ede6;
}

.mc-rec-wish {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #371e0f;
    font-size: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.mc-rec-wish svg {
    width: 20px;
    height: 20px;
}

.mc-rec-wish.is-active {
    color: #b4553f;
}

.mc-rec-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 12px 12px 14px;
}

.mc-rec-name {
    font-family: Oswald, sans-serif !important;
    font-size: 14px;
    line-height: 1.25;
    color: #371e0f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-rec-summary {
    font-size: 11px;
    color: #4b3529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-rec-price {
    margin: 4px 0 10px;
    font-family: Oswald, sans-serif !important;
    font-size: 14px;
    color: #371e0f;
}

.mc-rec-add {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 999px;
    background: #371e0f;
    color: #fff;
    font-family: Oswald, sans-serif !important;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .2s;
}

.mc-rec-add:hover {
    background: #4a2a15;
}

.mc-rec-add:disabled {
    opacity: .6;
}

/* Make it a gift */
.mc-gift {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f7f0ea;
    text-align: start;
    color: #371e0f;
}

.mc-gift:disabled {
    cursor: default;
}

.mc-gift-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f0dfd2;
}

.mc-gift-icon svg {
    width: 30px;
    height: 30px;
}

.mc-gift-text {
    display: grid;
    flex: 1;
    gap: 2px;
    font-family: Fraunces, "DM Serif Display", Georgia, serif !important;
}

.mc-gift-title,
.mc-gift-sub,
.mc-badge span,
.mc-badge strong {
    font-family: Fraunces, "DM Serif Display", Georgia, serif !important;
}

.mc-gift-title {
    font-size: 16px;
}

.mc-gift-sub {
    font-size: 13px;
}

.mc-gift-sub strong {
    font-weight: 600;
}

.mc-gift-arrow {
    flex: none;
    width: 20px;
    height: 20px;
}

/* Assurances */
.mc-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0 26px;
}

.mc-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 6px;
    font-family: Fraunces, "DM Serif Display", Georgia, serif !important;
    font-size: 12px;
    line-height: 1.3;
    color: #6b5a50;
}

.mc-badge + .mc-badge {
    border-inline-start: 1px solid #e3d8ce;
}

.mc-badge svg {
    flex: none;
    width: 34px;
    height: 30px;
    color: #371e0f;
}

.mc-badge strong {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: #371e0f;
}

/* Footer */
.mc-footer {
    padding-bottom: 20px !important;
    border-top: 1px solid #eee5dd;
    background: #fff;
}

.mc-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #eee5dd;
    font-family: Oswald, sans-serif !important;
    font-size: 16px;
    color: #371e0f;
}

.mc-subtotal-amount {
    font-weight: 600;
    font-size: 17px;
    text-align: end;
}

.mc-actions {
    display: grid;
    gap: 10px;
    padding: 14px 24px 0;
}

.mc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 44px;
    border-radius: 999px;
    font-family: Oswald, sans-serif !important;
    font-size: 16px;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: background .2s;
}

.mc-btn.is-light {
    background: #dfaa8b;
    color: #371e0f;
}

.mc-btn.is-light:hover {
    background: #d69c7b;
}

.mc-btn.is-dark {
    background: #371e0f;
    color: #fff;
}

.mc-btn.is-dark:hover {
    background: #4a2a15;
}

.mc-chevron {
    width: 20px;
    height: 20px;
}

[dir="rtl"] .mc-chevron,
[dir="rtl"] .mc-gift-arrow {
    transform: scaleX(-1);
}

@media (max-width: 767px) {
    .mc-header {
        padding: 20px 56px 14px 16px !important;
    }

    .mc-title {
        font-size: 21px;
    }

    .mc-content {
        padding: 0 16px !important;
    }

    .mc-recs {
        margin: 0 -16px;
        padding: 24px 16px 20px;
    }

    .mc-recs-title {
        font-size: 19px;
    }

    .mc-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .mc-item-image img {
        width: 64px;
        height: 64px;
    }

    .mc-item-name,
    .mc-item-price {
        font-size: 14px;
    }

    .mc-delivery {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .mc-delivery-bar {
        width: 100%;
    }

    .mc-recs-row {
        grid-auto-columns: 46%;
    }

    .mc-badge {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        font-size: 11px;
    }

    .mc-badge strong {
        font-size: 12px;
    }

    .mc-subtotal {
        padding: 12px 16px;
    }

    .mc-actions {
        padding: 12px 16px 0;
        gap: 10px;
    }

    .mc-btn {
        height: 42px;
        font-size: 15px;
    }
}

.mc-rec-price del {
    margin-inline-start: 6px;
    font-size: 13px;
    color: #9a8a80;
}

/* Tabby's cart promo, drawn by their script above the buttons. Empty when nothing applies. */
.mc-bnpl {
    padding: 0 24px;
}

.mc-bnpl:empty {
    display: none;
}
