.cart-trigger {
    position: relative;
}

.cart-trigger__count {
    position: absolute;
    inset-block-start: -1px;
    inset-inline-start: -1px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding-inline: 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #c94d3f;
    color: #fff;
    font: 700 10px/1 Tahoma, sans-serif;
}

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

.cart-modal {
    position: fixed;
    z-index: 1500;
    inset: 0;
    direction: rtl;
}

body.cart-modal-open {
    overflow: hidden;
}

.cart-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgb(20 31 28 / 55%);
    backdrop-filter: blur(3px);
    cursor: default;
}

.cart-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(510px, calc(100vw - 20px));
    flex-direction: column;
    overflow: hidden;
    max-height: calc(100vh - 10px);
    max-height: calc(100dvh - 10px);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 70px rgb(15 35 30 / 20%);
    transform: translate(-50%, -50%);
    animation: cart-panel-in .22s ease-out both;
    font-family: var(--body-font, Tahoma, sans-serif);
}

.cart-modal__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 24px 8px;
    border-bottom: 1px solid #edf0ed;
}

.cart-modal__eyebrow {
    color: #718078;
    font-size: 12px;
}

.cart-modal__header h2 {
    color: #203c34;
    font-size: 21px;
    font-weight: 800;
}

    .cart-modal__header h2 span {
        color: #718078;
        font-size: 13px;
        font-weight: 500;
    }

.cart-modal__close {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #e8ede9;
    border-radius: 14px;
    background: #fff;
    color: #40564e;
    cursor: pointer;
}

    .cart-modal__close:hover {
        background: #f4f7f4;
    }

    .cart-modal__close .icon {
        width: 19px;
        height: 19px;
    }

.cart-modal__content {
    position: relative;
    flex: 0 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0px 24px 8px;
}

.cart-modal__items {
    display: grid;
    gap: 0;
}

.cart-line {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid #edf0ed;
}
    .cart-line:last-child {
        padding-bottom: 7px;
        border-bottom: 0px;
    }
.cart-line__image {
    width: 78px;
    height: 84px;
    overflow: hidden;
    border-radius: 13px;
    background: #f3f5f2;
}

.cart-line__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

    .cart-line__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-line__image--empty a{
    display: grid;
    place-items: center;
    color: #b0bbb4;
}

    .cart-line__image--empty .icon {
        width: 26px;
        height: 26px;
    }

