body.spacer-theme .site-cart-drawer__panel{
    grid-template-rows:auto minmax(0, 1fr);
    width:min(100%, 560px);
    padding:var(--space-20) var(--space-22) var(--space-16);
}

body.spacer-theme .site-cart-drawer__header{
    padding-bottom:var(--space-16);
}

body.spacer-theme .site-cart-drawer__title{
    font-size:var(--fs-28);
    line-height:1.05;
}

body.spacer-theme .site-cart-drawer__close{
    width:48px;
    height:48px;
}

body.spacer-theme .site-cart-drawer__content{
    display:grid;
    min-height:0;
    padding-top:var(--space-14);
    overflow:hidden;
}

body.spacer-theme .site-cart-drawer__content-inner{
    grid-template-rows:minmax(0, 1fr) auto;
    gap:var(--space-14);
    min-height:0;
    height:100%;
}

body.spacer-theme .site-cart-drawer__items-wrap{
    min-height:0;
    overflow:auto;
    padding-right:var(--space-6);
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:rgba(31, 26, 23, 0.28) transparent;
}

body.spacer-theme .site-cart-drawer__items-wrap::-webkit-scrollbar{
    width:8px;
}

body.spacer-theme .site-cart-drawer__items-wrap::-webkit-scrollbar-track{
    background:transparent;
}

body.spacer-theme .site-cart-drawer__items-wrap::-webkit-scrollbar-thumb{
    border-radius:999px;
    background:rgba(31, 26, 23, 0.24);
}

body.spacer-theme .site-cart-drawer__items{
    gap:var(--space-10);
}

body.spacer-theme .site-cart-drawer__item{
    grid-template-columns:var(--size-64) minmax(0, 1fr) minmax(88px, auto);
    min-height:0;
    gap:var(--space-10);
    align-items:center;
    padding:var(--space-12);
    border-radius:var(--radius-md);
}

body.spacer-theme .site-cart-drawer__media{
    width:var(--size-64);
    height:var(--size-48);
}

body.spacer-theme .site-cart-drawer__details{
    justify-content:start;
    gap:var(--space-6);
    min-height:0;
    padding-left:0;
}

body.spacer-theme .site-cart-drawer__name{
    display:-webkit-box;
    overflow:hidden;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:var(--fs-14);
    line-height:1.25;
}

body.spacer-theme .site-cart-drawer__item-side{
    align-content:center;
    min-width:104px;
    gap:var(--space-8);
}

body.spacer-theme .site-cart-drawer__remove{
    display:grid !important;
    place-items:center !important;
    width:52px;
    height:52px;
    min-width:52px;
    min-height:52px;
    border-radius:var(--radius-md);
}

body.spacer-theme .site-cart-drawer__remove .site-cart-drawer__icon{
    display:grid !important;
    place-items:center !important;
}

body.spacer-theme .site-cart-drawer__summary{
    position:relative;
    bottom:auto;
    gap:var(--space-12);
    max-height:100%;
    padding:var(--space-14);
    border-radius:var(--radius-lg);
    overflow:auto;
}

body.spacer-theme .site-cart-drawer__totals{
    padding:var(--space-8) var(--space-14);
    border-radius:var(--radius-md);
}

body.spacer-theme .site-cart-drawer__totals div{
    padding:var(--space-9) 0;
}

body.spacer-theme .site-cart-drawer__actions{
    gap:var(--space-10);
    padding-top:var(--space-10);
}

body.spacer-theme .site-cart-drawer__actions .button{
    min-height:48px;
    border-radius:var(--radius-md);
}

@media (max-width: 768px){
    body.spacer-theme .site-cart-drawer__panel{
        width:100%;
        padding:var(--space-16) var(--space-12) var(--space-12);
    }

    body.spacer-theme .site-cart-drawer__content{
        padding-top:var(--space-12);
    }

    body.spacer-theme .site-cart-drawer__content-inner{
        gap:var(--space-12);
    }

    body.spacer-theme .site-cart-drawer__items-wrap{
        padding-right:0;
    }

    body.spacer-theme .site-cart-drawer__item{
        grid-template-columns:var(--size-64) minmax(0, 1fr) auto;
        align-items:center;
        padding:var(--space-10);
    }

    body.spacer-theme .site-cart-drawer__item-side{
        grid-column:auto;
        display:grid;
        grid-template-columns:none;
        width:auto;
        min-width:76px;
        justify-items:end;
        align-self:stretch;
    }

    body.spacer-theme .site-cart-drawer__remove{
        grid-column:auto;
        justify-self:end;
        margin-top:0;
    }

    body.spacer-theme .site-cart-drawer__summary{
        padding:var(--space-12);
        border-radius:var(--radius-md);
    }
}

@media (max-width: 430px){
    body.spacer-theme .site-cart-drawer__item{
        grid-template-columns:var(--size-64) minmax(0, 1fr);
    }

    body.spacer-theme .site-cart-drawer__item-side{
        grid-column:2;
        grid-template-columns:minmax(0, 1fr) auto;
        align-self:auto;
        width:100%;
        min-width:0;
        align-items:center;
        justify-items:stretch;
    }

    body.spacer-theme .site-cart-drawer__price-block{
        justify-items:start;
        text-align:left;
    }
}

