/* ==========================================================================
   The Family Chemist — Cart page  (premium redesign)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800&display=swap');

/* ── design tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:          #f7f8f2;
  --bg-2:        #fafaf6;
  --card:        #FFFFFF;
  --ink:         #1e2410;
  --ink-2:       #2e3820;
  --muted:       #65704a;
  --muted-2:     #96a06e;
  --line:        #e4ead0;
  --line-2:      #d8e0be;
  --accent:      #41461d;
  --accent-h:    #3a4728;
  --accent-soft: #edf1d8;
  --accent-mid:  #c5ce9e;
  --danger:      #dc2626;
  --danger-soft: #fef2f2;
  --success:     #527030;
  --success-soft:#edf4d8;
  --gold:        #D4A017;
  --gold-soft:   #FBF3DC;
  --radius:       16px;
  --radius-inner: 12px;
  --shadow-sm:  0 1px 0 rgba(30,36,16,.04), 0 2px 4px rgba(30,36,16,.04);
  --shadow-md:  0 4px 20px -8px rgba(30,36,16,.12), 0 1px 0 rgba(30,36,16,.04);
  --shadow-lg:  0 12px 40px -12px rgba(30,36,16,.18), 0 1px 0 rgba(30,36,16,.04);
}

/* ── hide Shoptimizer's default progress bar ─────────────────────────────── */

.woocommerce-cart .checkout-wrap,
.woocommerce-checkout .checkout-wrap { display: none !important; }

/* ── cart banner — design tokens ─────────────────────────────────────────── */

.tfc-cb {
  --cb-bg:       #eaede6;
  --cb-ink:      #18241F;
  --cb-muted:    #5C6B62;
  --cb-card:     #FCFAF5;
  --cb-line:     #E4DCCD;
  --cb-sage:     #3F6B52;
  --cb-sage-d:   #4F6B4C;
  --cb-clay:     #C98A6A;
}

/* ── section ─────────────────────────────────────────────────────────────── */

.tfc-cb {
  background: var(--cb-bg);
  color: var(--cb-ink);
  overflow: visible;
}

.tfc-cb__inner {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  grid-template-areas:
    "top   stage"
    "bottom stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: clamp(12px, 2vw, 28px);
  align-items: start;
  width: 80%;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
}

.tfc-cb__lead-top    { grid-area: top; }
.tfc-cb__lead-bottom { grid-area: bottom; }
.tfc-cb__stage-wrap  { grid-area: stage; align-self: center; }

/* ── left column ─────────────────────────────────────────────────────────── */

.tfc-cb__lead-top { max-width: 460px; }

.tfc-cb__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cb-sage-d);
  padding: 7px 13px 7px 11px;
  border-radius: 100px;
  background: rgba(110,139,106,.14);
  border: 1px solid rgba(110,139,106,.26);
  margin-bottom: 20px;
}

.tfc-cb__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cb-sage);
  animation: tfc-cb-pulse 2.4s ease-out infinite;
}

@keyframes tfc-cb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110,139,106,.55); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.tfc-cb__headline {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--cb-ink);
  margin: 0 0 0;
}

.tfc-cb__headline em {
  font-style: normal;
  color: var(--cb-sage-d);
}

/* ── stepper ─────────────────────────────────────────────────────────────── */

.tfc-cb__stepper {
  margin-top: 30px;
  position: relative;
  padding-left: 6px;
}

.tfc-cb__track {
  position: absolute;
  left: 20px; top: 14px; bottom: 14px;
  width: 2px;
  background: var(--cb-line);
  border-radius: 2px;
  overflow: hidden;
}

.tfc-cb__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(var(--cb-sage-d), var(--cb-sage));
  border-radius: 2px;
}

.tfc-cb__step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  padding: 7px 0;
  cursor: pointer;
}

.tfc-cb__node {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cb-card);
  border: 2px solid var(--cb-line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cb-muted);
  position: relative;
  z-index: 2;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.tfc-cb__node svg {
  width: 13px; height: 13px;
  stroke: #fff; stroke-width: 2.6;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.tfc-cb__step--done .tfc-cb__node {
  background: var(--cb-sage);
  border-color: var(--cb-sage);
  color: #fff;
}

.tfc-cb__step--active .tfc-cb__node {
  background: var(--cb-card);
  border-color: var(--cb-sage);
  color: var(--cb-sage-d);
  box-shadow: 0 0 0 5px rgba(110,139,106,.16);
}

.tfc-cb__s-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  padding-top: 4px;
  color: var(--cb-muted);
}

.tfc-cb__step--active .tfc-cb__s-title,
.tfc-cb__step--done   .tfc-cb__s-title { color: var(--cb-ink); }

.tfc-cb__s-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cb-muted);
  max-width: 380px;
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, margin .3s ease;
}

.tfc-cb__step--active .tfc-cb__s-desc {
  max-height: 120px;
  opacity: 1;
  margin: 7px 0 2px;
}

/* ── mobile step indicator (hidden on desktop) ────────────────────────────── */

.tfc-cb__mob-nav { display: none; }

