/* flow.css — the order flow: select-posts, checkout, order confirmation.
   Layered on home.css and scoped to .hx-main.hx-flow so it never touches site.css, the navbar or the footer.
   Behaviour is the existing checkout / select-posts scripts in public/js/siteInteractions.js; every data-* hook
   and every class those scripts create (checkout-item*, cart-qty, cart-empty, svc-post-*, svc-comment-*) is kept
   and restyled here. Custom properties are all --hx-* (the home tests forbid anything else). */

/* ============================================================
   shared ▸ platform tints, page head, flow strip
   ============================================================ */
/* home.css clips .hx-main horizontally (overflow: hidden auto), which makes it the scroll container for
   anything sticky inside — the ticket and the summary need the viewport, so these pages leave overflow alone
   (nothing here draws outside the wrap; the width sweeps at 360-1366 confirm it). */
.hx-main.hx-flow { position: relative; overflow: visible; padding-bottom: clamp(48px, 6vw, 84px); }
.hx-main.hx-flow[data-platform="instagram"] { --hx-g1: var(--hx-ig-a); --hx-g2: var(--hx-ig-b); }
.hx-main.hx-flow[data-platform="tiktok"] { --hx-g1: var(--hx-tt-a); --hx-g2: var(--hx-tt-b); }
.hx-main.hx-flow[data-platform="facebook"] { --hx-g1: #2f8cff; --hx-g2: var(--hx-fb); }
.hx-main.hx-flow[data-platform="youtube"] { --hx-g1: #ff5a4e; --hx-g2: var(--hx-yt); }

.hx-main.hx-flow .hx-flow-head {
  display: grid;
  gap: 14px;
  padding-block: clamp(34px, 4.6vw, 60px) clamp(14px, 2vw, 22px);
}
.hx-main.hx-flow .hx-flow-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 14ch;
}
.hx-main.hx-flow .hx-flow-sub { margin: 0; max-width: 56ch; color: var(--hx-body); font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.6; }

/* the three-step strip: Account → Posts → Checkout. The current step carries the platform gradient;
   completed ones a tick; the rest stay quiet. */
.hx-main.hx-flow .hx-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-main.hx-flow .hx-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: var(--hx-glass-solid);
  border: 1px solid var(--hx-glass-line);
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-muted);
}
.hx-main.hx-flow .hx-flow-step i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.66rem;
  background: #f4e6df;
  color: var(--hx-body);
}
.hx-main.hx-flow .hx-flow-step.is-done { color: var(--hx-body); }
.hx-main.hx-flow .hx-flow-step.is-done i { background: #e3f6ea; color: #157a3d; }
.hx-main.hx-flow .hx-flow-step.is-now {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--hx-g1), var(--hx-g2));
  box-shadow: var(--hx-shadow-pop);
}
.hx-main.hx-flow .hx-flow-step.is-now i { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hx-main.hx-flow .hx-flow-step-gap { width: 18px; height: 1px; background: rgba(23, 18, 14, 0.14); }

.hx-main.hx-flow .hx-co-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.hx-main.hx-flow .hx-co-head-row > div { display: grid; gap: 10px; }

/* glass panel primitive used by both pages */
.hx-main.hx-flow .hx-flow-card {
  position: relative;
  background: var(--hx-glass);
  border: 1px solid var(--hx-glass-line);
  border-radius: var(--hx-radius-card);
  box-shadow: var(--hx-glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hx-main.hx-flow .hx-flow-label {
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hx-muted);
}
.hx-main.hx-flow .hx-flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 18, 14, 0.08);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--hx-ink);
}
.hx-main.hx-flow .hx-flow-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hx-g1), var(--hx-g2));
}

/* form primitives (checkout fields, coupon, comment editors) */
.hx-main.hx-flow .hx-flow-field { display: grid; gap: 6px; }
.hx-main.hx-flow .hx-flow-field > span { font-size: 0.82rem; font-weight: 700; color: var(--hx-body); }
.hx-main.hx-flow .hx-flow-input,
.hx-main.hx-flow .checkout-email-input,
.hx-main.hx-flow .checkout-coupon-input,
.hx-main.hx-flow .svc-comment-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(23, 18, 14, 0.12);
  background: #fff;
  color: var(--hx-ink);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hx-main.hx-flow .hx-flow-input::placeholder,
.hx-main.hx-flow .checkout-email-input::placeholder,
.hx-main.hx-flow .checkout-coupon-input::placeholder,
.hx-main.hx-flow .svc-comment-textarea::placeholder { color: #a08f88; }
.hx-main.hx-flow .hx-flow-input:focus-visible,
.hx-main.hx-flow .checkout-email-input:focus-visible,
.hx-main.hx-flow .checkout-coupon-input:focus-visible,
.hx-main.hx-flow .svc-comment-textarea:focus-visible {
  outline: none;
  border-color: var(--hx-g2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 18%, transparent);
}
.hx-main.hx-flow .checkout-email-input--file { padding: 10px 12px; min-height: 0; font-size: 0.9rem; }
.hx-main.hx-flow .checkout-email-input--file::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 0;
  background: #f4e6df;
  color: var(--hx-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* the quiet secondary button */
.hx-main.hx-flow .hx-flow-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  border: 1.5px solid rgba(23, 18, 14, 0.14);
  background: #fff;
  color: var(--hx-ink);
  font-family: var(--hx-font-display), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.hx-main.hx-flow .hx-flow-btn-ghost:hover { border-color: var(--hx-g2); transform: translateY(-1px); }
.hx-main.hx-flow .hx-flow-btn-ghost:active { transform: translateY(0); }

/* status: spinner, loading copy, error box */
.hx-main.hx-flow .svc-post-select-state,
.hx-main.hx-flow .hx-flow-state { display: grid; gap: 10px; justify-items: center; }
.hx-main.hx-flow .svc-post-select-state:empty { display: none; }
.hx-main.hx-flow .svc-spinner { display: inline-grid; place-items: center; color: var(--hx-g2); }
.hx-main.hx-flow .svc-spinner svg { width: 26px; height: 26px; animation: hx-spin 0.9s linear infinite; }
.hx-main.hx-flow .svc-loading-msg { font-weight: 700; color: var(--hx-body); font-size: 0.92rem; }
.hx-main.hx-flow .svc-error-msg,
.hx-main.hx-flow .checkout-coupon-status.is-error,
.hx-main.hx-flow .checkout-wise-status.is-error {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff0ee;
  border: 1px solid #ffd2cc;
  color: #b42318;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.hx-main.hx-flow .svc-error-msg[hidden] { display: none; }

/* ============================================================
   select-posts ▸ the studio: stage (grid) + ticket (rail)
   ============================================================ */
.hx-main.hx-flow .hx-flow-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}
.hx-main.hx-flow .hx-flow-stage { padding: clamp(16px, 2vw, 24px); display: grid; gap: 16px; }
.hx-main.hx-flow .hx-flow-stagebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}
.hx-main.hx-flow .hx-flow-stagebar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hx-main.hx-flow .hx-flow-stagebar h2, .hx-main.hx-flow .hx-flow-stagebar .hx-as-h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.hx-main.hx-flow .hx-flow-hint { font-size: 0.88rem; color: var(--hx-muted); }

/* the grid */
.hx-main.hx-flow .svc-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}
.hx-main.hx-flow .svc-post-card {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid transparent;
  background: #f1e9e4;
  cursor: pointer;
  box-shadow: 0 10px 24px -18px rgba(23, 18, 14, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hx-main.hx-flow .svc-post-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(23, 18, 14, 0.5); }
.hx-main.hx-flow .svc-post-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--hx-g2) 45%, transparent); outline-offset: 3px; }
.hx-main.hx-flow .svc-post-card.is-selected {
  border-color: var(--hx-g2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 20%, transparent), 0 18px 34px -18px rgba(23, 18, 14, 0.5);
}
.hx-main.hx-flow .svc-post-thumb { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hx-main.hx-flow .svc-post-card.is-selected .svc-post-thumb { transform: scale(1.04); }
.hx-main.hx-flow .svc-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0.85;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.hx-main.hx-flow .svc-post-card.is-selected .svc-post-overlay {
  opacity: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hx-g1) 12%, transparent) 0%, color-mix(in srgb, var(--hx-g2) 55%, rgba(0, 0, 0, 0.5)) 100%);
}
.hx-main.hx-flow .svc-post-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--hx-ink);
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hx-main.hx-flow .svc-post-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--hx-g1), var(--hx-g2));
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hx-main.hx-flow .svc-post-card.is-selected .svc-post-check { opacity: 1; transform: scale(1); }
.hx-main.hx-flow .svc-post-likes {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hx-main.hx-flow .svc-post-card.is-selected .svc-post-likes { opacity: 1; transform: none; }
.hx-main.hx-flow .svc-post-likes[hidden] { display: none; }
.hx-main.hx-flow .svc-post-heart { display: inline-grid; place-items: center; }
.hx-main.hx-flow .svc-post-heart svg { width: 14px; height: 14px; }

/* placeholder tiles + the fade-in of arriving cards */
.hx-main.hx-flow .svc-post-skeleton {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: linear-gradient(100deg, #f4ece7 30%, #ebe1da 45%, #f4ece7 60%);
  background-size: 220% 100%;
  animation: hx-flow-shimmer 1.3s ease-in-out infinite;
}
.hx-main.hx-flow .svc-post-card.is-entering { animation: hx-flow-cardin 340ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hx-main.hx-flow .svc-post-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--hx-body);
  border-radius: 18px;
  border: 1px dashed rgba(23, 18, 14, 0.16);
}
.hx-main.hx-flow .svc-post-select-load-more-wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--hx-muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.hx-main.hx-flow .svc-post-select-load-more-wrap[hidden] { display: none; }
.hx-main.hx-flow .svc-post-select-load-more-wrap.is-error { color: #b42318; }
.hx-main.hx-flow .svc-post-select-load-more-spinner { opacity: 0; transition: opacity 0.2s ease; }
.hx-main.hx-flow .svc-post-select-load-more-spinner svg { width: 18px; height: 18px; }
.hx-main.hx-flow .svc-post-select-load-more-wrap.is-loading .svc-post-select-load-more-spinner { opacity: 1; }

/* the comment editors sit above the grid for the comments service */
.hx-main.hx-flow .svc-comment-wrap {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(23, 18, 14, 0.08);
  scroll-margin-top: calc(var(--promo-h, 0px) + var(--nav-h, 56px) + 16px);
}
.hx-main.hx-flow .svc-comment-wrap[hidden] { display: none; }
.hx-main.hx-flow .svc-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.hx-main.hx-flow .svc-comment-title { font-family: var(--hx-font-display), sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--hx-ink); }
.hx-main.hx-flow .svc-comment-sub { font-size: 0.8rem; font-weight: 600; color: var(--hx-muted); }
.hx-main.hx-flow .svc-comment-list { display: grid; gap: 12px; }
.hx-main.hx-flow .svc-comment-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #fbf6f2; border: 1px solid rgba(23, 18, 14, 0.06); }
.hx-main.hx-flow .svc-comment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hx-main.hx-flow .svc-comment-card-top-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx-main.hx-flow .svc-comment-thumb { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #ece2db; }
.hx-main.hx-flow .svc-comment-card-title { font-weight: 700; color: var(--hx-ink); font-size: 0.95rem; }
.hx-main.hx-flow .svc-comment-card-qty {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 18, 14, 0.08);
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--hx-body);
}
.hx-main.hx-flow .svc-comment-textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.hx-main.hx-flow .svc-comment-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--hx-muted); }

