.pw-cart [hidden] { display: none !important; }
.pw-cart button { text-transform: uppercase; }
.pw-cart .cart-item { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -15px .5rem; align-items: start; }
.pw-cart .cart-item > * { min-width: 0; margin: 0; padding: 0 15px; }
.pw-cart .cart-item-image { display: block; width: 100%; height: auto; }
.pw-cart .cart-item-title,
.pw-cart .cart-item-description,
.pw-cart .cart-item-size { font-size: 18px; font-weight: 400; }
.pw-cart .cart-item-quantity { display: flex; justify-content: center; align-items: end; text-align: center; }
.pw-cart .cart-item-quantity button,
.pw-cart .cart-item-count { flex: 0 0 33.333333%; min-width: 0; padding: 0 15px; }
.pw-cart .cart-item-quantity button { height: 24px; border: 0; border-radius: 0; background-color: transparent; background-repeat: no-repeat; background-position: center top; background-size: min(24px, calc(100% - 30px)); font-size: 0; box-shadow: none; }
.pw-cart [data-action="minus"] { background-image: url('/templates/en/images/icons/svg/minus_cart.svg'); }
.pw-cart [data-action="plus"] { background-image: url('/templates/en/images/icons/svg/plus_cart.svg'); }
.pw-cart .cart-item-quantity button:focus-visible { outline: 2px solid #343a40; outline-offset: 3px; }
.pw-cart .cart-item > div:last-child { display: flex; align-items: start; }
.pw-cart .cart-item-price { flex: 0 0 33.333333%; margin-left: -15px; padding: 0 15px; white-space: nowrap; }
.pw-cart [data-action="remove"] { font-size: 14px; }
.pw-cart .cart-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
.pw-cart .cart-field { margin-top: 1rem; min-width: 0; }
.pw-cart .cart-field label,
.pw-cart .cart-promo > label { display: block; font-size: 22px; padding: 8px 0; margin: 0; }
.pw-cart .cart-field select { font-size: 20px; color: inherit; }
.pw-cart .field-input { border: 0; border-bottom: 1px solid #ccc; border-radius: 0; }
.pw-cart .cart-promo { max-width: none; }
.pw-cart .cart-delivery-field { align-self: start; margin: 1rem 0 0; padding: 0; }
.pw-cart .cart-delivery-field > label { display: block; margin: 0; padding: 8px 0; line-height: 28px; }
.pw-cart #cart-promo-message { margin: .5rem 0; }
.pw-cart .cart-promo-controls { display: flex; gap: .5rem; }
.pw-cart .cart-promo-controls input { min-width: 0; }
.pw-cart .cart-promo-controls button { flex-shrink: 0; }
.pw-cart .cart-subtotal { margin: 1rem -15px; }
.pw-cart .cart-subtotal > div { display: flex; justify-content: end; font-size: 20px; }
.pw-cart .cart-subtotal dt { width: 25%; padding: 0 15px; text-align: right; font-weight: 700; }
.pw-cart .cart-subtotal dd { width: 25%; padding: 0 15px; margin: 0; }
.pw-cart .cart-subtotal dt,
.pw-cart .cart-grand-total dt { text-transform: uppercase; }
.pw-cart #cart-checkout { display: block; width: 200px; margin: 1.5rem auto; }
.pw-cart button:disabled { opacity: .55; cursor: wait; }
.pw-cart .cart-notices { display: flex; align-items: center; gap: .75rem; height: 3rem; margin: .5rem 0 1rem; padding: 0 .5rem; border: 0; border-radius: 0; white-space: nowrap; overflow-x: auto; overflow-y: hidden; }
.pw-cart .cart-notices.alert-danger { color: #721c24; background-color: #f8d7da; }
.pw-cart .cart-notices.alert-success { color: #155724; background-color: #d4edda; }
.pw-cart .cart-notices > * { flex-shrink: 0; }
.pw-cart .cart-notices p, .pw-cart .cart-notices dl, .pw-cart .cart-notices dd { margin: 0; }
.pw-cart .cart-promo-discount > div { display: flex; align-items: center; gap: .75rem; }
.pw-cart .cart-notices:has(#cart-pending:not([hidden])) { height: auto; min-height: 3rem; flex-wrap: wrap; white-space: normal; overflow: visible; padding: .5rem; }
.pw-cart .cart-notices:has(#cart-pending:not([hidden])) > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.pw-cart #cart-pending { width: 100%; text-align: center; }
.pw-cart .cart-pending-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.pw-cart #cart-pending button { padding: 0 .5rem; font-size: inherit; line-height: 1.5; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 1200px) {
    .pw-cart .cart-item-quantity button,
    .pw-cart .cart-item-count { flex-basis: 25%; }
}
@media (min-width: 992px) {
    .pw-cart .cart-item-price { flex-basis: 25%; }
}
@media (max-width: 991px) {
    .pw-cart .cart-subtotal dt, .pw-cart .cart-subtotal dd { width: 33.333333%; }
}
@media (max-width: 767px) {
    .pw-cart .cart-fields { grid-template-columns: 1fr; }
    .pw-cart .cart-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pw-cart .cart-item-quantity,
    .pw-cart .cart-item > div:last-child { margin-top: 1rem; }
    .pw-cart .cart-item-quantity { margin-left: .5rem; }
    .pw-cart .cart-item-price { flex-basis: 50%; }
    .pw-cart .cart-subtotal dt { width: 50%; }
    .pw-cart .cart-subtotal dd { width: 25%; }
}
@media (min-width: 576px) and (max-width: 767px) {
    .pw-cart .cart-item-quantity button,
    .pw-cart .cart-item-count { flex-basis: 25%; }
}
@media (max-width: 575px) {
    .pw-cart .cart-fields { grid-template-columns: 1fr; }
    .pw-cart .cart-promo-controls { flex-wrap: wrap; }
    .pw-cart .cart-subtotal dd { width: 50%; }
}

.pw-cart .cart-totals { display: grid; grid-template-columns: max-content minmax(0, 1fr); width: max-content; max-width: 100%; margin: 1rem auto; font-size: 20px; }
.pw-cart .cart-totals > div:not([hidden]) { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.pw-cart .cart-totals dt { padding-right: 1rem; text-align: right; font-weight: 700; }
.pw-cart .cart-totals dd { min-width: 0; margin: 0; }
.cart-grand-total {padding: 6px 0 0 0;}
.cart-grand-total dd{ font-weight: bold;}