.tfc-cb__mob-nodes {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.tfc-cb__mob-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tfc-cb__mob-node {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cb-card);
  border: 2px solid var(--cb-line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--cb-muted);
  position: relative;
  z-index: 1;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.tfc-cb__mob-node-wrap--done .tfc-cb__mob-node {
  background: var(--cb-sage);
  border-color: var(--cb-sage);
  color: #fff;
}

.tfc-cb__mob-node-wrap--active .tfc-cb__mob-node {
  background: var(--cb-card);
  border-color: var(--cb-sage);
  color: var(--cb-sage-d);
  box-shadow: 0 0 0 5px rgba(110,139,106,.16);
}

.tfc-cb__mob-connector {
  flex: 1;
  height: 2px;
  background: var(--cb-line);
}

.tfc-cb__mob-step-texts {
  text-align: center;
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}

.tfc-cb__mob-step-text {
  display: none;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
  animation: tfc-fadeup .3s ease both;
}

.tfc-cb__mob-step-text--active { display: flex; }

.tfc-cb__mob-step-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--cb-ink);
  line-height: 1.3;
}

.tfc-cb__mob-step-text p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cb-muted);
  margin: 0;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.tfc-cb__cta {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--cb-card);
  background: var(--cb-ink);
  border-radius: 100px;
  padding: 14px 22px;
  text-decoration: none;
  transition: background .2s;
}

.tfc-cb__cta:hover { background: var(--cb-sage-d); color: #fff; }
.tfc-cb__cta svg   { transition: transform .2s; }
.tfc-cb__cta:hover svg { transform: translateX(-4px); }

/* ── stage wrap (right column) ───────────────────────────────────────────── */

.tfc-cb__stage-wrap { position: relative; width: 100%; }

.tfc-cb__stage {
  position: relative;
  border-radius: 30px;
  aspect-ratio: 5 / 4.2;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(110,139,106,.16) 0%, transparent 55%),
    radial-gradient(120% 100% at 0% 100%, rgba(201,138,106,.14) 0%, transparent 50%),
    var(--cb-card);
  border: 1px solid var(--cb-line);
  box-shadow: 0 40px 80px -40px rgba(24,36,31,.3), inset 0 1px 0 #fff;
  overflow: hidden;
}

/* ── blobs ───────────────────────────────────────────────────────────────── */

.tfc-cb__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .5;
  pointer-events: none;
}

.tfc-cb__blob--a {
  width: 220px; height: 220px;
  top: -60px; right: -40px;
  background: rgba(110,139,106,.4);
  animation: tfc-cb-drift 14s ease-in-out infinite;
}

.tfc-cb__blob--b {
  width: 200px; height: 200px;
  bottom: -70px; left: -50px;
  background: rgba(201,138,106,.38);
  animation: tfc-cb-drift 17s ease-in-out infinite reverse;
}

@keyframes tfc-cb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(18px,-14px) scale(1.08); }
}

/* ── phone frame ─────────────────────────────────────────────────────────── */

.tfc-cb__phone {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 252px;
  height: 78%;
  max-height: 420px;
  background: linear-gradient(160deg, #232f2a, #131c18);
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 30px 50px -22px rgba(10,20,16,.5), inset 0 0 0 1.5px rgba(255,255,255,.06);
  z-index: 3;
}

.tfc-cb__notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  z-index: 5;
}

.tfc-cb__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cb-card);
}

/* ── scenes ──────────────────────────────────────────────────────────────── */

.tfc-cb__scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 15px 15px;
  opacity: var(--on, 0);
  pointer-events: none;
  background: var(--cb-card);
}

.tfc-cb__sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tfc-cb__sc-title { font-size: 13px; font-weight: 700; color: var(--cb-ink); }
.tfc-cb__sc-sub   { font-size: 9.5px; color: var(--cb-muted); font-weight: 500; }

/* ── scene 0: find ───────────────────────────────────────────────────────── */

.tfc-cb__searchbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 12px;
  background: rgba(24,36,31,.05);
  border: 1px solid var(--cb-line);
  font-size: 10.5px;
  color: var(--cb-muted);
  margin-bottom: 10px;
}

.tfc-cb__mag {
  width: 12px; height: 12px;
  border: 1.6px solid var(--cb-muted);
  border-radius: 50%;
  position: relative;
  flex: none;
}

.tfc-cb__mag::after {
  content: '';
  position: absolute;
  width: 5px; height: 1.6px;
  background: var(--cb-muted);
  transform: rotate(45deg);
  bottom: -2px; right: -3px;
  border-radius: 2px;
}

.tfc-cb__cat-row { display: flex; gap: 6px; margin-bottom: 11px; }

.tfc-cb__cat {
  font-size: 9px; font-weight: 600;
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--cb-card);
  border: 1px solid var(--cb-line);
  color: var(--cb-muted);
  white-space: nowrap;
}