/* the ticket */
.hx-main.hx-flow .hx-flow-ticket {
  position: sticky;
  top: calc(var(--promo-h, 0px) + var(--nav-h, 56px) + 18px);
  display: grid;
  gap: 16px;
  padding: 20px;
}
.hx-main.hx-flow .hx-flow-ticket::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--hx-radius-card) var(--hx-radius-card) 0 0;
  background: linear-gradient(90deg, var(--hx-g1), var(--hx-g2));
}
.hx-main.hx-flow .hx-flow-ticket-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-main.hx-flow .hx-flow-ticket-ava {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--hx-g1), var(--hx-g2));
}
.hx-main.hx-flow .hx-flow-ticket-ava img,
.hx-main.hx-flow .hx-flow-ticket-ava span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  background: #fff;
  font-family: var(--hx-font-display), sans-serif;
  font-weight: 800;
  color: var(--hx-g2);
  text-transform: uppercase;
}
.hx-main.hx-flow .hx-flow-ticket-ava img[hidden],
.hx-main.hx-flow .hx-flow-ticket-ava span[hidden] { display: none; }
.hx-main.hx-flow .hx-flow-ticket-handle { display: grid; min-width: 0; }
.hx-main.hx-flow .hx-flow-ticket-handle strong { font-size: 1rem; color: var(--hx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-main.hx-flow .hx-flow-ticket-handle span { font-size: 0.8rem; color: var(--hx-muted); }
.hx-main.hx-flow .hx-flow-ticket-pkg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hx-main.hx-flow .hx-flow-ticket-pkg strong {
  font-family: var(--hx-font-display), sans-serif;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--hx-g1), var(--hx-g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-main.hx-flow .hx-flow-ticket-pkg span { font-weight: 700; color: var(--hx-body); }
.hx-main.hx-flow .hx-flow-ticket-list { display: grid; gap: 8px; max-height: 236px; overflow: auto; padding-right: 2px; }
.hx-main.hx-flow .hx-flow-ticket-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.hx-main.hx-flow .hx-flow-ticket-thumb { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: #ece2db; }
.hx-main.hx-flow .hx-flow-ticket-name { font-size: 0.86rem; color: var(--hx-body); }
.hx-main.hx-flow .hx-flow-ticket-amount { font-family: var(--hx-font-mono), monospace; font-size: 0.74rem; color: var(--hx-ink); white-space: nowrap; }
.hx-main.hx-flow .hx-flow-ticket-empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(23, 18, 14, 0.16);
  font-size: 0.86rem;
  color: var(--hx-muted);
  text-align: center;
}
.hx-main.hx-flow .hx-flow-ticket-empty[hidden] { display: none; }
.hx-main.hx-flow .hx-flow-ticket-foot { display: grid; gap: 10px; }
.hx-main.hx-flow .hx-flow-ticket-count { font-size: 0.86rem; font-weight: 700; color: var(--hx-body); text-align: center; }
.hx-main.hx-flow .hx-flow-ticket .hx-btn { width: 100%; }
.hx-main.hx-flow .hx-flow-ticket .hx-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }

/* comments: used-of-total ring */
.hx-main.hx-flow .hx-flow-ring { display: flex; align-items: center; gap: 12px; }
.hx-main.hx-flow .hx-flow-ring[hidden] { display: none; }
.hx-main.hx-flow .hx-flow-ring-dial {
  --hx-p: 0%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--hx-g2) var(--hx-p), #f1e6df 0);
  display: grid;
  place-items: center;
  transition: --hx-p 0.4s ease;
}
.hx-main.hx-flow .hx-flow-ring-dial::after { content: ""; width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.hx-main.hx-flow .hx-flow-ring-text { display: grid; }
.hx-main.hx-flow .hx-flow-ring-text strong { font-family: var(--hx-font-mono), monospace; font-size: 0.86rem; color: var(--hx-ink); }
.hx-main.hx-flow .hx-flow-ring-text span { font-size: 0.78rem; color: var(--hx-muted); }

/* ============================================================
   checkout ▸ items + summary
   ============================================================ */
.hx-main.hx-flow .hx-co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}
.hx-main.hx-flow .hx-co-left { display: grid; gap: clamp(16px, 2vw, 22px); min-width: 0; }
.hx-main.hx-flow .hx-co-panel { padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; }
.hx-main.hx-flow .hx-co-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.hx-main.hx-flow .hx-co-panel-head h2, .hx-main.hx-flow .hx-co-panel-head .hx-as-h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
.hx-main.hx-flow .checkout-items { display: grid; gap: 12px; }
.hx-main.hx-flow .cart-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--hx-body);
  border-radius: 18px;
  border: 1px dashed rgba(23, 18, 14, 0.16);
}
.hx-main.hx-flow .checkout-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(23, 18, 14, 0.08);
  box-shadow: 0 14px 30px -26px rgba(23, 18, 14, 0.5);
}
.hx-main.hx-flow .checkout-item-service { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-main.hx-flow .checkout-item-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--hx-g1), var(--hx-g2));
  font-family: var(--hx-font-display), sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 20px -12px rgba(232, 71, 79, 0.6);
}
.hx-main.hx-flow .checkout-item-user { display: grid; min-width: 0; }
.hx-main.hx-flow .checkout-item-user strong { font-size: 0.98rem; color: var(--hx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-main.hx-flow .checkout-item-user span { font-size: 0.8rem; color: var(--hx-muted); }
.hx-main.hx-flow .checkout-item-product { display: grid; gap: 10px; min-width: 0; }
.hx-main.hx-flow .checkout-item-product-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.hx-main.hx-flow .checkout-item-product-title { display: grid; min-width: 0; }
.hx-main.hx-flow .checkout-item-product-title strong { font-size: 0.95rem; color: var(--hx-ink); }
.hx-main.hx-flow .checkout-item-product-title span { font-size: 0.78rem; color: var(--hx-muted); }
.hx-main.hx-flow .cart-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(23, 18, 14, 0.12);
  background: #fff;
  overflow: hidden;
}
.hx-main.hx-flow .cart-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--hx-ink);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hx-main.hx-flow .cart-qty button:hover { background: #fbf1ec; }
.hx-main.hx-flow .cart-qty input {
  width: 40px;
  height: 36px;
  border: 0;
  border-inline: 1.5px solid rgba(23, 18, 14, 0.1);
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--hx-ink);
  background: transparent;
}
.hx-main.hx-flow .cart-qty input:focus-visible { outline: none; background: #fff6f1; }
.hx-main.hx-flow .checkout-item-details { display: grid; gap: 8px; }
.hx-main.hx-flow .checkout-item-details-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.hx-main.hx-flow .checkout-item-details-title {
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hx-muted);
}
.hx-main.hx-flow .checkout-item-details-summary { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; color: var(--hx-body); }
.hx-main.hx-flow .checkout-item-details-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(23, 18, 14, 0.12);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hx-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hx-main.hx-flow .checkout-item-details-btn:hover,
.hx-main.hx-flow .checkout-item-details-btn[aria-expanded="true"] { border-color: var(--hx-g2); background: #fff6f1; }
.hx-main.hx-flow .checkout-item-details-panel[hidden] { display: none; }
.hx-main.hx-flow .checkout-item-details-list { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fbf6f2; }
.hx-main.hx-flow .checkout-item-details-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
.hx-main.hx-flow .checkout-item-details-row a { color: var(--hx-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.hx-main.hx-flow .checkout-item-details-row a:hover { text-decoration: underline; }
.hx-main.hx-flow .checkout-item-details-row > span { flex: none; font-family: var(--hx-font-mono), monospace; font-size: 0.72rem; color: var(--hx-body); }
.hx-main.hx-flow .checkout-item-details-comments { display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid #f0dcd2; }
.hx-main.hx-flow .checkout-item-details-comment { font-size: 0.8rem; color: var(--hx-body); }
.hx-main.hx-flow .checkout-item-price { display: grid; justify-items: end; gap: 8px; }
.hx-main.hx-flow .checkout-item-price strong { font-family: var(--hx-font-display), sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--hx-ink); white-space: nowrap; }
.hx-main.hx-flow .checkout-item-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(23, 18, 14, 0.1);
  background: #fff;
  color: #b42318;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hx-main.hx-flow .checkout-item-remove:hover { background: #fff0ee; border-color: #ffd2cc; }

/* what happens next: a compact three-beat timeline under the items */
.hx-main.hx-flow .hx-co-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hx-main.hx-flow .hx-co-next-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(23, 18, 14, 0.08);
}
.hx-main.hx-flow .hx-co-next-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hx-g1), var(--hx-g2));
}
.hx-main.hx-flow .hx-co-next-item strong { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--hx-ink); }
.hx-main.hx-flow .hx-co-next-item strong svg { width: 16px; height: 16px; color: var(--hx-g2); }
.hx-main.hx-flow .hx-co-next-item span { font-size: 0.84rem; color: var(--hx-body); line-height: 1.5; }

