/* The shop demonstration's cart lives in the native modal top layer. */
html.demo-cart-open, html.demo-cart-open body { overflow: hidden; }
.demo-cart { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(540px,100vw); height: 100dvh; max-width: none; max-height: none; border: 0; border-left: 1px solid rgba(10,10,11,.12); background: #f7f5ed; color: #161619; color-scheme: light; box-shadow: -30px 0 100px rgba(0,0,0,.3); overflow: hidden; }
.demo-cart::backdrop { background: rgba(6,6,8,.65); backdrop-filter: blur(7px); }
.demo-cart[open] { animation: cart-arrive .28s cubic-bezier(.2,.8,.2,1); }
@keyframes cart-arrive { from { transform: translateX(65px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
.demo-cart__shell { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.demo-cart__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 28px 22px; border-bottom: 1px solid rgba(10,10,11,.12); }
.demo-cart__eyebrow { display: flex; align-items: center; gap: 7px; font: 9px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #666660; }
.demo-cart__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink-ink); }
.demo-cart__head h2 { margin: 9px 0 0; font-size: 29px; line-height: 1.1; letter-spacing: -.05em; font-weight: 900; }
.demo-cart__head h2 span { font-size: 15px; font-weight: 500; color: #686861; letter-spacing: -.02em; white-space: nowrap; }
.demo-cart__close, .cart-item__remove { width: 44px; height: 44px; flex: none; display: grid; place-items: center; font: 30px/1 var(--f-display); border: 1px solid rgba(10,10,11,.15); border-radius: 50%; color: #161619; background: transparent; }
.demo-cart__close:hover, .cart-item__remove:hover { background: #e6e3d9; }
.demo-cart__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; scrollbar-width: thin; }
.demo-cart__bottom { padding: 20px 28px max(20px,env(safe-area-inset-bottom)); background: #fffef8; border-top: 1px solid rgba(10,10,11,.12); box-shadow: 0 -8px 30px rgba(0,0,0,.025); }
.cart-shipping { padding: 0 0 24px; }
.cart-shipping p { font-size: 13px; margin: 0 0 12px; }
.cart-shipping > i { display: block; height: 5px; background: #dddcd2; border-radius: 9px; overflow: hidden; }
.cart-shipping > i > b { display: block; height: 100%; background: #85a800; transition: width .25s; }
.cart-items { display: grid; gap: 22px; }
.cart-item { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(10,10,11,.12); }
.cart-item__image { display: grid; place-items: center; align-self: start; width: 94px; height: 126px; border-radius: 15px; overflow: hidden; background: #e7e9da; background: color-mix(in srgb,var(--can-color) 18%,#f0efe7); }
.cart-item__image svg { width: 78px; height: 108px; transform: rotate(-8deg); filter: drop-shadow(3px 6px 3px rgba(0,0,0,.15)); }
.cart-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -8px; }
.cart-item__top h3 { font-size: 18px; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.cart-item__remove { width: 40px; height: 40px; font-size: 24px; border: 0; margin-right: -10px; }
.cart-item__info > p { margin: 0 0 7px; font-size: 13px; line-height: 1.5; }
.cart-item__info > p span { color: #666660; }
.cart-item__plan { display: inline-block; color: #666660; font-size: 10px; margin-bottom: 14px; padding: 4px 0; }
.cart-item__plan.is-recurring { background: #e7f2bc; color: #334900; border-radius: 5px; padding-inline: 7px; }
.cart-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cart-item__foot strong { font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
.cart-quantity { display: inline-flex; align-items: center; border: 1px solid #d5d4ca; border-radius: 9px; overflow: hidden; background: #fffef8; }
.cart-quantity button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: #161619; font-size: 20px; }
.cart-quantity button:hover:not(:disabled) { background: #eceee0; }
.cart-quantity button:disabled { opacity: .25; cursor: default; }
.cart-quantity span { font: 12px var(--f-mono); min-width: 23px; text-align: center; }
.cart-item__packs { font: 11px var(--f-mono); color: #666660; }
.cart-saving { font-size: 12px; line-height: 1.6; margin: 22px 0 16px; }
.cart-saving > span { font-weight: 800; }
.cart-back { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 12px; font-weight: 700; color: #50504b; text-decoration: underline; text-underline-offset: 4px; }
.cart-totals { margin: 0 0 18px; display: grid; gap: 8px; }
.cart-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; font-size: 13px; }
.cart-totals dt { color: #666660; }
.cart-totals dd { margin: 0; font-weight: 700; }
.cart-totals .cart-totals__total { margin-top: 9px; padding-top: 15px; border-top: 1px solid rgba(10,10,11,.12); }
.cart-totals__total dt { color: #161619; font-weight: 800; }
.cart-totals__total dd { font-size: 29px; line-height: 1.1; letter-spacing: -.04em; }
.cart-primary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; width: 100%; padding: 14px 18px; border-radius: 12px; background: #d4ff1f; color: #111113; font-size: 14px; font-weight: 800; transition: background .2s, transform .2s; }
.cart-primary:hover { background: #c5ef15; }
.cart-primary:active { transform: scale(.985); }
.cart-primary > span { margin-left: auto; }
.cart-demo-note { text-align: center; font-size: 10px; color: #77776f; line-height: 1.5; margin: 12px 0 0; }
.cart-recurring-note { color: #666660; font-size: 10px; line-height: 1.5; margin: -4px 0 16px; }
.cart-empty, .cart-finish { min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px 0; }
.cart-empty > span { width: 85px; height: 85px; border-radius: 50%; background: #e5edc4; display: grid; place-items: center; font-size: 48px; transform: rotate(-12deg); }
.cart-empty h3, .cart-finish h3 { margin: 26px 0 12px; font-size: clamp(28px,5vw,38px); letter-spacing: -.05em; line-height: 1.03; font-weight: 900; }
.cart-empty p, .cart-finish p { color: #666660; font-size: 13px; max-width: 270px; line-height: 1.6; margin: 0; }
.cart-review-title { margin: 15px 0 28px; font-size: 28px; letter-spacing: -.04em; }
.cart-review-delivery { display: flex; gap: 14px; padding: 20px; background: #eeede3; border-radius: 12px; margin-top: 24px; }
.cart-review-delivery > span { font-size: 28px; }
.cart-review-delivery b { font-size: 12px; }
.cart-review-delivery p { font-size: 11px; color: #666660; margin: 6px 0 0; line-height: 1.5; }
.cart-finish__check { width: 90px; height: 90px; border-radius: 50%; background: #d4ff1f; color: #111; font-size: 48px; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(212,255,31,.2); animation: cart-check .4s ease-out; }
@keyframes cart-check { from { transform: scale(.8) rotate(-10deg); } to { transform: scale(1) rotate(0); } }
.cart-finish__receipt { display: flex; justify-content: space-between; gap: 20px; width: 100%; padding: 20px; margin: 26px 0 18px; border: 1px dashed #c6c5b8; border-radius: 10px; font-size: 13px; }
.cart-finish small { font-size: 11px; color: #666660; max-width: 280px; line-height: 1.6; }
.demo-cart :focus-visible { outline: 3px solid #7a45ff; outline-offset: 3px; }
.demo-cart__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
  .demo-cart { width: 100%; border-left: 0; }
  .demo-cart__head { padding: max(20px,env(safe-area-inset-top)) 20px 18px; }
  .demo-cart__head h2 { font-size: 27px; }
  .demo-cart__body { padding: 20px; }
  .demo-cart__bottom { padding: 18px 20px max(18px,env(safe-area-inset-bottom)); }
  .cart-item { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
  .cart-item__image { width: 76px; height: 112px; }
  .cart-item__image svg { width: 68px; height: 100px; }
  .cart-item__top h3 { font-size: 16px; }
  .cart-item__info > p { font-size: 11px; }
  .cart-quantity button { width: 36px; height: 44px; }
  .cart-item__foot strong { font-size: 16px; }
}
@media (max-height: 600px) {
  .demo-cart__shell { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .demo-cart__body { overflow: visible; }
  .demo-cart__head { padding-block: 16px; }
  .cart-empty, .cart-finish { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-cart[open], .cart-finish__check { animation: none; }
}
