/* ==========================================================================
   Employee gifting flow — UI 1 to UI 4
   ========================================================================== */

body.employee {
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Header (compact — this is a form-first portal, not a marketing site)
   -------------------------------------------------------------------------- */

.emp-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.emp-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.emp-header__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: right;
  line-height: 1.35;
}
.emp-header__meta strong { color: var(--navy-900); display: block; font-size: var(--fs-sm); }

.emp-main { flex: 1 0 auto; padding: var(--sp-5) 0 var(--sp-8); }

.emp-footer {
  flex: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--sp-3) 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.emp-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Step indicator
   -------------------------------------------------------------------------- */

.steps {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
  list-style: none;
  padding: 0;
}
.steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted-light);
}
.steps__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-sunken);
  color: var(--muted);
  font-size: 11px;
  flex: none;
}
.steps__item--done .steps__num { background: var(--navy-900); color: #fff; }
.steps__item--done { color: var(--muted); }
.steps__item--current .steps__num { background: var(--brand-yellow); color: var(--navy-900); }
.steps__item--current { color: var(--navy-900); }
.steps__bar { flex: 1; height: 2px; background: var(--border); min-width: 12px; }
.steps__item--done + .steps__bar { background: var(--navy-900); }

@media (max-width: 640px) {
  .steps__label { display: none; }
  .steps { margin-bottom: var(--sp-3); }
}

/* ==========================================================================
   UI-1 — Employee details form (split layout)
   ========================================================================== */

.register {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

.register__brand {
  /* Brand blue deepening toward the corner — depth without a gradient that
     fights the logo. */
  background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-950) 100%);
  color: #fff;
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Restrained geometric cue instead of a decorative illustration: the gold
   keyline of the L&T disc, echoed oversize. */
.register__brand::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  border: 40px solid rgba(255, 199, 44, .10);
  border-radius: 50%;
  pointer-events: none;
}
/* Gold rule pinned to the panel edge — the campaign's signature cue. */
.register__brand::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--brand-gold);
}
.register__brand-inner { max-width: 460px; margin-left: auto; position: relative; z-index: 1; }

/* The lockup is inline-flex by default, which would let the eyebrow sit on the
   same line as the logo on wide viewports. Block-level here so the eyebrow
   always starts its own line. */
.register__brand .brand-lockup { display: flex; }
@media (min-width: 1024px) {
  .register__brand .brand-lockup__logo { height: 44px; }
}

.register__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: var(--sp-2);
}
.register__title {
  font-size: var(--fs-display);
  color: #fff;
  margin-bottom: var(--sp-2);
  line-height: 1.18;
}
.register__lede {
  color: rgba(255, 255, 255, .80);
  font-size: 15.5px;
  margin-bottom: var(--sp-4);
  max-width: 42ch;
}

.allocation-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 199, 44, .38);
  border-radius: var(--radius-card);
  padding: var(--sp-2) var(--sp-3);
}
.allocation-chip__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.62);
  font-weight: 600;
}
.allocation-chip__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-yellow);
  line-height: 1.1;
}

.register__points {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
  display: grid;
  gap: 12px;
}
.register__points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.74);
}
.register__points svg { flex: none; margin-top: 3px; color: var(--brand-yellow); }

