/* Shared checkout recap: one live totals panel for every checkout step and theme. */
.checkout-active-coupon{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;margin-bottom:12px;border-bottom:1px solid var(--ui-border,#d8e5f7);font-size:.875rem;line-height:1.5}
.checkout-active-coupon>span{min-width:0;overflow-wrap:anywhere}.checkout-active-coupon>b{white-space:nowrap}
@media(max-width:900px){
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side{display:block!important;position:static!important;order:-1;min-width:0;width:100%}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-panel{display:block!important;min-width:0}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-products{display:grid!important;gap:0;max-height:none!important;overflow:visible!important;margin-bottom:16px}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-product{display:grid!important;grid-template-columns:40px minmax(0,1fr) max-content!important;align-items:center;gap:10px!important;padding:12px!important}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-product>img{display:block;width:40px;height:40px;object-fit:contain}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-product>div{min-width:0;gap:4px}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-product strong{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:anywhere;font-size:.85rem;line-height:1.4}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-product small{display:block;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:.8rem;line-height:1.5}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-side-product b{font-size:.8rem;white-space:nowrap;align-self:end;line-height:1.5}
 /* Keep the phone recap focused on the purchase rather than repeated reassurance cards. */
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-trust-list{display:none!important}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-summary-totals.compact{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 14px}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-summary-totals :is(dt,dd){margin:0;min-width:0;overflow-wrap:anywhere}
 body.store-page-shop-cart[data-theme-layout]:not(.admin-root) .checkout-summary-totals dd{text-align:right}
}

/* Coupon feedback stays visible until acknowledged, in both themes. */
body[data-theme-layout]:not(.admin-root) .checkout-coupon-feedback{--coupon-ink:#166534;--coupon-fill:#f0fdf4;--coupon-border:#86cda0;position:fixed;inset:0;margin:auto;width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:26px;border:2px solid var(--coupon-border);border-radius:20px;background:var(--coupon-fill);color:var(--coupon-ink);box-shadow:0 20px 65px #10203330;text-align:center}
body[data-theme-layout]:not(.admin-root) .checkout-coupon-feedback[data-tone=error]{--coupon-ink:#991b1b;--coupon-fill:#fff1f2;--coupon-border:#f0a5aa}
.checkout-coupon-feedback::backdrop{background:#10203366}
.checkout-coupon-feedback .coupon-feedback-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 14px;border:2px solid currentColor;border-radius:50%;font-size:26px;font-weight:700}
body[data-theme-layout]:not(.admin-root) #checkoutCouponFeedback h2{margin:0 0 12px;font-size:22px;color:var(--coupon-ink)!important}
.checkout-coupon-feedback p{line-height:1.6;margin:0 0 22px;overflow-wrap:anywhere}
body[data-theme-layout]:not(.admin-root) .checkout-coupon-feedback button{min-width:110px;min-height:44px;background:var(--coupon-ink)!important;border-color:var(--coupon-ink)!important;color:white!important}
