/* The drawer shares the film's black ground, chrome and compound accents. */
.drawer--cart {
  --cart-ink: #f1f3f5;
  --cart-muted: #a6adb5;
  --cart-rule: #ffffff20;
  --cart-blue: #c7cad1;
  --cart-accent: #c7cad1;
  width: min(510px, 100vw);
  background: #05070a;
  border-left: 1px solid #ffffff20;
  box-shadow: -24px 0 72px #0008;
  font-family: var(--font-body);
}
.drawer--cart ::selection { color: #05070a; background: #c7cad1; }
.drawer--cart :focus-visible { outline: 2px solid var(--cart-accent); outline-offset: 4px; }
.drawer--cart .cart__head { padding: 22px 26px 18px; align-items: center; border-color: var(--cart-rule); }
.drawer--cart .cart__title { font-size: 32px; font-weight: 500; letter-spacing: -.035em; }
.drawer--cart .cart__detail { margin: 6px 0 0; color: var(--cart-muted); font-size: 12px; }
.drawer--cart .cart__close { width: 44px; height: 44px; border-color: transparent; color: #c7cad1; border-radius: 0; }
.drawer--cart .cart__close:hover { background: #ffffff0a; color: #fff; }
.drawer--cart .cart__body { padding: 0 26px 14px; overflow-x: hidden; scrollbar-color: #50545a #05070a; }
.drawer--cart .cart__offer { padding: 15px 0 14px; border-bottom: 1px solid var(--cart-rule); }
.cart__offer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.drawer--cart .cart__offer-heading p { margin: 0; font: 500 16px/1.3 var(--font-display); letter-spacing: -.02em; color: #f1f3f5; }
.cart__offer-rate { color: var(--cart-accent); font: 500 19px/1 var(--font-display); }
.cart__offer-track { display: flex; gap: 5px; margin: 9px 0 7px; }
.cart__offer-track > span { display: block; flex: 1; height: 3px; overflow: hidden; background: #ffffff16; }
.cart__offer-track i { display: block; height: 100%; width: 100%; background: var(--cart-accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.cart__offer-track .is-filled i { transform: scaleX(1); }
.drawer--cart .cart__offer-copy { margin: 0; color: var(--cart-muted); font-size: 11px; line-height: 1.5; }
.drawer--cart .cart__item { grid-template-columns: 58px minmax(0,1fr) auto; grid-template-rows: auto 44px; column-gap: 16px; row-gap: 5px; padding: 15px 0; border-color: var(--cart-rule); }
.drawer--cart .cart__thumb { grid-column: 1; grid-row: 1 / 3; width: 58px; height: 91px; border: 0; border-radius: 0; background: none; }
.drawer--cart .cart__thumb::before { display: none; }
.drawer--cart .cart__thumb img { width: auto; height: 88px; max-height: 88px; max-width: 56px; filter: drop-shadow(0 5px 9px #0006); }
.drawer--cart .cart__info { grid-column: 2; grid-row: 1; align-self: center; }
.drawer--cart .cart__name { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.drawer--cart .cart__name a:hover { color: var(--item-accent); }
.drawer--cart .cart__meta { margin: 4px 0 0; font-size: 12px; color: var(--cart-muted); }
.drawer--cart .cart__price { grid-column: 3; grid-row: 1; align-self: center; padding: 0; font: 500 20px/1.2 var(--font-display); color: #f1f3f5; letter-spacing: -.015em; }
.drawer--cart .cart__qty { grid-column: 2; grid-row: 2; grid-template-columns: 44px 30px 44px; border: 1px solid #ffffff26; border-radius: 0; align-self: center; }
.drawer--cart .cart__qty button { width: 44px; height: 44px; color: #e5e8ec; }
.drawer--cart .cart__qty button:hover { background: #ffffff0b; }
.drawer--cart .cart__qty button:active { background: #ffffff18; }
.drawer--cart .cart__qty span { font-size: 13px; }
.drawer--cart .cart__rm { grid-column: 3; grid-row: 2; min-height: 44px; min-width: 44px; align-self: center; font-size: 13px; color: #a6adb5; }
.drawer--cart .cart__rm:hover { color: #fff; }
.cart__included { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 15px 0 0; }
.cart__included[hidden] { display: none; }
.cart__bac-art { display: grid; place-items: center; width: 58px; height: 72px; background: none; }
.cart__bac-art img { width: auto; height: 72px; object-fit: contain; }
.drawer--cart .cart__bac-name { margin: 0 0 4px; color: #f1f3f5; font-size: 14px; line-height: 1.3; font-weight: 500; }
.drawer--cart .cart__bac-copy { margin: 0; color: var(--cart-muted); font-size: 11px; line-height: 1.5; max-width: 27ch; }
.cart__bac-price { font: 500 13px var(--font-body); color: var(--cart-accent); }
.drawer--cart .cart__foot { padding: 16px 26px max(10px, env(safe-area-inset-bottom)); background: #05070a; border-color: var(--cart-rule); }
.cart__breakdown { margin-bottom: 10px; }
.cart__breakdown > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--cart-muted); font-size: 12px; line-height: 1.4; }
.cart__breakdown > div[hidden], .cart__breakdown > div:last-child { display: none; }
.cart__breakdown > div > span:last-child { color: #e1e4e8; font-variant-numeric: tabular-nums; }
.cart__breakdown > .cart__discount, .cart__breakdown > .cart__discount > span:last-child { color: var(--cart-accent); }
.cart__discount-rate { margin-left: 4px; font-size: 11px; }
.drawer--cart .cart__sum { margin: 0 0 13px; padding-top: 12px; border-top: 1px solid var(--cart-rule); font: 500 18px var(--font-display); }
.drawer--cart .cart__sum [data-cart-total] { font-size: 30px; letter-spacing: -.035em; }
.drawer--cart .cart__checkout { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; padding: 12px 16px; color: #05070a; background: var(--cart-accent); border: 1px solid var(--cart-accent); border-radius: 0; font: 500 14px var(--font-body); cursor: pointer; transition: filter .2s; }
.drawer--cart .cart__checkout:hover { filter: brightness(1.1); }
.drawer--cart .cart__checkout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s var(--ease-out); }
.drawer--cart .cart__checkout:hover svg { transform: translateX(4px); }
.drawer--cart .cart__note { margin: 8px 0 0; font-size: 10px; line-height: 1.5; color: var(--cart-muted); }
.drawer--cart .cart__continue { margin-top: 4px; min-height: 44px; font-size: 12px; color: #b7bdc5; }
.drawer--cart .cart__empty { padding: 25px 0; min-height: 270px; }
.cart__empty-art { display: flex; justify-content: center; align-items: end; gap: 18px; height: 140px; margin-bottom: 20px; }
.cart__empty-art > img { height: 130px; width: auto; transform: rotate(-5deg); }
.cart__empty-bac { display: block; height: 97px; transform: rotate(6deg); background: none; }
.cart__empty-bac img { width: auto; height: 100%; object-fit: contain; }
.drawer--cart .cart__empty h3 { font: 500 26px/1.2 var(--font-display); letter-spacing: -.025em; }
.drawer--cart .cart__empty p { margin: 12px 0 20px; font-size: 14px; line-height: 1.5; color: var(--cart-muted); }
.drawer--cart .cart__browse { min-height: 48px; padding: 13px 18px; color: #05070a; background: #c7cad1; border: 0; border-radius: 0; }
.drawer--cart .cart__browse:hover { background: #e5e8ec; }
/* The film transforms whole scenes on a phone. Flight artwork escapes those
   containing blocks through the browser's nonmodal top layer. */
.qb-flight-layer,
.qb-flight-layer:popover-open {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: transparent;
  pointer-events: none;
  z-index: 95;
}
.qb-flight-layer::backdrop { background: transparent; pointer-events: none; }
.qb-flight-layer .fly { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.qb-flight-layer .fly__in { filter: drop-shadow(3px 12px 8px rgba(0, 0, 0, .55)); }
.qb-flight-layer .fly__in.no-art::after { width: 16px; height: 55px; border: 1px solid #bdd5eb; border-radius: 3px 3px 6px 6px; background: #0f53a6; }
.hdr.is-cart-landing { transform: translateY(0) !important; opacity: 1 !important; visibility: visible !important; }


@media (max-width:560px) {
  .drawer--cart { width: 100vw; border-left: 0; }
  .drawer--cart .cart__head { padding: 18px 20px 15px; }
  .drawer--cart .cart__title { font-size: 28px; }
  .drawer--cart .cart__body { padding-inline: 20px; }
  .drawer--cart .cart__item { grid-template-columns: 52px minmax(0,1fr) auto; column-gap: 12px; padding-block: 13px; }
  .drawer--cart .cart__thumb { width: 52px; height: 86px; }
  .drawer--cart .cart__thumb img { height: 85px; max-height: 85px; max-width: 47px; }
  .drawer--cart .cart__name, .drawer--cart .cart__price { font-size: 18px; }
  .drawer--cart .cart__qty { grid-template-columns: 44px 28px 44px; }
  .drawer--cart .cart__qty button { width: 44px; }
  .cart__included { grid-template-columns: 52px minmax(0,1fr) auto; gap: 12px; }
  .cart__bac-art { width: 52px; height: 66px; }
  .cart__bac-art img { height: 66px; }
  .drawer--cart .cart__foot { padding-inline: 20px; }
  .drawer--cart .cart__continue { display: none; }
  .drawer--cart .cart__empty h3 { font-size: 25px; }
}
@media (max-height:480px) and (min-width:600px) {
  .drawer--cart { display: grid; grid-template-columns: minmax(0,1fr) 245px; grid-template-rows: auto minmax(0,1fr); width: min(810px,100vw); }
  .drawer--cart .cart__head { grid-column: 1 / -1; padding-block: 12px; }
  .drawer--cart .cart__body { padding-inline: 20px; }
  .drawer--cart .cart__foot { border-top: 0; border-left: 1px solid var(--cart-rule); padding-inline: 17px; overflow-y: auto; }
  .drawer--cart .cart__continue { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  .cart__offer-track i, .drawer--cart .cart__checkout svg, .drawer--cart .cart__thumb img { transition: none; }
}