.tfc-cb__cat--on { background: var(--cb-sage); border-color: var(--cb-sage); color: #fff; }

.tfc-cb__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.tfc-cb__pcard {
  border-radius: 14px;
  border: 1.5px solid var(--cb-line);
  background: var(--cb-card);
  padding: 9px;
  position: relative;
  overflow: hidden;
}

.tfc-cb__pcard--sel {
  border-color: var(--cb-sage);
  box-shadow: 0 8px 18px -10px rgba(110,139,106,.6);
}

.tfc-cb__pthumb {
  height: 42px;
  border-radius: 9px;
  margin-bottom: 7px;
}

.tfc-cb__pthumb--sage {
  background-image: repeating-linear-gradient(45deg, rgba(110,139,106,.12) 0 6px, rgba(110,139,106,.05) 6px 12px);
}

.tfc-cb__pthumb--clay {
  background-image: repeating-linear-gradient(45deg, rgba(201,138,106,.14) 0 6px, rgba(201,138,106,.06) 6px 12px);
}

.tfc-cb__pname { font-size: 10px; font-weight: 700; color: var(--cb-ink); }
.tfc-cb__ptag  { font-size: 8.5px; color: var(--cb-muted); margin-top: 2px; }

.tfc-cb__selbadge {
  position: absolute;
  top: 7px; right: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cb-sage);
  display: grid;
  place-items: center;
  transform: scale(var(--sel, 0));
}

.tfc-cb__selbadge svg {
  width: 10px; height: 10px;
  stroke: #fff; stroke-width: 3;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.tfc-cb__tapring {
  position: absolute;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--cb-sage-d);
  top: 96px; left: 40px;
  opacity: var(--tapO, 0);
  transform: scale(var(--tapS, 1.5));
}

/* ── scene 1: review ─────────────────────────────────────────────────────── */

.tfc-cb__rev-card {
  border-radius: 14px;
  border: 1px solid var(--cb-line);
  background: var(--cb-card);
  padding: 11px;
  margin-bottom: 10px;
}

.tfc-cb__prescriber { display: flex; align-items: center; gap: 9px; }

.tfc-cb__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background-image: repeating-linear-gradient(135deg, rgba(110,139,106,.22) 0 5px, rgba(110,139,106,.1) 5px 10px);
  position: relative;
  flex: none;
}

.tfc-cb__verified {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cb-sage);
  border: 2px solid var(--cb-card);
  display: grid;
  place-items: center;
}

.tfc-cb__verified svg {
  width: 7px; height: 7px;
  stroke: #fff; stroke-width: 3.4;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.tfc-cb__doc-name { font-size: 11px; font-weight: 700; color: var(--cb-ink); }
.tfc-cb__doc-role { font-size: 9px; color: var(--cb-muted); }

.tfc-cb__checklist { display: flex; flex-direction: column; gap: 8px; }

.tfc-cb__cl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--cb-ink);
}

.tfc-cb__cl-item--1 { opacity: var(--c1, 0); transform: translateX(calc((1 - var(--c1, 0)) * -6px)); }
.tfc-cb__cl-item--2 { opacity: var(--c2, 0); transform: translateX(calc((1 - var(--c2, 0)) * -6px)); }
.tfc-cb__cl-item--3 { opacity: var(--c3, 0); transform: translateX(calc((1 - var(--c3, 0)) * -6px)); }

.tfc-cb__cl-box {
  width: 16px; height: 16px;
  border-radius: 5px;
  background: var(--cb-sage);
  display: grid;
  place-items: center;
  flex: none;
}

.tfc-cb__cl-box svg {
  width: 9px; height: 9px;
  stroke: #fff; stroke-width: 3;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.tfc-cb__approved {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(110,139,106,.16);
  border: 1px dashed rgba(110,139,106,.5);
  color: var(--cb-sage-d);
  font-size: 11px;
  font-weight: 700;
  opacity: var(--appr, 0);
  transform: scale(calc(0.92 + 0.08 * var(--appr, 0)));
}

/* ── scene 2: delivery ───────────────────────────────────────────────────── */

.tfc-cb__map {
  position: relative;
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cb-line);
  background: rgba(110,139,106,.06);
  margin-bottom: 10px;
}

.tfc-cb__map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--cb-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cb-line) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}

.tfc-cb__route-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.tfc-cb__route-prog {
  fill: none;
  stroke: #4F6B4C;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: calc((1 - var(--route, 0)) * 240px);
}

.tfc-cb__pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.tfc-cb__pin--start { background: var(--cb-clay); left: 24px; bottom: 30px; }
.tfc-cb__pin--end   { background: var(--cb-sage-d); right: 26px; top: 30px; }

.tfc-cb__parcel {
  position: absolute;
  width: 26px; height: 22px;
  border-radius: 5px;
  background: linear-gradient(160deg, #e7c79c, #cba269);
  offset-path: path("M 36 150 C 90 120, 70 60, 150 50");
  offset-distance: calc(var(--parcel, 0) * 100%);
  box-shadow: 0 6px 10px -4px rgba(0,0,0,.25);
  z-index: 3;
}

.tfc-cb__parcel::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(201,138,106,.6);
}

.tfc-cb__deliv-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--cb-card);
  border: 1px solid var(--cb-line);
}