/* payment status banner (shown by the script while a payment is in flight / done) */
.hx-main.hx-flow .checkout-card--payment { padding: 16px 20px; display: grid; gap: 12px; margin-bottom: clamp(16px, 2vw, 22px); }
.hx-main.hx-flow .checkout-card--payment[hidden] { display: none; }
.hx-main.hx-flow .checkout-payment-row { display: flex; align-items: center; gap: 14px; }
.hx-main.hx-flow .checkout-spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #f0dcd2;
  border-top-color: var(--hx-g2);
  animation: hx-spin 0.9s linear infinite;
}
.hx-main.hx-flow .checkout-spinner[hidden] { display: none; }
.hx-main.hx-flow .checkout-card-title { font-family: var(--hx-font-display), sans-serif; font-weight: 800; color: var(--hx-ink); }
.hx-main.hx-flow .checkout-payment-text { color: var(--hx-body); font-size: 0.92rem; }
.hx-main.hx-flow .checkout-card--payment.is-success { border-color: #bfe8cc; background: #f1fbf4; }
.hx-main.hx-flow .checkout-card--payment.is-error { border-color: #ffd2cc; background: #fff4f2; }
.hx-main.hx-flow .checkout-payment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-main.hx-flow .checkout-payment-actions [hidden] { display: none; }

/* the summary rail */
.hx-main.hx-flow .hx-co-summary {
  position: sticky;
  top: calc(var(--promo-h, 0px) + var(--nav-h, 56px) + 18px);
  display: grid;
  gap: 18px;
  padding: 20px;
}
.hx-main.hx-flow .hx-co-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--hx-radius-card) var(--hx-radius-card) 0 0;
  background: linear-gradient(90deg, var(--hx-g1), var(--hx-g2));
}
.hx-main.hx-flow .hx-co-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hx-main.hx-flow .hx-co-summary-head h2, .hx-main.hx-flow .hx-co-summary-head .hx-as-h2 { font-size: 1.15rem; }
.hx-main.hx-flow .hx-co-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #157a3d;
}
.hx-main.hx-flow .hx-co-secure svg { width: 14px; height: 14px; }
.hx-main.hx-flow .checkout-summary { display: grid; gap: 8px; }
.hx-main.hx-flow .checkout-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: var(--hx-body); }
.hx-main.hx-flow .checkout-summary-value { font-weight: 700; color: var(--hx-ink); font-variant-numeric: tabular-nums; }
.hx-main.hx-flow .checkout-summary-discount { color: #157a3d; }
.hx-main.hx-flow .checkout-summary-row--total { margin-top: 4px; padding-top: 12px; border-top: 1px dashed rgba(23, 18, 14, 0.16); }
.hx-main.hx-flow .checkout-summary-row--total .checkout-summary-label { font-weight: 800; color: var(--hx-ink); }
.hx-main.hx-flow .checkout-summary-total {
  font-family: var(--hx-font-display), sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--hx-g1), var(--hx-g2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hx-main.hx-flow .checkout-coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hx-main.hx-flow .checkout-coupon-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: var(--hx-ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hx-main.hx-flow .checkout-coupon-btn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.hx-main.hx-flow .checkout-coupon-status { font-size: 0.84rem; font-weight: 600; color: var(--hx-body); }
.hx-main.hx-flow .checkout-coupon-status:empty { display: none; }
.hx-main.hx-flow .checkout-coupon-status.is-success { color: #157a3d; }
.hx-main.hx-flow .checkout-form-section { display: grid; gap: 12px; }
.hx-main.hx-flow .checkout-form-header { display: grid; gap: 4px; }
.hx-main.hx-flow .checkout-form-title { font-family: var(--hx-font-display), sans-serif; font-weight: 800; font-size: 1rem; color: var(--hx-ink); }
.hx-main.hx-flow .checkout-form-hint { font-size: 0.82rem; color: var(--hx-muted); }
.hx-main.hx-flow .checkout-contact-grid { display: grid; gap: 12px; }

/* payment methods as selectable cards — the buttons the script enables and wires are unchanged */
.hx-main.hx-flow .checkout-pay-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hx-main.hx-flow .checkout-pay-actions--single { grid-template-columns: 1fr; }
.hx-main.hx-flow .checkout-pay-actions:not(.checkout-pay-actions--single):not(.checkout-pay-actions--triple) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-main.hx-flow .hx-co-method {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(23, 18, 14, 0.12);
  background: #fff;
  color: var(--hx-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hx-main.hx-flow .hx-co-method svg { width: 26px; height: 26px; color: var(--hx-g2); }
.hx-main.hx-flow .hx-co-method small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--hx-muted); }
.hx-main.hx-flow .hx-co-method:not(:disabled):hover { border-color: var(--hx-g2); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(232, 71, 79, 0.5); }
.hx-main.hx-flow .hx-co-method:disabled { opacity: 0.5; cursor: not-allowed; }
.hx-main.hx-flow .hx-co-summary:has([data-card-inline]:not([hidden])) [data-checkout-pay],
.hx-main.hx-flow .hx-co-summary:has([data-wise-panel]:not([hidden])) [data-checkout-pay-wise],
.hx-main.hx-flow .hx-co-summary:has([data-wiselink-panel]:not([hidden])) [data-checkout-pay-wiselink],
.hx-main.hx-flow .hx-co-pay:has([data-card-inline]:not([hidden])) [data-checkout-pay],
.hx-main.hx-flow .hx-co-pay:has([data-wise-panel]:not([hidden])) [data-checkout-pay-wise],
.hx-main.hx-flow .hx-co-pay:has([data-wiselink-panel]:not([hidden])) [data-checkout-pay-wiselink] {
  border-color: var(--hx-g2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 18%, transparent);
}

/* the inline panels the methods open */
.hx-main.hx-flow .checkout-card-inline { display: grid; gap: 10px; }
.hx-main.hx-flow .checkout-card-inline[hidden] { display: none; }
.hx-main.hx-flow .checkout-card-placeholder { padding: 14px; border-radius: 14px; background: #fbf6f2; color: var(--hx-body); font-size: 0.9rem; text-align: center; }
.hx-main.hx-flow .checkout-card-placeholder[hidden] { display: none; }
.hx-main.hx-flow .checkout-card-placeholder.is-error { background: #fff0ee; color: #b42318; }
.hx-main.hx-flow .checkout-card-frame { width: 100%; min-height: 420px; border: 0; border-radius: 16px; background: #fff; }
.hx-main.hx-flow .checkout-card-frame[hidden] { display: none; }
.hx-main.hx-flow .checkout-inline-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #fbf6f2;
  border: 1px solid rgba(23, 18, 14, 0.06);
}
.hx-main.hx-flow .checkout-inline-panel[hidden] { display: none; }
.hx-main.hx-flow .checkout-wise-kicker { font-family: var(--hx-font-mono), monospace; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hx-g2); }
.hx-main.hx-flow .checkout-wise-title { font-size: 1.1rem; letter-spacing: -0.01em; }
.hx-main.hx-flow .checkout-wise-bank-card { display: grid; gap: 8px; }
.hx-main.hx-flow .checkout-wise-bank-row { display: grid; gap: 4px; }
.hx-main.hx-flow .checkout-wise-bank-label { font-size: 0.76rem; font-weight: 700; color: var(--hx-muted); }
.hx-main.hx-flow .checkout-wise-bank-value { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hx-main.hx-flow .checkout-wise-bank-input {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(23, 18, 14, 0.1);
  background: #fff;
  font-family: var(--hx-font-mono), monospace;
  font-size: 0.82rem;
  color: var(--hx-ink);
}
.hx-main.hx-flow .checkout-wise-copy-btn {
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(23, 18, 14, 0.12);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hx-ink);
  cursor: pointer;
}
.hx-main.hx-flow .checkout-wise-copy-btn:hover { border-color: var(--hx-g2); }
.hx-main.hx-flow .checkout-wise-copy { margin: 0; font-size: 0.88rem; color: var(--hx-body); line-height: 1.55; }
.hx-main.hx-flow .checkout-wise-steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.86rem; color: var(--hx-body); }
.hx-main.hx-flow .checkout-wise-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; }
.hx-main.hx-flow .checkout-wise-amount-label { font-size: 0.82rem; font-weight: 700; color: var(--hx-body); }
.hx-main.hx-flow .checkout-wise-amount-value { font-family: var(--hx-font-display), sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--hx-ink); }
.hx-main.hx-flow .checkout-wise-status { font-size: 0.84rem; font-weight: 600; color: var(--hx-body); }
.hx-main.hx-flow .checkout-wise-status:empty { display: none; }
.hx-main.hx-flow .checkout-wise-status.is-success { color: #157a3d; }
.hx-main.hx-flow .checkout-wise-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.hx-main.hx-flow .checkout-wise-paylink { display: grid; }
.hx-main.hx-flow .checkout-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.78rem; color: var(--hx-muted); }
.hx-main.hx-flow .checkout-secure svg { width: 14px; height: 14px; color: #157a3d; }

/* the buttons inside the panels reuse the primary/ghost pair */
.hx-main.hx-flow .checkout-pay:not(.hx-co-method) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(120deg, var(--hx-g1), var(--hx-g2));
  font-family: var(--hx-font-display), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--hx-shadow-pop);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.hx-main.hx-flow .checkout-pay:not(.hx-co-method):hover { transform: translateY(-1px); filter: brightness(1.05); }
.hx-main.hx-flow .checkout-pay:not(.hx-co-method):disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.hx-main.hx-flow .checkout-pay--secondary:not(.hx-co-method) { color: var(--hx-ink); background: #fff; border: 1.5px solid rgba(23, 18, 14, 0.14); box-shadow: none; }

/* ============================================================
   order confirmation
   ============================================================ */
.hx-main.hx-flow .hx-done { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 760px; margin-inline: auto; }
.hx-main.hx-flow .hx-done-card { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.hx-main.hx-flow .hx-done-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--hx-g1), var(--hx-g2));
  box-shadow: var(--hx-shadow-pop);
}
.hx-main.hx-flow .hx-done-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--hx-g2);
  opacity: 0.5;
  animation: hx-flow-halo 2.2s ease-out infinite;
}
.hx-main.hx-flow .hx-done-mark svg { width: 38px; height: 38px; }
.hx-main.hx-flow .hx-done-card h1, .hx-main.hx-flow .hx-done-card .hx-as-h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; }
.hx-main.hx-flow .hx-done-card > p { margin: 0; max-width: 46ch; color: var(--hx-body); line-height: 1.6; }
.hx-main.hx-flow .hx-done-number { display: grid; gap: 4px; padding: 14px 22px; border-radius: 18px; background: #fbf6f2; }
.hx-main.hx-flow .hx-done-number strong { font-family: var(--hx-font-mono), monospace; font-size: 1.2rem; letter-spacing: 0.04em; color: var(--hx-ink); }
.hx-main.hx-flow .hx-done-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; text-align: left; }
.hx-main.hx-flow .hx-done-step { position: relative; display: grid; gap: 4px; padding: 14px 16px 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(23, 18, 14, 0.08); }
.hx-main.hx-flow .hx-done-step::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--hx-g1), var(--hx-g2)); }
.hx-main.hx-flow .hx-done-step strong { font-size: 0.95rem; color: var(--hx-ink); }
.hx-main.hx-flow .hx-done-step span { font-size: 0.84rem; color: var(--hx-body); }
.hx-main.hx-flow .hx-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hx-main.hx-flow .hx-done-help { font-size: 0.88rem; color: var(--hx-muted); }
.hx-main.hx-flow .hx-done-help a { color: var(--hx-g2); font-weight: 700; text-decoration: none; }
.hx-main.hx-flow .hx-done-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hx-main.hx-flow .hx-done-perk { display: grid; gap: 6px; padding: 16px; text-align: center; justify-items: center; }
.hx-main.hx-flow .hx-done-perk svg { width: 24px; height: 24px; color: var(--hx-g2); }
.hx-main.hx-flow .hx-done-perk strong { font-size: 0.95rem; color: var(--hx-ink); }
.hx-main.hx-flow .hx-done-perk span { font-size: 0.82rem; color: var(--hx-body); }