.register__form {
  background: var(--surface);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.register__form-inner { width: 100%; max-width: 420px; }
.register__form h2 { font-size: var(--fs-h1); margin-bottom: 6px; }
.register__form-sub { color: var(--muted); margin-bottom: var(--sp-4); }

/* Tablet — stack, brand block shrinks to a banner */
@media (max-width: 1023px) {
  .register { grid-template-columns: 1fr; min-height: 0; }
  .register__brand { padding: var(--sp-5) var(--sp-4); }
  .register__brand-inner { margin-left: 0; max-width: none; }
  .register__title { font-size: 26px; }
  .register__points { display: none; }
  .register__form { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
  .register__form-inner { max-width: 520px; margin: 0 auto; }
}

/* Mobile — the brand block becomes a compact header so the form starts
   immediately. No hero, no scrolling to find the first input. */
@media (max-width: 640px) {
  .register__brand { padding: var(--sp-3) var(--sp-2) var(--sp-3); }
  .register__brand::after { display: none; }
  .register__title { font-size: 21px; margin-bottom: 6px; }
  .register__lede { display: none; }
  .register__eyebrow { margin-bottom: 6px; }
  .allocation-chip { padding: 10px var(--sp-2); gap: var(--sp-1); }
  .allocation-chip__value { font-size: 20px; }
  .register__form { padding: var(--sp-3) var(--sp-2) var(--sp-6); }
  .register__form h2 { font-size: 20px; }
  .register__form-sub { margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
  .field { margin-bottom: var(--sp-2); }
}

/* ==========================================================================
   UI-2 — Gift selection
   ========================================================================== */

.page-head { margin-bottom: var(--sp-4); }
.page-head h1 { font-size: var(--fs-h1); margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 62ch; }

/* The allocation card is the loudest element on the screen — yellow field,
   navy text. This is the one place a large yellow surface is used. */
.allocation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: var(--brand-yellow);
  border-radius: var(--radius-card);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.allocation-card__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--on-gold-soft);
  margin-bottom: 2px;
}
.allocation-card__value {
  font-size: 34px;
  font-weight: 700;
  color: var(--on-gold);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.allocation-card__note {
  font-size: var(--fs-sm);
  color: var(--on-gold-soft);
  max-width: 34ch;
  text-align: right;
}
@media (max-width: 640px) {
  .allocation-card { padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
  .allocation-card__value { font-size: 27px; }
  .allocation-card__note { display: none; }
}

/* Entitlement bar — shown instead of the allocation card when prices are
   hidden (SHOW_GIFT_VALUE = false). */
.entitlement-bar {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-yellow);
  border-radius: var(--radius-card);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.entitlement-bar__icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-yellow-soft);
  color: var(--navy-900);
  display: grid; place-items: center;
}
.entitlement-bar strong {
  display: block;
  color: var(--navy-900);
  font-size: var(--fs-h3);
  margin-bottom: 2px;
}
.entitlement-bar span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 640px) {
  .entitlement-bar { padding: 12px var(--sp-2); margin-bottom: var(--sp-3); }
  .entitlement-bar strong { font-size: var(--fs-body); }
}

/* --- Product grid: 3 + 2 on desktop, 2 up on tablet, 1 up on mobile ------ */

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 1023px) { .gift-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .gift-grid { grid-template-columns: 1fr; gap: var(--sp-2); } }

.gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.gift-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.gift-card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-sunken);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.gift-card__media img { width: 100%; height: 100%; object-fit: cover; }

.gift-card__body {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gift-card__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.gift-card__desc {
  font-size: var(--fs-sm);
  color: var(--muted);
  /* Clamp keeps all five cards the same height regardless of copy length. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin-bottom: var(--sp-2);
}
.gift-card__value {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
}
.gift-card__value small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}
.gift-card__brand {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 2px;
}
.gift-card__spec {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--sp-1);
  font-variant-numeric: tabular-nums;
}
.gift-card__features {
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
  display: grid;
  gap: 4px;
}
.gift-card__features li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.gift-card__features svg { flex: none; margin-top: 3px; color: var(--ok); }

.gift-card__action { margin-top: auto; }

.gift-card__video-btn {
  /* Sits above .gift-card__label so the tap opens the video, not the radio. */
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: var(--sp-1);
  padding: 8px;
  background: none;
  border: 0;
  color: var(--navy-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.gift-card__video-btn:hover { background: var(--surface-alt); }

/* --- Colour swatches ----------------------------------------------------- */

.swatches {
  position: relative;
  z-index: 4;          /* above the full-card label so swatches are tappable */
  border-top: 1px solid var(--border);
  padding-top: var(--sp-1);
  margin-bottom: var(--sp-2);
}
.swatches__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: 8px;
}
.swatches__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.swatches__value {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy-900);
  text-align: right;
}
.swatches__row { display: flex; flex-wrap: wrap; gap: 8px; }

.swatch {
  width: 30px; height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--sw, #ccc);
  cursor: pointer;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--navy-900);
}
.swatch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-yellow);
}
/* Mobile: bigger hit area without changing the visual size. */
@media (max-width: 640px) {
  .swatch { width: 34px; height: 34px; }
  .swatches__row { gap: 10px; }
}