.tfc-cb__box-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(201,138,106,.18);
  display: grid;
  place-items: center;
  flex: none;
}

.tfc-cb__box-ico svg { width: 16px; height: 16px; }
.tfc-cb__dc-title    { font-size: 10.5px; font-weight: 700; color: var(--cb-ink); }
.tfc-cb__dc-sub      { font-size: 9px; color: var(--cb-muted); }

/* ── floaters ────────────────────────────────────────────────────────────── */

.tfc-cb__fset {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: var(--fon, 0);
}

.tfc-cb__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--cb-card);
  border: 1px solid var(--cb-line);
  border-radius: 100px;
  padding: 8px 12px 8px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cb-ink);
  box-shadow: 0 14px 30px -16px rgba(24,36,31,.36);
  opacity: var(--chip, 0);
  animation: tfc-cb-bob 4.8s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes tfc-cb-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.tfc-cb__chip-ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.tfc-cb__chip-ic--sage { background: rgba(110,139,106,.2); }
.tfc-cb__chip-ic--clay { background: rgba(201,138,106,.22); }
.tfc-cb__chip-ic svg   { width: 12px; height: 12px; }

/* ── ring badge (24h) ────────────────────────────────────────────────────── */

.tfc-cb__ring-badge {
  position: absolute;
  top: 20px; right: 14px;
  z-index: 5;
  width: 82px; height: 82px;
  display: grid;
  place-items: center;
  background: var(--cb-card);
  border-radius: 50%;
  border: 1px solid var(--cb-line);
  box-shadow: 0 16px 32px -16px rgba(24,36,31,.42);
  opacity: var(--chip, 0);
  animation: tfc-cb-bob 5.2s ease-in-out infinite;
}

.tfc-cb__ring-bg {
  fill: none;
  stroke: var(--cb-line);
  stroke-width: 3.5;
  transform: rotate(-90deg);
  transform-origin: center;
}

.tfc-cb__ring-fg {
  fill: none;
  stroke: var(--cb-sage);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 207;
  stroke-dashoffset: calc((1 - 0.72 * var(--ring, 0)) * 207px);
  transform: rotate(-90deg);
  transform-origin: center;
}

.tfc-cb__ring-hand {
  position: absolute;
  left: 50%; bottom: 50%;
  width: 2px; height: 28px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--cb-sage-d);
  transform-origin: 50% 100%;
  opacity: .45;
  animation: tfc-cb-sweep 7s linear infinite;
}

@keyframes tfc-cb-sweep { to { transform: rotate(360deg); } }

.tfc-cb__ring-hub {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cb-sage-d);
  z-index: 2;
}

.tfc-cb__ring-lbl {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
  z-index: 3;
}

.tfc-cb__ring-lbl::before {
  content: '';
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: rgba(252,250,245,.8);
}

.tfc-cb__ring-lbl b {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  color: var(--cb-ink);
}

.tfc-cb__ring-lbl span {
  position: relative;
  font-size: 7px;
  font-weight: 700;
  color: var(--cb-muted);
  display: block;
  margin-top: 2px;
  letter-spacing: .08em;
}

/* ── page chrome ──────────────────────────────────────────────────────────── */

body.woocommerce-cart {
  background: var(--bg);
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.woocommerce-cart .col-full        { max-width: unset !important; padding: 0 !important; }
body.woocommerce-cart .content-area    { width:100%!important; max-width:100%!important; margin:0!important; padding:0!important; float:none!important; }

body.woocommerce-cart .woocommerce-notices-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── root wrapper ─────────────────────────────────────────────────────────── */

.tfc-cart {
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  min-height: 60vh;
}

/* ══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-cart__empty {
  max-width: 420px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: tfc-fadeup .45s ease both;
}

.tfc-cart__empty-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 8px;
  animation: tfc-pop .5s .1s cubic-bezier(.34,1.56,.64,1) both;
}

.tfc-cart__empty-icon svg { width: 44px; height: 44px; color: var(--accent); }

.tfc-cart__empty-title {
  font-size: 28px; font-weight: 800;
  color: var(--ink); margin: 0;
  letter-spacing: -.03em;
}

.tfc-cart__empty-sub { font-size: 15px; color: var(--muted); margin: 0 0 8px; line-height: 1.55; }

.tfc-cart__empty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: filter .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px -8px rgba(39,90,148,.4);
}
.tfc-cart__empty-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-cart__layout {
  display: flex;
  align-items: flex-start;
  min-height: 70vh;
}

/* left column */
.tfc-cart__col--items {
  flex: 1 1 0; min-width: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 40px 48px 100px;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center;
}

.tfc-cart__col--items > * {
  max-width: 700px; 
  width: 100%;
  /* margin-left: auto;  */
  margin-right: 0;
}

/* right column */
.tfc-cart__col--summary {
  flex: 0 0 50%; width: 50%;
  background: var(--bg);
  padding: 40px 40px 0px;
  position: sticky;
  top: 0;
  /* height: 100vh; */
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
}

/* ── free-shipping bar ────────────────────────────────────────────────────── */

.tfc-freeship {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  animation: tfc-fadeup .4s ease both;
}

.tfc-freeship__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tfc-freeship__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  flex: 1; min-width: 0;
}