/* ============================================================
   motion
   ============================================================ */
@keyframes hx-flow-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}
@keyframes hx-flow-cardin {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes hx-flow-halo {
  0% { transform: scale(0.9); opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-main.hx-flow .svc-post-skeleton,
  .hx-main.hx-flow .svc-post-card.is-entering,
  .hx-main.hx-flow .hx-done-mark::before { animation: none; }
}
.hx-noanim .hx-main.hx-flow .svc-post-skeleton,
.hx-noanim .hx-main.hx-flow .svc-post-card.is-entering,
.hx-noanim .hx-main.hx-flow .hx-done-mark::before { animation: none; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hx-main.hx-flow .hx-co-layout { grid-template-columns: minmax(0, 1fr) 350px; }
}
@media (max-width: 960px) {
  .hx-main.hx-flow .hx-co-layout { grid-template-columns: 1fr; }
  .hx-main.hx-flow .hx-co-summary { position: static; }
  /* on a phone the totals move to the end of the rail and pin to the bottom of the screen while the form
     above them scrolls; once the visitor reaches the end they settle into place */
  .hx-main.hx-flow .hx-co-totals { order: 99; position: sticky; bottom: 0; z-index: 4; margin: 0 -20px -20px; padding: 12px 20px 16px; border-radius: 0 0 var(--hx-radius-card) var(--hx-radius-card); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(23, 18, 14, 0.08); }
  .hx-main.hx-flow .checkout-secure { order: 98; }
  .hx-main.hx-flow .hx-co-next { grid-template-columns: 1fr; }
  .hx-main.hx-flow .checkout-item { grid-template-columns: minmax(0, 1fr) auto; }
  .hx-main.hx-flow .checkout-item-product { grid-column: 1 / -1; }
  .hx-main.hx-flow .hx-done-steps, .hx-main.hx-flow .hx-done-perks { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hx-main.hx-flow { padding-bottom: 120px; }
  .hx-main.hx-flow .hx-flow-studio { grid-template-columns: 1fr; }
  /* the ticket becomes the bottom bar: who, how many, Add to Cart */
  .hx-main.hx-flow .hx-flow-ticket {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    z-index: 40;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 44px -18px rgba(23, 18, 14, 0.45);
  }
  .hx-main.hx-flow .hx-flow-ticket::before { display: none; }
  .hx-main.hx-flow .hx-flow-ticket-who { gap: 10px; }
  .hx-main.hx-flow .hx-flow-ticket-ava { width: 40px; height: 40px; }
  .hx-main.hx-flow .hx-flow-ticket-handle { display: none; }
  .hx-main.hx-flow .hx-flow-ticket-pkg { display: grid; gap: 0; }
  .hx-main.hx-flow .hx-flow-ticket-pkg strong { font-size: 1.25rem; }
  .hx-main.hx-flow .hx-flow-ticket-pkg span { font-size: 0.78rem; }
  .hx-main.hx-flow .hx-flow-ticket-list,
  .hx-main.hx-flow .hx-flow-ticket-empty,
  .hx-main.hx-flow .hx-flow-ticket-count,
  .hx-main.hx-flow .hx-flow-ring { display: none; }
  .hx-main.hx-flow .hx-flow-ticket-foot { display: block; }
  .hx-main.hx-flow .hx-flow-ticket .hx-btn { width: auto; padding: 0.9em 1.3em; font-size: 0.92rem; white-space: nowrap; }
}
@media (max-width: 640px) {
  .hx-main.hx-flow .hx-flow-title { font-size: clamp(1.75rem, 8vw, 2.2rem); max-width: none; }
  .hx-main.hx-flow .hx-flow-step { font-size: 0.62rem; padding: 6px 10px 6px 6px; }
  .hx-main.hx-flow .hx-flow-step-gap { width: 10px; }
  .hx-main.hx-flow .hx-flow-stage { padding: 14px; border-radius: 20px; }
  .hx-main.hx-flow .svc-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hx-main.hx-flow .svc-post-card, .hx-main.hx-flow .svc-post-skeleton { border-radius: 14px; }
  .hx-main.hx-flow .svc-post-likes { font-size: 0.64rem; }
  .hx-main.hx-flow .hx-co-panel, .hx-main.hx-flow .hx-co-summary { padding: 16px; border-radius: 20px; }
  .hx-main.hx-flow .hx-co-totals { margin: 0 -16px -16px; padding: 12px 16px 14px; }
  .hx-main.hx-flow .checkout-item { padding: 14px; gap: 12px; }
  .hx-main.hx-flow .checkout-item-badge { width: 40px; height: 40px; border-radius: 13px; font-size: 1rem; }
  .hx-main.hx-flow .checkout-pay-actions { grid-template-columns: 1fr !important; }
  .hx-main.hx-flow .hx-co-method { grid-template-columns: 26px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; padding: 12px 14px; }
  .hx-main.hx-flow .hx-co-method small { display: inline; margin-left: 6px; }
  .hx-main.hx-flow .hx-done-card { padding: 22px 16px; }
}

/* ── billing address and the hosted card form ─────────────────────────────────────────────
   The address block sits under the details; card payments through the hosted card form need
   it, the other methods ignore it. The card fields themselves are the processor's own iframes
   (.hipay-field-container > .hipay-field + .hipay-field-label + .hipay-field-baseline), mounted
   into #hipayCardFields by the checkout script and restyled here as our fields; its stylesheet
   loads after ours, hence the !importants. */
.hx-main.hx-flow .hx-flow-field > span { display: inline-flex; align-items: center; gap: 6px; }
.hx-main.hx-flow .hx-flow-field > span svg { flex: none; color: var(--hx-g2); }
.hx-main.hx-flow .hx-flow-field > span small { font-weight: 500; color: var(--hx-muted); }
.hx-main.hx-flow .hx-co-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hx-main.hx-flow select.checkout-email-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a4e4e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hx-main.hx-flow .hx-co-method.is-active {
  border-color: var(--hx-g2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 18%, transparent);
}
.hx-main.hx-flow .hx-co-hipay { display: grid; gap: 14px; }
.hx-main.hx-flow .hx-co-hipay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.hx-main.hx-flow .hx-co-hipay-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* accepted-card strip: the brand the processor detects while typing lights up, the rest fade */
.hx-main.hx-flow .hx-co-brands { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hx-main.hx-flow .hx-co-brands li { width: 40px; height: 25px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(23, 18, 14, 0.12); background: #fff; box-shadow: 0 1px 2px rgba(23, 18, 14, 0.06); transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.hx-main.hx-flow .hx-co-brands li svg { display: block; width: 100%; height: 100%; }
.hx-main.hx-flow .hx-co-brands.is-detecting li:not(.is-detected) { opacity: 0.3; }
.hx-main.hx-flow .hx-co-brands li.is-detected { transform: scale(1.12); border-color: var(--hx-g2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hx-g2) 18%, transparent); }
/* waiting line while the fields warm: a breathing dot beside the text */
.hx-main.hx-flow .hx-co-hipay-wait { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hx-main.hx-flow .hx-co-hipay-wait-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hx-g2); box-shadow: 0 0 0 0 color-mix(in srgb, var(--hx-g2) 40%, transparent); animation: hx-wait-dot 1.2s ease-out infinite; }
@keyframes hx-wait-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hx-g2) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
/* the card fields: each box holds one of the processor's iframes, labels and rings are ours */
.hx-main.hx-flow .checkout-hipay-fields { display: grid; gap: 12px; }
.hx-main.hx-flow .checkout-hipay-fields[hidden] { display: none; }
.hx-main.hx-flow .hx-co-field { display: grid; gap: 6px; min-width: 0; }
.hx-main.hx-flow .hx-co-field-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--hx-ink); }
.hx-main.hx-flow .hx-co-field-label svg { flex: none; color: var(--hx-g2); }
.hx-main.hx-flow .hx-co-field-label small { font-weight: 500; color: var(--hx-muted); }
.hx-main.hx-flow .hx-co-field-box {
  position: relative; height: 52px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid rgba(23, 18, 14, 0.14); background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hx-main.hx-flow .hx-co-field-box > * { display: block; width: 100% !important; height: 100% !important; }
.hx-main.hx-flow .hx-co-field-box iframe { border: 0; background: transparent; }
.hx-main.hx-flow .hx-co-field.is-focused .hx-co-field-box { border-color: var(--hx-g2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 16%, transparent); }
.hx-main.hx-flow .checkout-hipay-fields.is-complete .hx-co-field-box { border-color: rgba(21, 122, 61, 0.45); }
.hx-main.hx-flow .checkout-hipay-fields.is-complete ~ .checkout-hipay-submit { box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--hx-g2) 80%, transparent); }
.hx-main.hx-flow .checkout-hipay-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff0ee;
  border: 1px solid rgba(180, 35, 24, 0.16);
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}
.hx-main.hx-flow .checkout-hipay-error[hidden] { display: none; }
.hx-main.hx-flow .checkout-hipay-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.hx-main.hx-flow .checkout-hipay-submit[hidden] { display: none; }
.hx-main.hx-flow .checkout-hipay-submit svg { flex: none; }
/* Apple Pay row above the card fields: the button is an iframe the processor's SDK drops into
   .checkout-applepay-button, so only its height is ours to set. */
