.storefront-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    padding: .45rem 0;
}
.storefront-cart [hidden] { display: none !important; }
.storefront-cart button, .storefront-buy button { cursor: pointer; }
.storefront-cart button:disabled, .storefront-buy button:disabled { cursor: default; opacity: .65; }
.storefront-cart-trigger, .storefront-cart-actions button, .storefront-cart-line-actions button {
    padding: .45rem .7rem;
    border: 1px solid #a5a8b2;
    border-radius: .25rem;
    background: #fff;
    color: #252833;
    font: inherit;
}
.storefront-cart-primary {
    display: inline-block;
    padding: .55rem .9rem;
    border: 1px solid #246535;
    border-radius: .25rem;
    color: #fff;
    background: #327742;
    text-align: center;
    font: inherit;
}
.storefront-cart-dialog a.storefront-cart-primary,
.storefront-cart-dialog a.storefront-cart-primary:visited,
.storefront-cart-dialog a.storefront-cart-primary:hover,
.storefront-cart-dialog a.storefront-cart-primary:focus { color: #fff; }
.storefront-cart-primary:hover, .storefront-cart-primary:focus { color: #fff; background: #246535; }
.storefront-buy { display: grid; gap: .35rem; margin: .5rem 0; }
.storefront-buy label { display: grid; gap: .2rem; }
.storefront-buy input, .storefront-cart-line-actions input {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 2.25rem;
    padding: .25rem .45rem;
    border: 1px solid #a5a8b2;
    border-radius: .25rem;
    font: inherit;
}
.storefront-cart-dialog {
    box-sizing: border-box;
    width: min(43rem, calc(100% - 1.5rem));
    max-height: 90dvh;
    margin: auto;
    padding: 1rem;
    overflow: auto;
    border: 1px solid #a5a8b2;
    border-radius: .35rem;
    color: #252833;
    background: #fff;
    text-align: start;
    font: 1rem/1.45 system-ui, sans-serif;
}
.storefront-cart-dialog::backdrop { background: rgb(0 0 0 / .55); }
.storefront-cart-header, .storefront-cart-actions, .storefront-cart-line-actions form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}
.storefront-cart-header { justify-content: space-between; border-bottom: 1px solid #ddd; padding-bottom: .5rem; }
.storefront-cart-header h2 { margin: 0; font-size: 1.3rem; }
.storefront-cart-header button { background: transparent; border: 0; font: 1.6rem/1 system-ui, sans-serif; }
.storefront-cart-items { padding: 0; list-style: none; }
.storefront-cart-items li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .7rem 0;
    border-bottom: 1px solid #ddd;
    overflow-wrap: anywhere;
}
.storefront-cart-items li > div:first-of-type { flex: 1 1 10rem; min-width: 0; }
.storefront-cart-items img { width: 3rem; height: 3rem; object-fit: contain; }
.storefront-cart-line-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.storefront-cart-line-actions input { width: 5.25rem; }
.storefront-cart-sums { font-weight: 700; }
.storefront-cart-status { overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .storefront-cart-actions { flex-direction: column; align-items: stretch; }
    .storefront-cart-line-actions { flex-basis: 100%; }
}