.order-facts__colour {
  display: flex;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 4px;
}

.allocation-chip__value--text { font-size: 19px; color: #fff; }

/* --- Video modal --------------------------------------------------------- */

.video-modal { position: fixed; inset: 0; z-index: 200; }
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 27, 71, .74);
}
.video-modal__panel {
  position: relative;
  max-width: 760px;
  margin: 6vh auto 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 12px var(--sp-2);
  border-bottom: 1px solid var(--border);
}
.video-modal__head strong { color: var(--navy-900); font-size: var(--fs-h3); }
.video-modal video { display: block; width: 100%; max-height: 70vh; background: #000; }
@media (max-width: 640px) {
  .video-modal__panel { margin: 0; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
  .video-modal video { flex: 1; max-height: none; object-fit: contain; }
}

/* Whole card is the control — the button inside is presentational. */
.gift-card__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.gift-card__label {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
  border-radius: var(--radius-card);
}

.gift-card__check {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 3;
}

/* Selected state: navy border + yellow check + lift */
.gift-card.is-selected {
  border-color: var(--navy-900);
  box-shadow: 0 0 0 1px var(--navy-900), var(--shadow-md);
  transform: translateY(-2px);
}
.gift-card.is-selected .gift-card__check { opacity: 1; transform: scale(1); }
.gift-card.is-selected .btn--secondary {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.gift-card__input:focus-visible ~ .gift-card__label {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

.gift-card.is-unavailable { opacity: .55; pointer-events: none; }
.gift-card__soldout {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
}

/* --- Sticky action bar --------------------------------------------------- */

.action-bar {
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.action-bar__summary { font-size: var(--fs-sm); color: var(--muted); }
.action-bar__summary strong { color: var(--navy-900); display: block; font-size: var(--fs-body); }

/* On mobile the CTA docks to the bottom of the viewport so it is always
   thumb-reachable, whatever the scroll position. */
@media (max-width: 640px) {
  .action-bar {
    position: sticky;
    bottom: 0;
    margin: var(--sp-3) calc(var(--sp-3) * -1) 0;
    border-radius: 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    box-shadow: 0 -4px 16px rgba(0, 36, 97, .12);
    padding: 12px var(--sp-3);
    z-index: 30;
  }
  .action-bar .btn { flex: 1; }
  .action-bar__summary { display: none; }
  .emp-main { padding-bottom: var(--sp-3); }
}

/* ==========================================================================
   UI-3 — Delivery + order summary
   ========================================================================== */

.delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: var(--sp-4);
  align-items: start;
}
@media (max-width: 1023px) { .delivery-layout { grid-template-columns: 1fr; } }

.summary-card { position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
@media (max-width: 1023px) { .summary-card { position: static; } }

.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list dt, .summary-list .k { color: var(--muted); flex: none; }
.summary-list .v { color: var(--navy-900); font-weight: 600; text-align: right; }

.summary-highlight {
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft-border);
  border-radius: var(--radius-ctl);
  padding: 12px var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}
.summary-highlight .k {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--on-gold-soft);
}
.summary-highlight .v { font-size: 22px; font-weight: 700; color: var(--on-gold); }

.summary-product {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-1);
}
.summary-product__thumb {
  width: 60px; height: 60px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid; place-items: center;
}
.summary-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-product__name { font-weight: 600; color: var(--navy-900); font-size: var(--fs-sm); }
.summary-product__meta { font-size: var(--fs-xs); color: var(--muted); }

.confirm-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  padding: 12px var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
  margin: var(--sp-2) 0;
}
.confirm-note svg { flex: none; margin-top: 2px; color: var(--navy-700); }

.form-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.form-actions .btn--primary { flex: 1; }
@media (max-width: 640px) {
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

/* ==========================================================================
   UI-4 — Confirmation / my order
   ========================================================================== */

.order-wrap { max-width: 860px; margin: 0 auto; }

.success-head { text-align: center; margin-bottom: var(--sp-4); }
.success-seal {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--brand-yellow);
  display: grid; place-items: center;
  margin: 0 auto var(--sp-3);
}
.success-head h1 { font-size: var(--fs-h1); margin-bottom: 8px; }
.success-head p { color: var(--muted); max-width: 52ch; margin: 0 auto; }

.claimed-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft-border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-ctl);
  padding: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.claimed-notice svg { flex: none; margin-top: 2px; color: var(--navy-900); }
