body:has(.mc-cart-drawer[open]) {
    overflow: hidden;
}

.mc-cart-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(440px, 100%);
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px 0 0 20px;
    background: #fff;
    color: #0a1b3a;
    box-shadow: -18px 0 60px rgb(10 27 58 / .18);
}

.mc-cart-drawer::backdrop {
    background: rgb(10 27 58 / .5);
    backdrop-filter: blur(4px);
}

.mc-cart-drawer__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mc-cart-drawer__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5edfa;
}

.mc-cart-drawer__header h2 {
    font-size: 18px;
    font-weight: 750;
}

.mc-cart-drawer__close {
    display: grid;
    flex: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: #105ba6;
}

.mc-cart-drawer__close:hover {
    background: #edf5ff;
}

.mc-cart-drawer__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 26px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mc-cart-drawer__empty {
    display: grid;
    width: 100%;
    max-width: 310px;
    margin-block: auto;
    justify-items: center;
    text-align: center;
}

.mc-cart-drawer__art {
    display: grid;
    width: clamp(110px, 24vh, 156px);
    aspect-ratio: 1;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 24%, #f7fbff 5%, #e5f1ff 100%);
    box-shadow: 0 10px 24px rgb(25 88 155 / .13);
    color: #105ba6;
}

.mc-cart-drawer__empty h3 {
    font-size: clamp(22px, 4vw, 26px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.mc-cart-drawer__empty p {
    max-width: 30ch;
    margin: 10px 0 20px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}

.mc-cart-drawer__browse,
.mc-cart-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid #c9def6;
    border-radius: 999px;
    color: #105ba6;
    font-size: 13px;
    font-weight: 700;
}

.mc-cart-add {
    margin-top: 10px;
    background: #fff;
}

.mc-cart-add:hover {
    background: #edf5ff;
}

.mc-cart-drawer__browse {
    width: 100%;
    min-height: 48px;
    border-color: #105ba6;
    background: #105ba6;
    color: #fff;
}

.mc-cart-drawer__browse:hover {
    background: #0b487f;
}

.mc-cart-drawer__close:focus-visible,
.mc-cart-drawer__browse:focus-visible,
.mc-cart-add:focus-visible,
.mc-cart:focus-visible {
    outline: 2px solid #105ba6;
    outline-offset: 2px;
}

@media (max-width: 440px) {
    .mc-cart-drawer {
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .mc-cart-drawer[open] {
        animation: mc-cart-slide-in .25s ease-out both;
    }

    .mc-cart-drawer[open]::backdrop {
        animation: mc-cart-backdrop-in .25s ease-out both;
    }

    @keyframes mc-cart-slide-in {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    @keyframes mc-cart-backdrop-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}