.cart-line__details {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.cart-line__name {
    overflow: hidden;
    color: #253e36;
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-line__variant, .cart-line__unit {
    color: #7e8a83;
    font-size: 11px;
}

    .cart-line__unit strong {
        color: #415c50;
    }

.cart-line__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.cart-quantity {
    display: inline-flex;
    height: 31px;
    flex-direction: row-reverse;
    align-items: center;
    gap: 9px;
    padding: 0 5px;
    border: 1px solid #e1e8e2;
    border-radius: 9px;
}

    .cart-quantity button, .cart-line__remove {
        display: grid;
        width: 25px;
        height: 25px;
        place-items: center;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #46665a;
        cursor: pointer;
    }

        .cart-quantity button:hover, .cart-line__remove:hover {
            background: #eef4ef;
        }

.cart-quantity__remove {
    color: #b75b50 !important;
}

.cart-quantity button:disabled, .cart-line__remove:disabled {
    opacity: .45;
    cursor: wait;
}

.cart-quantity button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    color: darkcyan;
}

.cart-quantity output {
    min-width: 15px;
    color: #29483c;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.cart-quantity__spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1.5px solid #dbe7de;
    border-top-color: #3e725d;
    border-radius: 50%;
    animation: cart-spin .7s linear infinite;
    vertical-align: middle;
}

.cart-line__remove {
    color: #b75b50;
}

    .cart-line__remove svg {
        width: 16px;
        height: 16px;
    }

.cart-line__price {
    align-self: start;
    padding-top: 5px;
    color: #27483b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-line__price del {
        display: block;
        margin-bottom: 4px;
        color: #98a19b;
        font-size: 10px;
        font-weight: 500;
    }

.cart-line__price-current {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cart-line__price .cart-line__price-current small {
    display: inline;
    margin: 0;
    text-align: right;
}

.cart-line__discount {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 20px;
    background: #f8eae5;
    color: #a34e40;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

    .cart-line__price small {
        display: block;
        margin-top: 4px;
        color: #849087;
        font-size: 10px;
        font-weight: 500;
        text-align: left;
    }

.cart-line--unavailable {
    opacity: .7;
}

.cart-line__warning {
    color: #b75b50;
    font-size: 11px;
}

.cart-modal__loading, .cart-modal__empty, .cart-modal__error {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #718078;
    text-align: center;
}

.cart-modal__loading {
    flex-direction: row;
}

.cart-modal__empty strong {
    color: #29483c;
    font-size: 17px;
}

.cart-modal__empty span:last-child {
    font-size: 13px;
}

.cart-modal__empty-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 3px;
    border-radius: 22px;
    background: #eff5f0;
    color: #608270;
}

    .cart-modal__empty-icon .icon {
        width: 28px;
        height: 28px;
    }

.cart-modal__error p {
    margin: 0;
    color: #9d473f;
}

.cart-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #dbe7de;
    border-top-color: #3e725d;
    border-radius: 50%;
    animation: cart-spin .7s linear infinite;
}

.cart-modal__footer {
    flex: 0 0 auto;
    padding: 4px 24px max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid #edf0ed;
    background: #fff;
}

.cart-modal__clear {
    padding: 0;
    border: 0;
    background: none;
    color: #9c615b;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.cart-modal__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #69776f;
    font-size: 13px;
}

.cart-modal__savings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 5px 0 12px;
    padding: 9px 21px;
    border: 1px solid #e1ede2;
    border-radius: 10px;
    background: #f3f8f2;
    color: #58715f;
    font-size: 11px;
}

.cart-modal__savings strong {
    color: #39714f;
    font-size: 12px;
    white-space: nowrap;
}

    .cart-modal__subtotal strong {
        color: #26473a;
        font-size: 19px;
    }

    .cart-modal__subtotal small {
        color: #7e8a83;
        font-size: 11px;
    }