.claimed-notice strong { display: block; color: var(--navy-900); margin-bottom: 2px; }
.claimed-notice p { font-size: var(--fs-sm); color: var(--on-gold-soft); }

.order-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--sp-3);
}
.order-facts__item { padding: var(--sp-3); border-right: 1px solid var(--border); }
.order-facts__item:last-child { border-right: 0; }
.order-facts__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.order-facts__value { font-size: var(--fs-h3); font-weight: 700; color: var(--navy-900); }
@media (max-width: 700px) {
  .order-facts { grid-template-columns: 1fr; }
  .order-facts__item { border-right: 0; border-bottom: 1px solid var(--border); padding: var(--sp-2); }
  .order-facts__item:last-child { border-bottom: 0; }
}

/* --- Tracking timeline: horizontal on desktop, vertical on mobile -------- */

.timeline { padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.timeline__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.timeline__step {
  position: relative;
  text-align: center;
  padding-top: 40px;
}
/* Connector line drawn behind the nodes */
.timeline__step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.timeline__step:first-child::before { display: none; }
.timeline__step.is-done::before,
.timeline__step.is-current::before { background: var(--navy-900); }

.timeline__node {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: transparent;
  z-index: 1;
}
.timeline__step.is-done .timeline__node {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.timeline__step.is-current .timeline__node {
  background: var(--navy-900);
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(255, 199, 44, .32);
}
.timeline__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted-light);
  padding: 0 4px;
}
.timeline__step.is-done .timeline__label { color: var(--muted); }
.timeline__step.is-current .timeline__label { color: var(--navy-900); }
.timeline__time { font-size: var(--fs-xs); color: var(--muted-light); margin-top: 2px; }

@media (max-width: 700px) {
  .timeline__track { grid-template-columns: 1fr; }
  .timeline__step {
    text-align: left;
    padding: 0 0 var(--sp-3) 46px;
    min-height: 46px;
  }
  .timeline__step:last-child { padding-bottom: 0; }
  .timeline__step::before {
    top: 30px; left: 14px;
    width: 2px; height: calc(100% - 30px);
  }
  .timeline__step:first-child::before { display: block; }
  .timeline__step::before { display: block; }
  /* On the vertical axis the connector belongs to the step above it. */
  .timeline__step:last-child::before { display: none; }
  .timeline__node { top: 0; left: 0; transform: none; }
}

.exception-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--danger-soft);
  border: 1px solid #F3C9C4;
  border-radius: var(--radius-ctl);
  padding: 12px var(--sp-2);
  color: #96271C;
  font-size: var(--fs-sm);
  margin: 0 var(--sp-3) var(--sp-3);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } }

.kv { list-style: none; margin: 0; padding: 0; }
.kv li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--sp-2);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-weight: 500; word-break: break-word; }
@media (max-width: 480px) {
  .kv li { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   Gift Points — balance, redemption, remainder

   Points are the employee-facing currency: 1 point = ₹1 of the campaign
   allocation. The balance is the allocation, the spend is the gift's value,
   and both are snapshotted onto the order the moment it is placed — so the
   deducted figures on the confirmation screen can never drift.
   ========================================================================== */

.points-wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: var(--sp-3);
  align-items: center;
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 62%);
  border-radius: var(--radius-card);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.points-wallet__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--on-gold-soft);
  margin-bottom: var(--sp-05);
}

/* Balance figure: tabular so the number does not jitter as it updates. */
.points-wallet__value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--on-gold);
  line-height: 1;
}
.points-wallet__value strong {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.points-wallet__value span {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: .02em;
}
.points-wallet__note {
  font-size: var(--fs-sm);
  color: var(--on-gold-soft);
  max-width: 44ch;
  margin-top: var(--sp-1);
}

/* The live ledger panel sitting inside the gold card. */
.points-wallet__ledger {
  background: rgba(255, 255, 255, .60);
  border: 1px solid rgba(0, 36, 97, .12);
  border-radius: var(--radius-ctl);
  padding: 12px var(--sp-2);
}

.points-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  padding: 5px 0;
}
.points-row .k { color: var(--on-gold-soft); }
.points-row .v {
  font-weight: 600;
  color: var(--on-gold);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.points-row--total {
  border-top: 1px solid rgba(0, 36, 97, .16);
  margin-top: 5px;
  padding-top: 9px;
}
.points-row--total .k { font-weight: 700; color: var(--on-gold); }
.points-row--total .v { font-size: var(--fs-h3); font-weight: 700; }
/* A debit is signed and negative — never a bare number. */
.points-row--debit .v { color: #8A4B00; }

@media (max-width: 900px) {
  .points-wallet { grid-template-columns: 1fr; gap: var(--sp-2); align-items: stretch; }
}
@media (max-width: 640px) {
  .points-wallet { padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
  .points-wallet__value strong { font-size: 32px; }
  .points-wallet__note { display: none; }
}

/* --- Per-gift cost pill -------------------------------------------------- */

.points-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft-border);
  color: var(--on-gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-2);
  align-self: flex-start;
}
.points-pill small { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; }
/* Selected card promotes its pill to solid gold. */
.gift-card.is-selected .points-pill {
  background: var(--brand-gold);
  border-color: var(--gold-600);
}

/* --- Neutral ledger: delivery summary + order confirmation -------------- */

.points-ledger {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-ctl);
  padding: 12px var(--sp-2);
  margin-bottom: var(--sp-2);
}
.points-ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  margin-bottom: var(--sp-1);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--border);
}
.points-ledger__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.points-ledger .points-row .k { color: var(--muted); }
.points-ledger .points-row .v { color: var(--brand-blue); }
.points-ledger .points-row--debit .v { color: #8A4B00; }
.points-ledger .points-row--total { border-top-color: var(--border); }
.points-ledger .points-row--total .k { color: var(--brand-blue); }

/* "Points debited" stamp on the confirmation screen. Green because the
   deduction is a completed, successful transaction — not a warning. */
.points-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--ok-soft);
  color: var(--ok);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.points-stamp svg { flex: none; }

/* Meter showing how much of the balance the chosen gift consumes. */
.points-meter {
  height: 6px;
  background: rgba(0, 36, 97, .14);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 10px;
}
.points-meter__fill {
  height: 100%;
  width: 0;
  background: var(--blue-700);
  border-radius: inherit;
  transition: width .25s cubic-bezier(.4, 0, .2, 1);
}
.points-ledger .points-meter { background: var(--surface-sunken); }

/* Empty / unavailable state */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-3);
  max-width: 480px;
  margin: 0 auto;
}
.empty-state__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--muted);
  display: grid; place-items: center;
  margin: 0 auto var(--sp-2);
}
.empty-state h1 { font-size: var(--fs-h2); margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