.tfc-freeship__label svg { color: var(--accent); flex-shrink: 0; }
.tfc-freeship__label strong { color: var(--ink); }

.tfc-freeship__pct {
  font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: .03em;
  flex-shrink: 0;
}

.tfc-freeship__track {
  height: 5px; background: var(--line); border-radius: 999px; overflow: hidden;
}

.tfc-freeship__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #2ea05a 100%);
  border-radius: 999px;
  transition: width .8s cubic-bezier(.22,1,.36,1);
}

/* ── cart header ──────────────────────────────────────────────────────────── */

.tfc-cart__top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

.tfc-cart__title-row { display: flex; align-items: center; gap: 10px; }

.tfc-cart__title {
  font-size: 26px; font-weight: 800;
  color: var(--ink); letter-spacing: -.03em;
  margin: 0 !important;
}

.tfc-cart__badge {
  display: inline-flex; align-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: .01em;
}

.tfc-cart__badge.tfc-badge--bump { animation: tfc-badge-bump .3s ease; }

@keyframes tfc-badge-bump {
  0%  { transform: scale(1); }
  45% { transform: scale(1.3); }
  100%{ transform: scale(1); }
}

.tfc-cart__continue {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  transition: color .15s; white-space: nowrap;
}
.tfc-cart__continue:hover { color: var(--accent); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════════
   ITEMS LIST
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-cart__list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ── single item ──────────────────────────────────────────────────────────── */

.tfc-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .2s ease;
  animation: tfc-item-in .4s calc(var(--i,1) * 60ms) ease both;
}

.tfc-item:last-child { border-bottom: none; }
.tfc-item:hover      { background: #FCFCFA; }

@keyframes tfc-item-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* removal animation */
.tfc-item.is-removing {
  pointer-events: none;
  transition: height .3s ease, padding .3s ease, opacity .3s ease !important;
}

.tfc-item.is-removing .tfc-item__thumb,
.tfc-item.is-removing .tfc-item__info,
.tfc-item.is-removing .tfc-item__sub {
  opacity: 0;
  transform: translateX(-10px) scale(.97);
  transition: opacity .2s ease, transform .2s ease;
}

/* updating state */
.tfc-item.is-updating .tfc-item__overlay { opacity: 1; pointer-events: auto; }
.tfc-item.is-updating .tfc-item__info    { opacity: .4; }
.tfc-item.is-updating .tfc-item__sub     { opacity: .4; }

/* ── thumbnail ────────────────────────────────────────────────────────────── */

.tfc-item__thumb {
  width: 88px; height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  transition: transform .25s cubic-bezier(.34,1.2,.64,1), box-shadow .25s;
}

.tfc-item:hover .tfc-item__thumb {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(15,27,20,.14);
}

.tfc-item__thumb img  { width:100%; height:100%; object-fit:cover; display:block; }
.tfc-item__thumb a    { display:block; width:100%; height:100%; }

.tfc-item__sale-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px #fff;
}

/* ── item info ────────────────────────────────────────────────────────────── */

.tfc-item__info {
  min-width: 0;
  display: flex; flex-direction: column; gap: 0;
}

.tfc-item__name-wrap { margin-bottom: 8px; }

.tfc-item__name {
  font-size: 14px; font-weight: 700;
  color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tfc-item__name a { color: inherit; text-decoration: none; }
.tfc-item__name a:hover { color: var(--accent); }

.tfc-item__variant {
  margin-top: 3px;
  font-size: 12px; color: var(--muted);
  letter-spacing: .01em;
}

/* price row */
.tfc-item__price-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}

.tfc-item__price-now {
  font-size: 14px; font-weight: 700;
  color: var(--ink);
}

.tfc-item__price-was {
  font-size: 12px; color: var(--muted-2);
  text-decoration: line-through;
}

.tfc-item__price-tag {
  font-size: 10px; font-weight: 700;
  background: var(--danger-soft); color: var(--danger);
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}

.tfc-item__price-unit { font-size: 11.5px; color: var(--muted-2); }

/* bottom row: stepper + remove */
.tfc-item__bottom {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}

/* ── subtotal (right col) ─────────────────────────────────────────────────── */

.tfc-item__sub {
  align-self: center;
  font-size: 17px; font-weight: 800;
  color: var(--ink); letter-spacing: -.025em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: color .2s;
}

.tfc-item__sub.tfc-flash { animation: tfc-price-flash .45s ease; }

@keyframes tfc-price-flash {
  0%   { color: var(--accent); transform: scale(1.08); }
  100% { color: var(--ink);    transform: scale(1); }
}

/* ── max qty note ────────────────────────────────────────────────────────── */

.tfc-item__max-qty {
  font-size: 11.5px;
  font-weight: 600;
  color: #527030;
  background: rgba(82,112,48,.08);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  margin: 0 0 6px;
  width: fit-content;
}

/* ── qty stepper ──────────────────────────────────────────────────────────── */

.tfc-stepper {
  display: inline-flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .15s;
}