.hx-main.hx-flow .checkout-applepay { display: grid; gap: 12px; }
.hx-main.hx-flow .checkout-applepay[hidden] { display: none; }
.hx-main.hx-flow .checkout-applepay-button { min-height: 48px; }
.hx-main.hx-flow .checkout-applepay-button .hipay-payment-request-button-iframe,
.hx-main.hx-flow .checkout-applepay-button iframe { display: block; width: 100% !important; min-height: 48px; max-height: 56px; border: 0; border-radius: 14px; }
/* When the multi-browser QR sheet opens, the SDK turns that same iframe into a fixed, full-screen
   layer. The panel's frosted blur and the page wrapper's isolation would each trap it inside their
   own box and under the header, so both step aside while the sheet is up (the inline fixed
   position the SDK sets is the tell). */
.hx-main.hx-flow .hx-co-panel:has(.checkout-applepay-button iframe[style*="position: fixed"]) { backdrop-filter: none; -webkit-backdrop-filter: none; }
.hx-main.hx-flow:has(.checkout-applepay-button iframe[style*="position: fixed"]) { isolation: auto; }
.hx-main.hx-flow .checkout-applepay-button iframe[style*="position: fixed"] { max-height: none !important; border-radius: 0; }
.hx-main.hx-flow .checkout-applepay-divider { display: flex; align-items: center; gap: 12px; color: var(--hx-muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hx-main.hx-flow .checkout-applepay-divider::before,
.hx-main.hx-flow .checkout-applepay-divider::after { content: ""; flex: 1; height: 1px; background: rgba(23, 18, 14, 0.12); }

/* ── secure-handshake scene while the payment is authorised (5-10 s) ─────────────────────────
   Replaces the card form inside the same panel: a brand card floats and catches the light,
   packets travel a dotted route to a navy shield, a three-step tracker advances on a timer and a
   shimmering bar fills. `is-approved` swaps the lock for a tick, greens the shield and lets a few
   hearts go before the confirmed page takes over. The checkout script drives the classes. */
.hx-main.hx-flow .checkout-processing { display: grid; gap: 14px; padding: 2px 0; }
.hx-main.hx-flow .checkout-processing[hidden] { display: none; }
.hx-main.hx-flow .checkout-processing-scene { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px 8px 8px; }
.hx-main.hx-flow .checkout-processing-card {
  position: relative; justify-self: end; width: 132px; height: 84px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--hx-g1) 0%, var(--hx-g2) 70%, #c9353d 100%);
  box-shadow: 0 20px 30px -16px color-mix(in srgb, var(--hx-g2) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: perspective(600px) rotateY(-14deg) rotateX(6deg);
  animation: hx-card-float 3.2s ease-in-out infinite;
}
.hx-main.hx-flow .checkout-processing-chip { position: absolute; left: 14px; top: 16px; width: 26px; height: 19px; border-radius: 5px; background: linear-gradient(160deg, #ffe9a8, #ffd66b 55%, #d9a441); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.hx-main.hx-flow .checkout-processing-chip::after { content: ""; position: absolute; inset: 5px 4px; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 2px; }
.hx-main.hx-flow .checkout-processing-wave { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; border-right-color: rgba(255, 255, 255, 0.85); transform: rotate(-45deg); }
.hx-main.hx-flow .checkout-processing-wave::before,
.hx-main.hx-flow .checkout-processing-wave::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid transparent; border-right-color: rgba(255, 255, 255, 0.85); }
.hx-main.hx-flow .checkout-processing-wave::before { inset: 3px; }
.hx-main.hx-flow .checkout-processing-wave::after { inset: 6px; }
.hx-main.hx-flow .checkout-processing-num { position: absolute; left: 14px; bottom: 26px; display: flex; gap: 6px; }
.hx-main.hx-flow .checkout-processing-num i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.72); }
.hx-main.hx-flow .checkout-processing-brand { position: absolute; right: 14px; bottom: 9px; font-family: var(--hx-display, inherit); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.92); }
.hx-main.hx-flow .checkout-processing-sheen { position: absolute; inset: -40% -70%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%); animation: hx-card-sheen 2.6s ease-in-out infinite; }
.hx-main.hx-flow .checkout-processing-route { position: relative; width: 72px; height: 2px; background-image: repeating-linear-gradient(90deg, rgba(23, 18, 14, 0.22) 0 6px, transparent 6px 12px); }
.hx-main.hx-flow .checkout-processing-packet { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--hx-g2); box-shadow: 0 0 10px color-mix(in srgb, var(--hx-g2) 80%, transparent); animation: hx-packet 1.6s linear infinite; }
.hx-main.hx-flow .checkout-processing-packet--two { animation-delay: 0.55s; }
.hx-main.hx-flow .checkout-processing-packet--back { background: var(--hx-navy); box-shadow: 0 0 10px rgba(16, 23, 39, 0.5); animation: hx-packet-back 2s linear infinite 0.3s; }
.hx-main.hx-flow .checkout-processing-shield { position: relative; justify-self: start; width: 84px; height: 84px; display: grid; place-items: center; color: #fff; }
.hx-main.hx-flow .checkout-processing-shield-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--hx-navy); filter: drop-shadow(0 12px 18px rgba(16, 23, 39, 0.35)); animation: hx-shield-pulse 2.2s ease-in-out infinite; transition: fill 0.4s ease; }
.hx-main.hx-flow .checkout-processing-lock,
.hx-main.hx-flow .checkout-processing-tick { position: relative; width: 34px; height: 34px; transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hx-main.hx-flow .checkout-processing-tick { position: absolute; opacity: 0; transform: scale(0.4); }
.hx-main.hx-flow .checkout-processing-hearts i { position: absolute; left: 50%; top: 42%; width: 10px; height: 10px; margin: -5px; background: var(--hx-g2); transform: rotate(45deg) scale(0); opacity: 0; }
.hx-main.hx-flow .checkout-processing-hearts i::before,
.hx-main.hx-flow .checkout-processing-hearts i::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.hx-main.hx-flow .checkout-processing-hearts i::before { left: -5px; }
.hx-main.hx-flow .checkout-processing-hearts i::after { top: -5px; }
.hx-main.hx-flow .checkout-processing-hearts i:nth-child(1) { --hx-dx: -34px; --hx-delay: 0s; }
.hx-main.hx-flow .checkout-processing-hearts i:nth-child(2) { --hx-dx: -16px; --hx-delay: 0.08s; }
.hx-main.hx-flow .checkout-processing-hearts i:nth-child(3) { --hx-dx: 2px; --hx-delay: 0.16s; }
.hx-main.hx-flow .checkout-processing-hearts i:nth-child(4) { --hx-dx: 18px; --hx-delay: 0.05s; }
.hx-main.hx-flow .checkout-processing-hearts i:nth-child(5) { --hx-dx: 34px; --hx-delay: 0.12s; }
.hx-main.hx-flow .checkout-processing-hearts i:nth-child(6) { --hx-dx: -6px; --hx-delay: 0.24s; }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-lock { opacity: 0; transform: scale(0.4); }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-tick { opacity: 1; transform: scale(1); }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-shield-shape { fill: #157a3d; filter: drop-shadow(0 12px 18px rgba(21, 122, 61, 0.4)); animation: none; }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-packet,
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-sheen { animation: none; opacity: 0; }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-card { animation: none; transform: perspective(600px) rotateY(0deg) rotateX(0deg); transition: transform 0.5s ease; }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-hearts i { animation: hx-heart-up 1s ease-out var(--hx-delay) forwards; }
.hx-main.hx-flow .checkout-processing-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hx-main.hx-flow .checkout-processing-steps li { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; line-height: 1.3; color: var(--hx-muted); transition: color 0.3s ease; }
.hx-main.hx-flow .checkout-processing-dot { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(23, 18, 14, 0.18); background: #fff; transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.hx-main.hx-flow .checkout-processing-steps li.is-active,
.hx-main.hx-flow .checkout-processing-steps li.is-done { color: var(--hx-ink); }
.hx-main.hx-flow .checkout-processing-steps li.is-active .checkout-processing-dot { border-color: var(--hx-g2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 16%, transparent); animation: hx-dot-pulse 1.2s ease-in-out infinite; }
.hx-main.hx-flow .checkout-processing-steps li.is-done .checkout-processing-dot { border-color: #157a3d; background: #157a3d; }
.hx-main.hx-flow .checkout-processing-steps li.is-done .checkout-processing-dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hx-main.hx-flow .checkout-processing-bar { height: 8px; border-radius: 999px; background: rgba(23, 18, 14, 0.08); overflow: hidden; }
.hx-main.hx-flow .checkout-processing-bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--hx-g1), var(--hx-g2), #c9353d, var(--hx-g1)); background-size: 200% 100%; animation: hx-bar-shimmer 1.4s linear infinite; transition: width 0.5s ease-out; }
.hx-main.hx-flow .checkout-processing.is-approved .checkout-processing-bar span { background: #157a3d; animation: none; }
.hx-main.hx-flow .checkout-processing-note { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; line-height: 1.5; color: var(--hx-body); }
.hx-main.hx-flow .checkout-processing-note b { flex: none; font-variant-numeric: tabular-nums; color: var(--hx-ink); }
@keyframes hx-card-float { 0%, 100% { transform: perspective(600px) rotateY(-14deg) rotateX(6deg) translateY(0); } 50% { transform: perspective(600px) rotateY(-8deg) rotateX(2deg) translateY(-6px); } }
@keyframes hx-card-sheen { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
@keyframes hx-packet { 0% { left: 0; opacity: 0; transform: scale(0.6); } 15% { opacity: 1; transform: scale(1); } 85% { opacity: 1; transform: scale(1); } 100% { left: calc(100% - 8px); opacity: 0; transform: scale(0.6); } }
@keyframes hx-packet-back { 0% { left: calc(100% - 8px); opacity: 0; transform: scale(0.5); } 15% { opacity: 0.9; transform: scale(0.85); } 85% { opacity: 0.9; transform: scale(0.85); } 100% { left: 0; opacity: 0; transform: scale(0.5); } }
@keyframes hx-shield-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes hx-dot-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hx-g2) 16%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--hx-g2) 6%, transparent); } }
@keyframes hx-bar-shimmer { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
@keyframes hx-heart-up { 0% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(0); } 20% { opacity: 1; transform: translate(calc(var(--hx-dx) * 0.3), -14px) rotate(45deg) scale(1); } 100% { opacity: 0; transform: translate(var(--hx-dx), -64px) rotate(45deg) scale(0.6); } }
@media (max-width: 520px) {
  .hx-main.hx-flow .checkout-processing-scene { gap: 6px; padding: 12px 0 6px; }
  .hx-main.hx-flow .checkout-processing-card { width: 112px; height: 72px; }
  .hx-main.hx-flow .checkout-processing-route { width: 44px; }
  .hx-main.hx-flow .checkout-processing-shield { width: 72px; height: 72px; }
  .hx-main.hx-flow .checkout-processing-steps { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-main.hx-flow .checkout-processing *, .hx-main.hx-flow .checkout-processing *::before, .hx-main.hx-flow .checkout-processing *::after { animation: none !important; }
  .hx-main.hx-flow .checkout-processing-card { transform: none; }
  .hx-main.hx-flow .checkout-processing-packet { left: 50%; opacity: 1; }
}
.hx-noanim .hx-main.hx-flow .checkout-processing *, .hx-noanim .hx-main.hx-flow .checkout-processing *::before, .hx-noanim .hx-main.hx-flow .checkout-processing *::after { animation: none !important; transition: none !important; }
.hx-main.hx-flow .hx-co-hipay-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--hx-muted); }
.hx-main.hx-flow .hx-co-hipay-note svg { flex: none; margin-top: 2px; color: #157a3d; }
@media (max-width: 480px) {
  .hx-main.hx-flow .hx-co-field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   checkout ▸ signed-in customers: the Wallet method and the member discounts
   ============================================================ */
.hx-main.hx-flow .checkout-pay-actions--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-main.hx-flow .hx-co-method--wallet svg { color: #157a3d; }
.hx-main.hx-flow .hx-co-method--wallet:not(:disabled) { border-color: rgba(31, 171, 85, 0.35); background: #f3fbf6; }
.hx-main.hx-flow .hx-co-method--wallet:not(:disabled):hover { border-color: #1fab55; box-shadow: 0 14px 28px -20px rgba(31, 171, 85, 0.6); }
.hx-main.hx-flow .hx-co-method--wallet.is-short small { color: #b42318; }
.hx-main.hx-flow .hx-co-method--wallet small a { color: var(--hx-cta-b); font-weight: 700; text-decoration: underline; }
.hx-main.hx-flow .hx-co-perks {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7f2;
  border: 1px solid rgba(232, 71, 79, 0.16);
  font-size: 0.86rem;
  color: var(--hx-body);
}
.hx-main.hx-flow .hx-co-perks-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hx-ink); font-size: 0.82rem; }
.hx-main.hx-flow .hx-co-perks-head svg { color: var(--hx-g2); flex: none; }
.hx-main.hx-flow .hx-co-perks-head a { color: var(--hx-cta-b); text-decoration: none; }
.hx-main.hx-flow .hx-co-perks-head a:hover { text-decoration: underline; }
.hx-main.hx-flow .hx-co-perks--guest .hx-co-perks-head { font-weight: 600; flex-wrap: wrap; }
.hx-main.hx-flow .hx-co-perk { display: flex; justify-content: space-between; gap: 10px; }
.hx-main.hx-flow .hx-co-perk strong { color: #157a3d; font-variant-numeric: tabular-nums; }
.hx-main.hx-flow .hx-co-perk em { font-style: normal; font-weight: 600; color: var(--hx-muted); }

/* ============================================================
   checkout ▸ level columns: the forms sit in the wide column, the rail is the summary only
   ============================================================ */
.hx-main.hx-flow .hx-co-form .checkout-form-section + .checkout-form-section { padding-top: 16px; border-top: 1px dashed rgba(23, 18, 14, 0.14); }
.hx-main.hx-flow .hx-co-form .checkout-form-title,
.hx-main.hx-flow .hx-co-pay .checkout-form-title { font-size: 1.15rem; letter-spacing: -0.01em; }
.hx-main.hx-flow .hx-co-form .checkout-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.hx-main.hx-flow .hx-co-form .checkout-contact-grid > .checkout-field--full:first-child { grid-column: 1 / -1; }
.hx-main.hx-flow .hx-co-form .checkout-contact-grid > .hx-co-field-row { grid-column: 1 / -1; }
.hx-main.hx-flow .hx-co-pay .checkout-pay-actions,
.hx-main.hx-flow .hx-co-pay .checkout-pay-actions--quad,
.hx-main.hx-flow .hx-co-pay .checkout-pay-actions--triple { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hx-main.hx-flow .hx-co-pay .checkout-card-frame--inline { min-height: 520px; }
.hx-main.hx-flow .hx-co-summary .hx-co-next { grid-template-columns: 1fr; gap: 8px; }
.hx-main.hx-flow .hx-co-summary .hx-co-next-item { padding: 10px 12px 10px 14px; gap: 2px; }
.hx-main.hx-flow .hx-co-summary .hx-co-next-item strong { font-size: 0.88rem; }
.hx-main.hx-flow .hx-co-summary .hx-co-next-item span { font-size: 0.8rem; }
@media (max-width: 640px) {
  .hx-main.hx-flow .hx-co-form .checkout-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* method rows on phones: icon | name | note, the note kept on one line at the right */
  .hx-main.hx-flow .hx-co-pay .hx-co-method { grid-template-columns: 26px auto minmax(0, 1fr); gap: 6px 12px; }
  .hx-main.hx-flow .hx-co-pay .hx-co-method small { justify-self: end; margin-left: 0; text-align: right; white-space: nowrap; }
}

/* ── 2026-09-22 Twicsy Points at checkout ─────────────────────────────────────────────────────
   The gold coin marks everything to do with points: the panel in the summary rail, the per-line
   "Pay with points" switch drawn by the checkout script, the summary row, and the points-only
   order button that replaces the payment methods when nothing is left to pay. */
.hx-main.hx-flow .hx-co-points-coin {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd66b, #ff9f1c);
  color: #3b2a00;
  font-weight: 900;
  font-size: 0.78rem;
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 2px 6px rgba(255, 159, 28, 0.35);
  flex: none;
}
.hx-main.hx-flow .hx-co-points-coin--xs { width: 16px; height: 16px; font-size: 0.58rem; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14); vertical-align: -3px; margin-right: 4px; }

.hx-main.hx-flow .hx-co-points {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.28), rgba(255, 159, 28, 0.1));
  border: 1px solid rgba(255, 159, 28, 0.35);
  font-size: 0.86rem;
  color: var(--hx-body);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.hx-main.hx-flow .hx-co-points.is-active { border-color: rgba(255, 159, 28, 0.7); box-shadow: 0 12px 26px -18px rgba(255, 159, 28, 0.8); }
.hx-main.hx-flow .hx-co-points-head { display: flex; align-items: center; gap: 8px; }
.hx-main.hx-flow .hx-co-points-title { font-weight: 800; color: var(--hx-ink); font-size: 0.84rem; }
.hx-main.hx-flow .hx-co-points-balance { margin-left: auto; font-weight: 900; color: #6b4300; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hx-main.hx-flow .hx-co-points-summary { margin: 0; line-height: 1.45; }
.hx-main.hx-flow .hx-co-points-link { font-size: 0.8rem; font-weight: 700; color: #6b4300; text-decoration: none; justify-self: start; }
.hx-main.hx-flow .hx-co-points-link:hover { text-decoration: underline; }
.hx-main.hx-flow .hx-co-perks--points { background: rgba(255, 214, 107, 0.18); border-color: rgba(255, 159, 28, 0.35); }
.hx-main.hx-flow .hx-co-perks--points .hx-co-perks-head a { color: #6b4300; }

.hx-main.hx-flow .checkout-summary-row--points .checkout-summary-label { display: inline-flex; align-items: center; }
.hx-main.hx-flow .checkout-summary-row--points[hidden] { display: none; }

/* the per-line switch */
.hx-main.hx-flow .hx-co-pts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 159, 28, 0.45);
  background: rgba(255, 214, 107, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b4300;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hx-main.hx-flow .hx-co-pts-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hx-main.hx-flow .hx-co-pts-toggle-ui {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: rgba(107, 67, 0, 0.25);
  transition: background 0.2s ease;
  flex: none;
}
.hx-main.hx-flow .hx-co-pts-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.hx-main.hx-flow .hx-co-pts-toggle.is-on { background: linear-gradient(135deg, #ffd66b, #ffb545); border-color: #ff9f1c; }
.hx-main.hx-flow .hx-co-pts-toggle.is-on .hx-co-pts-toggle-ui { background: #6b4300; }
.hx-main.hx-flow .hx-co-pts-toggle.is-on .hx-co-pts-toggle-ui::after { transform: translateX(12px); }
.hx-main.hx-flow .hx-co-pts-toggle.is-short { cursor: not-allowed; opacity: 0.7; background: transparent; border-style: dashed; color: var(--hx-muted); }
.hx-main.hx-flow .hx-co-pts-toggle input:focus-visible + .hx-co-pts-toggle-ui { outline: 2px solid var(--hx-g2); outline-offset: 2px; }
.hx-main.hx-flow .checkout-item.is-points { background: linear-gradient(90deg, rgba(255, 214, 107, 0.16), transparent 70%); }
.hx-main.hx-flow .checkout-item.is-points .checkout-item-price strong { display: grid; justify-items: end; gap: 2px; }
.hx-main.hx-flow .checkout-item.is-points .checkout-item-price s { font-size: 0.85rem; font-weight: 600; color: var(--hx-muted); }
.hx-main.hx-flow .checkout-item.is-points .checkout-item-price em { font-style: normal; font-size: 1.05rem; color: #6b4300; }

/* the points-only order button */
.hx-main.hx-flow .hx-co-method--points { border-color: rgba(255, 159, 28, 0.55); background: linear-gradient(135deg, #fff5d6, #ffe9b8); }
.hx-main.hx-flow .hx-co-method--points:not(:disabled):hover { border-color: #ff9f1c; box-shadow: 0 14px 28px -18px rgba(255, 159, 28, 0.8); }
.hx-main.hx-flow .hx-co-method--points[hidden] { display: none !important; }
.hx-main.hx-flow .checkout-pay-actions.is-points-only { grid-template-columns: 1fr !important; }
.hx-main.hx-flow .checkout-pay-actions.is-points-only .hx-co-method:not(.hx-co-method--points) { display: none; }
.hx-main.hx-flow .hx-co-points-hint { color: #6b4300; font-weight: 600; }
.hx-main.hx-flow .hx-co-points-hint[hidden] { display: none; }

@media (max-width: 640px) {
  .hx-main.hx-flow .hx-co-pts-toggle { width: 100%; justify-content: flex-start; }
  .hx-main.hx-flow .hx-co-points-head { flex-wrap: wrap; }
}

/* ── 2026-09-22b: the points-only order completes from the summary rail ─────────────────────
   The CTA sits under the total (so on phones it travels with the pinned totals bar), and the
   payment panel folds to a note while every line is paid with points. */
.hx-main.hx-flow .tp-mark { flex: none; vertical-align: -3px; }
.hx-main.hx-flow .hx-co-points-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(217, 58, 68, 0.35);
  background: linear-gradient(120deg, #fff3d6, #ffe4c2 55%, #ffd7cf);
  color: var(--hx-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px -20px rgba(217, 58, 68, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hx-main.hx-flow .hx-co-points-cta:not(:disabled):hover { transform: translateY(-2px); border-color: #d93a44; box-shadow: 0 18px 34px -18px rgba(217, 58, 68, 0.85); }
.hx-main.hx-flow .hx-co-points-cta:not(:disabled):active { transform: translateY(0) scale(0.99); }
.hx-main.hx-flow .hx-co-points-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.hx-main.hx-flow .hx-co-points-cta[hidden] { display: none !important; }
.hx-main.hx-flow .hx-co-points-cta-copy { display: grid; gap: 2px; min-width: 0; }
.hx-main.hx-flow .hx-co-points-cta-copy strong { font-size: 0.98rem; font-weight: 800; }
.hx-main.hx-flow .hx-co-points-cta-copy small { font-size: 0.78rem; color: #6b4300; font-weight: 600; }
.hx-main.hx-flow .hx-co-points-cta > svg:last-child { color: #d93a44; }
.hx-main.hx-flow .hx-co-points-cta .tp-mark { filter: drop-shadow(0 4px 8px rgba(217, 58, 68, 0.3)); }

.hx-main.hx-flow .hx-co-pay.is-points-only .checkout-pay-actions,
.hx-main.hx-flow .hx-co-pay.is-points-only [data-checkout-method-hint] { display: none; }
.hx-main.hx-flow .hx-co-points-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 214, 107, 0.28), rgba(255, 159, 28, 0.08));
  border: 1px dashed rgba(217, 58, 68, 0.35);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--hx-body);
}
.hx-main.hx-flow .hx-co-points-note[hidden] { display: none; }
.hx-main.hx-flow .hx-co-points-note strong { color: var(--hx-ink); }
.hx-main.hx-flow .hx-co-points-note .tp-mark { filter: drop-shadow(0 6px 10px rgba(217, 58, 68, 0.28)); }

.hx-main.hx-flow .hx-co-points-head .tp-mark,
.hx-main.hx-flow .checkout-summary-row--points .tp-mark,
.hx-main.hx-flow .hx-co-perks--points .tp-mark { margin-right: 2px; }
.hx-main.hx-flow .checkout-summary-row--points .checkout-summary-label { gap: 6px; }
.hx-main.hx-flow .hx-co-pts-toggle { padding-right: 12px; }
.hx-main.hx-flow .hx-co-pts-toggle-mark { display: inline-grid; place-items: center; }
.hx-main.hx-flow .hx-co-pts-toggle.is-short .hx-co-pts-toggle-mark { filter: grayscale(1); opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .hx-main.hx-flow .hx-co-points-cta:not([hidden]) { animation: hx-co-cta-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes hx-co-cta-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 700px) {
  .hx-main.hx-flow .hx-co-points-link { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 700px) {
  .hx-main.hx-flow .hx-co-perks-head a { display: inline-block; padding-block: 8px; margin-block: -8px; }
}