.cart-modal__checkout {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 13px;
    background: #284f42;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

    .cart-modal__checkout:disabled {
        opacity: .78;
        cursor: not-allowed;
    }

    .cart-modal__checkout span {
        padding: 3px 7px;
        border-radius: 6px;
        background: rgb(255 255 255 / 13%);
        font-size: 10px;
    }

.cart-is-busy .cart-modal__items {
    opacity: .55;
    pointer-events: none;
}

.cart-modal button:focus-visible {
    outline: 3px solid rgb(88 151 120 / 55%);
    outline-offset: 2px;
}

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

@keyframes cart-panel-in {
    from {
        opacity: .7;
        transform: translate(-50%, calc(-50% + 10px)) scale(.99);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 640px) {
    .cart-modal__panel {
        width: calc(100vw - 20px);
        border-radius: 18px;
    }

    .cart-modal__header {
        padding: max(18px, env(safe-area-inset-top)) 18px 14px;
    }

    .cart-modal__content {
        padding-inline: 18px;
    }

    .cart-modal__footer {
        padding-inline: 18px;
    }

    .cart-line {
        grid-template-columns: 67px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 15px 0;
    }

    .cart-line__image {
        width: 67px;
        height: 74px;
    }

    .cart-line__name {
        font-size: 13px;
    }

    .cart-line__price {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-spinner, .cart-modal__panel {
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
}

.cart-modal__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.cart-modal__actions .cart-modal__checkout,
.cart-modal__actions .cart-modal__continue {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

.cart-modal__actions .cart-modal__continue {
    border: 1px solid #dfe6e0;
    background: #fff;
    color: #40564e;
    cursor: pointer;
}

.cart-modal__actions .cart-modal__continue:hover {
    background: #f4f7f4;
}

.cart-modal__actions .cart-modal__checkout {
    border: 0;
    background: #284f42;
    color: #fff;
    font-weight: 750;
}

.cart-modal__actions .cart-modal__checkout:hover {
    background: #315e51;
}

@media (max-width: 360px) {
    .cart-modal__actions {
        gap: 7px;
    }

    .cart-modal__actions .cart-modal__checkout,
    .cart-modal__actions .cart-modal__continue {
        padding-inline: 7px;
        font-size: 12px;
    }
}
.cart-added-dialog.swal2-popup {
    /* Match the wooden art-frame and brass lining of the home banner. */
    --cart-frame-width: 14px;
    width: min(34rem, calc(100% - 2rem));
    padding: 1.8rem 1.7rem 1.65rem;
    border: var(--cart-frame-width) solid transparent;
    border-radius: 4px;
    background: linear-gradient(160deg, #fff 0%, #fdfbf6 72%, #f7f2e9 100%) padding-box,
        linear-gradient(130deg, #573c2b, #30271d 30%, #886243 50%, #30241a 55%, #58432d) border-box;
    box-shadow: 0 0 0 2px #58422d,
        3px 3px 2px #201d18a0, 19px 22px 38px #132b2470,
        inset 0 0 0 2px #b38b57,
        inset 0 0 0 7px #eee5d5,
        inset 0 0 0 9px #806342;
    color: var(--ink);
    font-family: var(--body-font);
}

.cart-added-dialog .swal2-title {
    max-width: 32rem;
    margin: .35em auto .2em;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.cart-added-dialog .swal2-icon.swal2-success {
    border-color: #78aa8d;
    color: #397454;
}

.cart-added-dialog .swal2-icon.swal2-success [class^="swal2-success-line"] {
    background-color: #397454;
}

.cart-added-dialog .swal2-icon.swal2-success .swal2-success-ring {
    border-color: #78aa8d;
}

.cart-added-dialog__checkout,
.cart-added-dialog__continue,
body.account-page .cart-added-dialog__checkout,
body.account-page .cart-added-dialog__continue {
    min-height: 45px;
    margin: .35rem .3rem 0;
    padding: .72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: var(--body-font);
    font-size: .85rem;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.cart-added-dialog__checkout,
body.account-page .cart-added-dialog__checkout {
    background: linear-gradient(135deg, #2d594a, #1e4036);
    box-shadow: 0 5px 13px #23483f35;
    color: #fff;
}

.cart-added-dialog__checkout:hover,
body.account-page .cart-added-dialog__checkout:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #376b58, #23483f);
    box-shadow: 0 8px 18px #23483f45;
}

.cart-added-dialog__continue,
body.account-page .cart-added-dialog__continue {
    border-color: #dfd4c2;
    background: linear-gradient(135deg, #fff, #f3ede2);
    color: #76583f;
}

.cart-added-dialog__continue:hover,
body.account-page .cart-added-dialog__continue:hover {
    transform: translateY(-2px);
    border-color: #c9a883;
    background: #f4ebdf;
    box-shadow: 0 5px 13px #8c67401c;
}

.cart-added-dialog__checkout:focus-visible,
.cart-added-dialog__continue:focus-visible,
body.account-page .cart-added-dialog__checkout:focus-visible,
body.account-page .cart-added-dialog__continue:focus-visible {
    outline: 1px solid #b36e4380;
    outline-offset: 0px;
}

@media (max-width: 480px) {
    .cart-added-dialog.swal2-popup {
        --cart-frame-width: 10px;
        padding: 1.4rem 1rem 1.3rem;
    }

    .cart-added-dialog__checkout,
    .cart-added-dialog__continue,
    body.account-page .cart-added-dialog__checkout,
    body.account-page .cart-added-dialog__continue {
        min-height: 42px;
        padding-inline: .8rem;
        font-size: .76rem;
    }
}
