/* Framed cart drawer: a right-side sheet over a dimmed, blurred page, a frieze band across its top and a hairline
   frame 4px inside it; line items (picture, title, price, properties, - qty +, Remove), a promo-code field with
   Apply, a footer checkout bar "Proceed to payment - total" and a reassurance line; an empty state on top.
   Measured on dixhectares.com (<cart-drawer> markup, styles.css .u-popin-overlay, cart-drawer .cart-list,
   CartDrawer.js watch()): sheet translateX(calc(100% + 30px)) -> 0 over .7s cubic-bezier(.65,0,.35,1), 50% wide
   (max 600px) from 1024px, full width below; overlay rgba(0,0,0,.5) on the same .7s curve, blur(7px) from 1024px;
   html.cart-opened; list height = 100% - footer height - 89px (band 12 + header 77), footer measured live. */
:root {
  --fcd-ink: #a85435;
  --fcd-paper: #efe5d7;
  --fcd-dur: .7s;
  --fcd-ease: cubic-bezier(.65, 0, .35, 1);
  --fcd-off: 30px;               /* parks this far past the edge when closed (shadowless, so it reads as gone) */
  --fcd-w: 50%;
  --fcd-max-w: 600px;
  --fcd-veil: rgba(0, 0, 0, .5);
  --fcd-blur: 7px;               /* desktop only, as on the source */
  --fcd-frame-top: 16px;         /* hairline frame: 4px under the 12px band ... */
  --fcd-frame-in: 4px;           /* ... and 4px in from the other edges */
  --fcd-pad: 28px;               /* header and line padding (x) */
  --fcd-thumb: 100px;
  --fcd-caps: "Copperplate", "Copperplate Gothic Light", "Helvetica Neue", Arial, sans-serif;
  --fcd-serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --fcd-z: 90;
}

.fcd-veil {
  position: fixed; inset: 0; z-index: calc(var(--fcd-z) - 10); background: var(--fcd-veil);
  opacity: 0; pointer-events: none; cursor: default; transition: opacity var(--fcd-dur) var(--fcd-ease);
}
@media (min-width: 1024px) { .fcd-veil { -webkit-backdrop-filter: blur(var(--fcd-blur)); backdrop-filter: blur(var(--fcd-blur)); } }
.cart-opened .fcd-veil { opacity: 1; pointer-events: auto; }
html.cart-opened { overflow: hidden; }

.fcd {
  --fz-ink: var(--fcd-ink);
  --fz-z: 30;                    /* the band stays above the empty state */
  position: fixed; top: 0; bottom: 0; right: 0; z-index: var(--fcd-z); box-sizing: border-box;
  width: 100%; max-width: var(--fcd-max-w); padding-top: var(--fz-size, 12px);
  background: var(--fcd-paper); color: var(--fcd-ink); font-family: var(--fcd-serif);
  transform: translateX(calc(100% + var(--fcd-off))); visibility: hidden; pointer-events: none;
  transition: transform var(--fcd-dur) var(--fcd-ease), visibility 0s linear var(--fcd-dur);
}
.fcd.is-open { transform: none; visibility: visible; pointer-events: auto; transition: transform var(--fcd-dur) var(--fcd-ease), visibility 0s; }
@media (min-width: 1024px) { .fcd { width: var(--fcd-w); } }
:where(.fcd) *, :where(.fcd) *::before, :where(.fcd) *::after { box-sizing: border-box; }
:where(.fcd) :where(button, input) { font: inherit; color: inherit; }
:where(.fcd) button { cursor: pointer; }
.fcd__frame { position: absolute; z-index: 10; pointer-events: none; top: var(--fcd-frame-top); left: var(--fcd-frame-in); right: var(--fcd-frame-in); bottom: var(--fcd-frame-in); border: 1px solid currentColor; }

.fcd__head { display: flex; align-items: center; justify-content: space-between; padding: var(--fcd-pad); border-bottom: 1px solid currentColor; }
.fcd__title { position: relative; top: 2px; margin: 0; font: 12px/20px var(--fcd-caps); letter-spacing: .24rem; text-transform: uppercase; }
.fcd__x { position: relative; z-index: 11; display: grid; place-items: center; width: 28px; height: 28px; margin: -7px; padding: 0; border: 0; background: none; }
.fcd__x svg { width: 14px; height: 14px; stroke: currentColor; }

