/* Native cart behaviour, readable pack cards. Also loaded for AJAX mini-cart. */
.woocommerce table.cart tr.spr-pack-card-row { background: transparent; }
.woocommerce table.cart tr.spr-pack-card-row td.spr-pack-card-cell {
    width: auto; padding: 0 0 16px; border: 0; background: transparent;
    text-align: left !important; white-space: normal; font-size: 14px;
}
.woocommerce table.cart .spr-pack-card-cell::before { display: none !important; }
.spr-pack-card { padding: 22px; border: 1px solid #dce3eb; border-radius: 14px; background: #fff; color: #18222f; }
.spr-pack-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.spr-pack-brand { display: block; margin-bottom: 5px; color: #07529e; font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce .spr-pack-card h2 { margin: 0; font-family: var(--sp-font-body, sans-serif); font-size: 22px; font-weight: 750; line-height: 1.2; text-transform: none; letter-spacing: -.025em; }
.woocommerce .spr-pack-card h2 a { color: #18222f; text-decoration: none; }
.woocommerce .spr-pack-card a.remove.spr-pack-remove { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #f1f4f7; color: #647080 !important; font-size: 23px; font-weight: 400; line-height: 1; }
.woocommerce .spr-pack-card a.remove.spr-pack-remove:hover { color: #a62121 !important; background: #fff0f0; }
.spr-pack-included-label { margin: 19px 0 10px; color: #647080; font-size: 11px; font-weight: 600; }
.spr-pack-contents { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.spr-pack-contents li { margin: 0; padding: 0; list-style: none; }
.spr-pack-contents--photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spr-pack-contents--photos li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.spr-pack-component-photo { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 70px; background: #fff; }
.woocommerce .spr-pack-component-photo img { display: block; float: none; width: 52px; max-width: 100%; height: 68px; margin: 0; object-fit: contain; }
.spr-pack-component-copy { display: block; min-width: 0; }
.spr-pack-component-name { display: block; color: #293545; font-size: 12px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.spr-pack-component-count { color: #07529e; white-space: nowrap; }
.spr-pack-component-flavour { display: block; margin-top: 4px; color: #626f7e; font-size: 11px; line-height: 1.4; }
.spr-pack-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e9edf2; }
.spr-pack-controls { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; }
.spr-pack-quantity-label { flex: 0 0 100%; color: #647080; font-size: 11px; }
.woocommerce .spr-pack-card .quantity { display: inline-flex; align-items: center; flex-wrap: nowrap; width: auto; height: 40px; margin: 0; border: 1px solid #dce3eb; border-radius: 7px; overflow: hidden; }
.woocommerce .spr-pack-card .quantity .qty { width: 38px; min-width: 0; min-height: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; font-size: 14px; text-align: center; box-shadow: none; }
.woocommerce .spr-pack-card .quantity__btn { width: 36px; min-width: 36px; height: 38px; min-height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f5f7fa; color: #263747; }
.spr-pack-edit { display: inline-flex; align-items: center; min-height: 40px; color: #07529e; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.spr-pack-total { flex-shrink: 0; text-align: right; }
.spr-pack-total-label { display: block; margin-bottom: 5px; font-size: 11px; color: #647080; }
.spr-pack-total strong { display: block; color: #07529e; font-size: 21px; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.spr-pack-total small { display: block; margin-top: 4px; font-size: 10px; color: #647080; }
.spr-pack-total .woocommerce-Price-currencySymbol { font-size: .65em; }
.spr-pack-card a:focus-visible, .spr-pack-card button:focus-visible, .spr-pack-card input:focus-visible { outline: 2px solid #07529e; outline-offset: 2px; }
.woocommerce table.cart.spr-cart-packs-only { border: 0; background: transparent; }
.woocommerce table.cart.spr-cart-packs-only > thead { display: none; }
.woocommerce table.cart.spr-cart-packs-only td.actions { border: 0; padding: 10px 0; background: transparent; }
.spr-cart-has-packs .woocommerce .wc-proceed-to-checkout a.checkout-button { background: #07529e; color: #fff; border-radius: 8px; }
.spr-cart-has-packs .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: #063f79; }

/* Concise inclusion list on checkout and the mini-cart; prices stay per pack. */
.spr-pack-line dl.variation { display: block !important; clear: both; float: none !important; width: 100%; margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; }
.spr-pack-line dl.variation dt { display: block; float: none !important; width: auto; margin: 0 0 5px !important; padding: 0; font-size: 10px; font-weight: 500; color: #647080; }
.spr-pack-line dl.variation dd { display: block; float: none !important; width: 100%; margin: 0 !important; padding: 0; }
.spr-pack-line .spr-pack-contents li { display: block; margin-bottom: 5px; }
.spr-pack-line .spr-pack-component-copy { font-size: 12px; line-height: 1.5; }
.spr-pack-line .spr-pack-component-name { display: inline; font-size: 12px; font-weight: 500; line-height: 1.5; }
.spr-pack-line .spr-pack-component-flavour { display: inline; margin-left: 4px; font-size: 11px; }
.spr-pack-line .spr-pack-component-flavour::before { content: '— '; }
.mini-cart .woocommerce-mini-cart li.spr-pack-line { display: block; position: relative; padding: 16px 0; }
.mini-cart .woocommerce-mini-cart .spr-pack-line > a:not(.remove) { display: block; width: 100%; min-height: 64px; padding: 0 34px 0 0; font-size: 14px; line-height: 1.45; }
.mini-cart .woocommerce-mini-cart .spr-pack-line > a img { float: left; width: 54px; height: 64px; margin: 0 12px 0 0; object-fit: contain; background: #fff; }
.mini-cart .woocommerce-mini-cart .spr-pack-line > a.remove { display: flex; align-items: center; justify-content: center; top: 12px; right: 0; width: 32px; height: 32px; border-radius: 50%; background: #f1f4f7; color: #647080 !important; font-size: 20px; }
.mini-cart .woocommerce-mini-cart .spr-pack-line > .quantity { display: block; width: auto; margin-top: 10px; font-size: 14px; color: #07529e; font-weight: 700; text-align: right; }
/* Keep the existing WhatsApp shortcut behind the open drawer and its overlay. */
body:has(.mini-cart.is-open) .wwnp-float { z-index: 190; }
.woocommerce-checkout-review-order-table .spr-pack-line .product-name { min-width: 0; }

@media (min-width: 900px) {
    .spr-cart-has-packs .container--narrow { max-width: 1240px; }
    .spr-cart-has-packs .woocommerce { grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; }
}
@media (max-width: 1100px) and (min-width: 900px) {
    .spr-pack-contents--photos { grid-template-columns: 1fr; }
    .spr-pack-component-photo, .woocommerce .spr-pack-component-photo img { height: 48px; }
}
@media (max-width: 767px) {
    .woocommerce table.cart tr.spr-pack-card-row { display: block; margin: 0; border: 0; }
    .woocommerce table.cart tr.spr-pack-card-row td.spr-pack-card-cell { display: block; padding: 0 0 14px; }
    .spr-pack-card { padding: 17px 16px; border-radius: 12px; }
    .woocommerce .spr-pack-card h2 { font-size: 20px; }
    .woocommerce .spr-pack-card a.remove.spr-pack-remove { flex-basis: 40px; width: 40px; height: 40px; }
    .spr-pack-included-label { margin-top: 15px; margin-bottom: 9px; }
    .spr-pack-contents--photos { grid-template-columns: 1fr; gap: 9px; }
    .spr-pack-contents--photos li { gap: 12px; }
    .spr-pack-component-photo, .woocommerce .spr-pack-component-photo img { height: 48px; }
    .spr-pack-component-name { font-size: 13px; }
    .spr-pack-component-flavour { margin-top: 2px; font-size: 12px; }
    .spr-pack-card-foot { gap: 8px; margin-top: 14px; padding-top: 13px; }
    .spr-pack-controls { display: grid; gap: 6px; }
    .woocommerce .spr-pack-card .quantity { height: 44px; width: fit-content; }
    .woocommerce .spr-pack-card .quantity__btn { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
    .woocommerce .spr-pack-card .quantity .qty { width: 38px; height: 42px; min-height: 42px; }
    .spr-pack-total { align-self: center; }
    .spr-pack-total strong { font-size: 21px; }
    .spr-pack-edit { min-height: 32px; font-size: 12px; }
}