.tfc-stepper:focus-within { border-color: var(--accent); }

.tfc-stepper__btn {
  width: 34px; height: 34px;
  background: none; border: none;
  cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .12s, color .12s;
  flex-shrink: 0;
}

.tfc-stepper__btn:hover:not(:disabled) { background: var(--line); color: var(--ink); }
.tfc-stepper__btn:disabled { opacity: .2; cursor: default; }

.tfc-stepper__val {
  display: inline-block;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  min-width: 28px; text-align: center;
  font-variant-numeric: tabular-nums;
  transition: transform .15s;
}

.tfc-stepper__val.is-changing { animation: tfc-num-flip .2s ease; }

@keyframes tfc-num-flip {
  0%  { transform: translateY(-4px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}

/* ── remove button ────────────────────────────────────────────────────────── */

.tfc-item__remove {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none;
  padding: 5px 8px; border-radius: 8px;
  cursor: pointer;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--muted-2);
  transition: background .15s, color .15s;
}

.tfc-item__remove:hover { background: var(--danger-soft); color: var(--danger); }

/* ── loading overlay ──────────────────────────────────────────────────────── */

.tfc-item__overlay {
  position: absolute; inset: 0;
  background: rgba(250,250,248,.75);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
}

.tfc-item__overlay-ring {
  width: 28px; height: 28px;
  border: 2.5px solid var(--accent-mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tfc-spin .65s linear infinite;
}

@keyframes tfc-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════════════
   COUPON
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-coupon-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tfc-coupon-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none;
  padding: 15px 18px;
  cursor: pointer;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  text-align: left;
  transition: color .15s;
}

.tfc-coupon-toggle:hover { color: var(--accent); }

.tfc-coupon-toggle__l { display: flex; align-items: center; gap: 8px; }
.tfc-coupon-toggle__l svg { color: var(--accent); flex-shrink: 0; }

.tfc-coupon-arrow {
  flex-shrink: 0;
  transition: transform .22s ease;
}

.tfc-coupon-toggle[aria-expanded="true"] .tfc-coupon-arrow { transform: rotate(180deg); }

.tfc-coupon-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .32s ease;
}

.tfc-coupon-form {
  display: flex; gap: 8px;
  padding: 0 16px 16px;
}

.tfc-coupon-input {
  flex: 1;
  border: 1.5px solid var(--line-2) !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif !important;
  font-size: 13.5px !important; font-weight: 600 !important;
  letter-spacing: .05em; text-transform: uppercase;
  background: var(--bg-2) !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s;
}

.tfc-coupon-input::placeholder { font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--muted-2); }
.tfc-coupon-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 4px var(--accent-soft) !important; }

.tfc-coupon-btn {
  background: var(--ink) !important; color: #fff !important;
  border: none !important; padding: 11px 16px !important;
  border-radius: 10px !important;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif !important;
  font-size: 13px !important; font-weight: 700 !important;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.tfc-coupon-btn:hover { background: #000 !important; }

.tfc-coupon-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 14px;
}

.tfc-coupon-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--success-soft); color: var(--success);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
}

.tfc-coupon-tag svg { flex-shrink: 0; }

.tfc-coupon-tag__remove {
  color: inherit; text-decoration: none;
  font-size: 16px; line-height: 1; opacity: .6;
  transition: opacity .15s;
}
.tfc-coupon-tag__remove:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   SUMMARY PANEL
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 0;
}

.tfc-summary__head {
  font-size: 17px; font-weight: 700;
  color: var(--ink); letter-spacing: -.015em;
  margin: 0 0 20px;
}

/* savings badge */
.tfc-savings {
  display: flex; align-items: center; gap: 8px;
  background: var(--success-soft); color: var(--success);
  border: 1px solid rgba(27,122,74,.12);
  border-radius: 10px; padding: 10px 13px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 16px;
}
.tfc-savings svg { flex-shrink: 0; }
.tfc-savings strong { font-weight: 700; }

/* rows */
.tfc-summary__rows {
  display: flex; flex-direction: column; gap: 9px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tfc-summary__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--ink-2);
}

.tfc-summary__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.tfc-summary__row--discount, .tfc-summary__row--discount * { color: var(--success); }
.tfc-summary__row--muted     { font-size: 12.5px; color: var(--muted); }
.tfc-summary__row--muted span:last-child { font-weight: 500; }

/* total */
.tfc-summary__total {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}

.tfc-summary__total-label {
  font-size: 15px; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}

.tfc-summary__total-sub {
  font-size: 11.5px; color: var(--muted); margin-top: 2px;
}

.tfc-summary__total-amount {
  font-size: 28px; font-weight: 800;
  color: var(--ink); letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  transition: color .2s;
}

.tfc-summary__total-amount.tfc-flash { animation: tfc-total-flash .4s ease; }

@keyframes tfc-total-flash {
  0%   { color: var(--accent); }
  100% { color: var(--ink); }
}

/* ── loyalty points banner ────────────────────────────────────────────────── */