/* list: what is left between the header and the measured footer (source: calc(100% - var(--cart-footer-height) - 89px)) */
.fcd__list {
  display: block; margin: 0; padding: 0; list-style: none; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  height: calc(100% - var(--fcd-foot-h, 204px) - var(--fcd-head-h, 77px));
}
.fcd__line { display: flex; padding: 24px var(--fcd-pad); border-bottom: 1px solid currentColor; }
.fcd__line:last-child { border-bottom: 0; }
.fcd__thumb { position: relative; flex: 0 0 var(--fcd-thumb); min-height: calc(var(--fcd-thumb) * 1.25); overflow: hidden; background: var(--fcd-swatch, #d6b3a4); }
.fcd__thumb img, .fcd__thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fcd__body { position: relative; display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: space-between; padding-left: 20px; }
.fcd__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fcd__name, .fcd__price { margin: 0; font: 10px/14px var(--fcd-caps); letter-spacing: .075rem; text-transform: uppercase; }
.fcd__name { width: 66.666%; }
.fcd__price { white-space: nowrap; }
.fcd__props { margin: 8px 0 0; padding: 0; list-style: none; font: 12px/16px var(--fcd-serif); }
.fcd__ctrl { position: relative; top: 5px; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.fcd__qty { display: flex; align-items: center; gap: 8px; }
.fcd__step { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 -7px; padding: 0; border: 0; background: none; transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
.fcd__step svg { width: 10px; height: 10px; stroke: currentColor; }
.fcd__n { min-width: 10px; margin: 0; text-align: center; font: 10px/24px var(--fcd-caps); }
.fcd__rm { padding: 0; border: 0; background: none; font: 12px/16px var(--fcd-serif); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .fcd__step:hover { opacity: .4; } .fcd__rm:hover { text-decoration: none; } .fcd__apply:hover { text-decoration: underline; } }
@media (min-width: 1024px) { .fcd__name, .fcd__price { line-height: 16px; } .fcd__qty { gap: 16px; } }

/* footer: absolutely at the bottom, inside the frame; its height feeds --fcd-foot-h */
.fcd__foot { position: absolute; left: var(--fcd-frame-in); right: var(--fcd-frame-in); bottom: 0; border-top: 1px solid currentColor; background: var(--fcd-paper); }
.fcd__promo { padding: 16px 24px; border-bottom: 1px solid currentColor; }
.fcd__code { position: relative; display: flex; align-items: center; gap: 8px; padding: 2px 16px; border: 1px solid currentColor; }
.fcd__code input { position: relative; top: 1px; flex: 1 1 auto; min-width: 0; padding: 8px 0; border: 0; background: transparent; font: 14px/20px var(--fcd-serif); color: var(--fcd-ink); }
.fcd__code input::placeholder { color: color-mix(in srgb, var(--fcd-ink) 50%, transparent); }
.fcd__code input:focus { outline: none; }
.fcd__code:focus-within { box-shadow: inset 0 0 0 1px currentColor; }
.fcd__apply { position: relative; top: 1px; padding: 0; border: 0; background: none; font: 10px/16px var(--fcd-caps); letter-spacing: .075rem; text-transform: uppercase; }
.fcd__codes { margin: 0; padding: 0; list-style: none; font: 14px/20px var(--fcd-serif); }
.fcd__codes:empty { display: none; }
.fcd__codes li { display: flex; align-items: center; gap: 4px; }
.fcd__codes li + li { margin-top: 4px; }
.fcd__codes button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; background: none; }
.fcd__codes button svg { width: 10px; height: 10px; stroke: currentColor; }
.fcd__codes .is-note { text-decoration: underline; text-underline-offset: 2px; }
.fcd.has-code .fcd__code { display: none; }
.fcd__pay { padding: 16px 24px; }
.fcd__checkout {
  display: block; width: 100%; height: 41px; margin: 0; border: 1px solid var(--fcd-ink); border-radius: 0; background: var(--fcd-ink); color: #fff;
  padding: 13px 8px 10px; font: 11px/16px var(--fcd-caps); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .3s cubic-bezier(.25, 1, .5, 1), background-color .3s cubic-bezier(.25, 1, .5, 1);
}
.fcd__checkout:disabled { opacity: .5; pointer-events: none; }
.fcd__note { margin: 8px 0 0; text-align: center; font: 12px/16px var(--fcd-serif); }
@media (min-width: 1024px) {
  .fcd__promo, .fcd__pay { padding-top: 24px; padding-bottom: 24px; }
  .fcd__checkout:hover { background: #fff; color: var(--fcd-ink); }
}

/* empty state: a cream layer over everything but the band */
.fcd__empty { position: absolute; inset: 0; z-index: 20; display: none; flex-direction: column; padding-top: var(--fz-size, 12px); background: var(--fcd-paper); }
.fcd.is-empty .fcd__empty { display: flex; }
.fcd__empty-top { display: flex; justify-content: flex-end; padding: 30px; }
.fcd__empty-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px 64px; text-align: center; }
.fcd__empty-title { margin: 0; padding-bottom: 20px; font: 10px/14px var(--fcd-caps); letter-spacing: .075rem; text-transform: uppercase; }
.fcd__cta {
  margin: 0; border: 1px solid var(--fcd-ink); border-radius: 0; background: var(--fcd-ink); color: #fff; padding: 13px 56px 10px;
  font: 12px/16px var(--fcd-caps); letter-spacing: .165rem; text-transform: uppercase;
  transition: color .3s cubic-bezier(.25, 1, .5, 1), background-color .3s cubic-bezier(.25, 1, .5, 1);
}
@media (min-width: 1024px) { .fcd__cta:hover { background: #fff; color: var(--fcd-ink); } }
.fcd :focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.fcd:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .fcd, .fcd.is-open, .fcd-veil { transition-duration: .01s; }
}