.tfc-points-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 12px; padding: 12px 14px;
  margin-bottom: 16px;
  animation: tfc-fadeup .4s ease both;
}

.tfc-points-banner__star {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--gold); border-radius: 50%;
  display: grid; place-items: center;
}

.tfc-points-banner__star svg { color: #fff; width: 14px; height: 14px; }

.tfc-points-banner__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
  font-size: 12.5px; color: var(--ink-2);
}

.tfc-points-banner__body strong { font-weight: 700; color: var(--ink); }

.tfc-points-banner__worth {
  font-size: 11.5px; color: var(--muted);
}

.tfc-points-banner__worth strong { font-weight: 600; color: var(--ink-2); }

.tfc-points-banner__bal {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none;
  background: rgba(212,160,23,.15); border-radius: 8px;
  padding: 6px 10px; flex-shrink: 0;
  transition: background .15s;
}

.tfc-points-banner__bal:hover { background: rgba(212,160,23,.25); text-decoration: none; }

.tfc-points-banner__bal strong {
  font-size: 16px; font-weight: 800;
  color: var(--ink); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tfc-points-banner__bal span {
  font-size: 10px; font-weight: 600;
  color: var(--muted); text-align: center;
}

.tfc-points-banner__link {
  font-size: 12px; font-weight: 700;
  color: var(--gold); text-decoration: underline;
  white-space: nowrap; flex-shrink: 0;
  transition: color .15s;
}

.tfc-points-banner__link:hover { color: #b08610; }

/* ── checkout button ──────────────────────────────────────────────────────── */

.tfc-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff;
  text-decoration: none;
  padding: 16px 22px;
  border-radius: 14px;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  font-size: 15.5px; font-weight: 700;
  letter-spacing: -.005em; line-height: 1;
  width: 100%;
  transition: filter .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px -10px rgba(39,90,148,.5);
  position: relative; overflow: hidden;
  margin-bottom: 20px;
}

.tfc-checkout-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}

.tfc-checkout-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(39,90,148,.55);
  color: #fff; text-decoration: none;
}

.tfc-checkout-btn:hover::after { transform: translateX(100%); }
.tfc-checkout-btn:active { transform: translateY(0); filter: brightness(.97); }

/* ── trust strip ──────────────────────────────────────────────────────────── */

.tfc-cart-trust {
  display: flex; flex-direction: row; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--line);
  justify-content: space-between;
}

.tfc-cart-trust__item {
  display: flex; align-items: flex-start; gap: 10px;
}

.tfc-cart-trust__item svg {
  flex-shrink: 0; color: var(--accent);
  background: var(--accent-soft);
  padding: 5px; border-radius: 8px;
  width: 28px; height: 28px; box-sizing: content-box;
}

.tfc-cart-trust__item > div {
  display: flex; flex-direction: column; gap: 1px;
}

.tfc-cart-trust__item strong {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}

.tfc-cart-trust__item span {
  font-size: 11.5px; color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   UNDO TOAST
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff;
  border-radius: 14px; padding: 14px 16px;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px -8px rgba(15,27,20,.5);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.2,.64,1);
  white-space: nowrap;
  max-width: calc(100vw - 40px);
}

.tfc-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tfc-toast__msg { flex: 1; min-width: 0; }

.tfc-toast__undo {
  background: none; border: 1.5px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 8px; padding: 6px 12px;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.tfc-toast__undo:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.75); }

.tfc-toast__timer { width: 22px; height: 22px; flex-shrink: 0; }
.tfc-toast__timer-ring  { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 3; }
.tfc-toast__timer-fill  {
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 57; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   GLOBAL ANIMATION HELPERS
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes tfc-fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes tfc-pop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.includes_tax{
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   THIN "HOW ORDERING WORKS" BANNER
   ══════════════════════════════════════════════════════════════════════════ */

.tfc-tb {
  padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 52px);
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  padding-bottom: 0px;
}

.tfc-tb__card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 44px);
  background: #FCFCF8;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
  width: 80%;
  margin: 0 auto;
}

/* ── lead ──────────────────────────────────────────────────────────────────── */

.tfc-tb__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #3F6B52;
  padding: 5px 11px 5px 9px;
  border-radius: 100px;
  background: rgba(63,107,82,.1);
  border: 1px solid rgba(63,107,82,.22);
  margin-bottom: 10px;
}

.tfc-tb__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3F6B52;
  flex-shrink: 0;
  animation: tfc-cb-pulse 2.4s ease-out infinite;
}

.tfc-tb__headline {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

.tfc-tb__lead {
  flex: 0 0 auto;
  min-width: 148px;
}

/* ── steps ─────────────────────────────────────────────────────────────────── */

.tfc-tb__steps {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.tfc-tb__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

/* Connector line between steps */
.tfc-tb__conn {
  flex: 0.8;
  height: 2px;
  background: var(--line);
  align-self: flex-start;
  margin-top: 26px; /* vertically centres with node (56px ÷ 2 − 2px) */
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.tfc-tb__conn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: #3F6B52;
  border-radius: 2px;
  transition: width .55s cubic-bezier(.4,0,.2,1);
}

.tfc-tb__conn--done::after { width: 100%; }

/* Node circle */
.tfc-tb__node {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  position: relative;
  transition: border-color .3s, box-shadow .3s, background .3s, color .3s;
  flex-shrink: 0;
}

/* Small step-number badge (top-right of node, only on upcoming steps) */
.tfc-tb__num {
  position: absolute;
  top: -5px; right: -5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: opacity .2s;
}

/* Checkmark icon shown when done */
.tfc-tb__node-check { display: none; }

@keyframes tfc-tb-node-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(63,107,82,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(63,107,82,0);  }
  100% { box-shadow: 0 0 0 0   rgba(63,107,82,0);   }
}

.tfc-tb__step--active .tfc-tb__node {
  border-color: #3F6B52;
  color: #3F6B52;
  animation: tfc-tb-node-pulse 2s ease-out infinite;
}

.tfc-tb__step--active .tfc-tb__num { display: none; }

.tfc-tb__step--done .tfc-tb__node {
  border-color: #3F6B52;
  background: #3F6B52;
  color: #fff;
}

.tfc-tb__step--done .tfc-tb__num       { display: none; }
.tfc-tb__step--done .tfc-tb__node-icon { display: none; }
.tfc-tb__step--done .tfc-tb__node-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Label */
.tfc-tb__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  transition: color .3s;
}

.tfc-tb__step--active .tfc-tb__label { color: var(--ink); font-weight: 700; }

/* ── CTA button ──────────────────────────────────────────────────────────── */

.tfc-tb__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Work Sans", -apple-system, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}

.tfc-tb__cta:hover { background: #2C4D3A; color: #fff; text-decoration: none; }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .tfc-tb__card { width: 100%; }
}

@media (max-width: 720px) {
  .tfc-tb__card {
    flex-wrap: wrap;
    gap: 20px;
  }

  .tfc-tb__lead { min-width: 0; flex: 1 1 100%; }
  .tfc-tb__steps { flex: 1 1 100%; }
  .tfc-tb__cta { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .tfc-tb__node  { width: 46px; height: 46px; }
  .tfc-tb__conn  { margin-top: 21px; }
  .tfc-tb__label { font-size: 11px; }
  .tfc-tb__card  { padding: 16px; border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .tfc-cb__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "stage"
      "bottom";
    grid-template-rows: unset;
    gap: 24px;
    width: 100%;
  }

  .tfc-cb__lead-top {
    max-width: none;
    text-align: center;
  }

  .tfc-cb__lead-top .tfc-cb__eyebrow { display: inline-flex; }

  .tfc-cb__stage-wrap { max-width: 300px; margin: 0 auto; width: 100%; }

  .tfc-cb__stepper { display: none; }
  .tfc-cb__mob-nav { display: flex; flex-direction: column; align-items: center; gap: 20px; }

  .tfc-cb__lead-bottom .tfc-cb__cta { display: flex; justify-content: center; margin-top: 4px; }
}

/* ── 80% content zone on large desktops (backgrounds stay full-width) ──────── */
@media (min-width: 1101px) {
  .tfc-cart__col--items   { padding-left: min(10vw, 192px); }
  .tfc-cart__col--summary { padding-right: min(10vw, 192px); }
}

@media (max-width: 1100px) {
  .tfc-cart__col--items   { padding: 32px 32px 60px; }
  .tfc-cart__col--summary { flex: 0 0 360px; width: 360px; padding: 32px 28px 60px; position: static; height: auto; overflow: visible; }
}

@media (max-width: 940px) {
  .tfc-tb { margin-left: 24px; margin-right: 24px;}
  .tfc-cart__layout { flex-direction: column; }

  .tfc-cart__col--items,
  .tfc-cart__col--summary { flex: none; width: 100%; max-width: 100%; border-right: none; position: static; height: auto; overflow: visible; }

  .tfc-cart__col--items   { padding: 28px 24px 32px; border-bottom: 1px solid var(--line); }
  .tfc-cart__col--summary { padding: 24px 24px 48px; }

  .tfc-cart__col--items > * { max-width: 100%; margin-left: 0; margin-right: 0; }

  .tfc-cart-trust__item { flex-direction: column; }
  .tfc-cart-trust { align-items: center; }
}

@media (max-width: 600px) {
  .tfc-cb__chip,
  .tfc-cb__ring-badge { display: none; }

  .tfc-cart__col--items,
  .tfc-cart__col--summary { padding: 20px 16px 36px; }

  .tfc-cart__title { font-size: 22px; }

  .tfc-item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 14px 14px;
  }

  .tfc-item__thumb { width: 72px; height: 72px; }

  .tfc-item__sub {
    grid-column: 1 / 2;
    grid-row: 2;
    font-size: 16px;
    align-self: center;
  }

  .tfc-item__info { grid-column: 2 / 3; grid-row: 1 / 3; }

  .tfc-cart__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tfc-cart__continue { align-self: flex-end; }

  .tfc-toast { bottom: 16px; border-radius: 12px; }

  .tfc-summary { border-radius: var(--radius-inner); }
}
