/* Bedankpagina na een betaalde bestelling (Tom, 17 november 2026: "prachtig design" en "die besteldetails echt veel
   compacter ... dat ze bovenaan ook al verzamelkaart en volg ons zien"). Only active with body.tss-thanks-on, which
   bedankt.js sets for a paid order; otherwise the checkout's own confirmation stays exactly as it was. Shop style: Railway
   Stories photo hero with blue overlay, white cards, navy headings, tricolour bar, pill buttons. */
body.tss-thanks-on #step-confirmation .confirmation-icon,
body.tss-thanks-on #step-confirmation .confirmation-title,
body.tss-thanks-on #step-confirmation .confirmation-subtitle,
body.tss-thanks-on #step-confirmation #confirmation-details,
body.tss-thanks-on #step-confirmation #confirmation-delivery-hero,
body.tss-thanks-on #step-confirmation .confirmation-social { display: none !important; }
body.tss-thanks-on #step-confirmation > .checkout-card { padding: 0 !important; overflow: hidden; border-radius: 28px; }
body.tss-thanks-on #step-confirmation .confirmation-content { padding: 0 !important; max-width: none !important; text-align: left; }

.tss-thanks {
  --tt-navy: #0d2a6b; --tt-blue: #1f74c4; --tt-red: #e3262f; --tt-yellow: #ffd61f; --tt-green: #16a05a;
  --tt-ink: #23314f; --tt-soft: #5b6b8c; --tt-line: #e3e9f3; --tt-bg: #f4f7fc;
  color: var(--tt-ink); font-size: 16px; line-height: 1.45;
}
.tss-thanks *, .tss-thanks *::before, .tss-thanks *::after { box-sizing: border-box; }

/* ---------- hero (compact) ---------- */
.tss-thanks__hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 22px; min-height: 232px; padding: 30px 40px 34px; color: #fff;
  background: #0d2a6b image-set(url("/assets/images/railway-stories/rs2026-gordon-percy-thomas-1280w-v1.webp") 1x, url("/assets/images/railway-stories/rs2026-gordon-percy-thomas-1920w-v1.webp") 2x) right 30% / cover no-repeat;
}
.tss-thanks__hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9, 32, 88, .97) 0%, rgba(9, 32, 88, .9) 40%, rgba(9, 32, 88, .4) 68%, rgba(9, 32, 88, 0) 88%);
}
.tss-thanks__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #1f74c4 0 33.33%, #ffd61f 33.33% 66.66%, #e3262f 66.66%); }
.tss-thanks__hero-copy { position: relative; max-width: 520px; }
.tss-thanks__stamp {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 12px 30px rgba(0, 0, 0, .28); animation: tt-pop .6s .1s cubic-bezier(.2, 1.5, .4, 1) both;
}
.tss-thanks__stamp svg { width: 42px; height: 42px; fill: none; stroke: var(--tt-green); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.tss-thanks__stamp path { stroke-dasharray: 44; stroke-dashoffset: 44; animation: tt-draw .65s .55s ease-out forwards; }
.tss-thanks__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tss-thanks__pill i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .28); }
.tss-thanks__hero h1 { margin: 10px 0 6px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; font-weight: 900; letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.tss-thanks__hero h1 span { color: var(--tt-yellow); }
.tss-thanks__hero p { margin: 0; max-width: 430px; font-size: 1rem; color: rgba(255, 255, 255, .92); }
.tss-thanks__confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tss-thanks__confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: tt-fall 2.4s ease-in forwards; }

/* ---------- body ---------- */
.tss-thanks__body { padding: 22px 26px 30px; background: linear-gradient(180deg, var(--tt-bg) 0, #fff 220px); }

/* the compact order block: thumbnails + total + track, details fold open */
.tss-sum { background: #fff; border: 1px solid var(--tt-line); border-radius: 22px; padding: 16px 18px 14px; box-shadow: 0 10px 28px rgba(13, 42, 107, .07); animation: tt-rise .45s .05s both; }
.tss-sum__top { display: flex; align-items: center; gap: 16px; }
.tss-sum__thumbs { display: flex; flex: none; padding-left: 10px; }
.tss-sum__thumb { position: relative; width: 50px; height: 50px; margin-left: -10px; border-radius: 15px; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--tt-line), 0 4px 10px rgba(13, 42, 107, .1); display: flex; align-items: center; justify-content: center; overflow: visible; animation: tt-pop .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.tss-sum__thumb img { width: 88%; height: 88%; object-fit: contain; border-radius: 10px; }
.tss-sum__thumb svg { width: 22px; height: 22px; color: var(--tt-blue); }
.tss-sum__thumb b { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--tt-navy); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.tss-sum__more { font-weight: 900; font-size: .85rem; color: var(--tt-navy); background: var(--tt-bg); }
.tss-sum__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tss-sum__info strong { font-size: 1.12rem; font-weight: 900; color: var(--tt-navy); }
.tss-sum__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tss-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--tt-bg); color: var(--tt-navy); font-weight: 800; font-size: .76rem; }
.tss-chip svg { width: 13px; height: 13px; }
.tss-chip--ok { background: #e6f6ed; color: #0f7a41; }
.tss-sum__toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--tt-line); background: #fff; color: var(--tt-navy); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.tss-sum__toggle:hover { border-color: var(--tt-blue); }
.tss-sum__toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.tss-sum__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.tss-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--tt-line); }
.tss-track__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tss-track__step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--tt-line) 0 7px, transparent 7px 12px); }
.tss-track__step.is-done::after { background: var(--tt-green); }
.tss-track__dot { width: 36px; height: 36px; border-radius: 50%; background: var(--tt-bg); color: var(--tt-blue); border: 2px solid var(--tt-line); display: flex; align-items: center; justify-content: center; }
.tss-track__dot svg { width: 17px; height: 17px; }
.tss-track__step.is-done .tss-track__dot { background: var(--tt-green); border-color: var(--tt-green); color: #fff; }
.tss-track__step.is-next .tss-track__dot { background: var(--tt-yellow); border-color: #f2b705; color: var(--tt-navy); animation: tt-ring 2.2s 1.2s ease-out infinite; }
.tss-track__label { font-size: .8rem; font-weight: 800; color: var(--tt-navy); line-height: 1.2; }
.tss-track__label em { font-style: normal; color: var(--tt-red); }

.tss-sum__details { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--tt-line); animation: tt-rise .3s both; }
.tss-sum__details[hidden] { display: none; }
.tss-sum__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tss-sum__items li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tss-sum__mini { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--tt-line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tss-sum__mini img { width: 88%; height: 88%; object-fit: contain; }
.tss-sum__mini svg { width: 18px; height: 18px; color: var(--tt-blue); }
.tss-sum__name { font-weight: 700; font-size: .9rem; color: var(--tt-navy); line-height: 1.25; }
.tss-sum__pre { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #fff3dd; color: #a35400; font-size: .72rem; font-weight: 800; }
.tss-sum__price { font-weight: 800; font-size: .9rem; color: var(--tt-navy); white-space: nowrap; }
.tss-sum__totals { display: grid; gap: 4px; margin: 12px 0 0 52px; font-size: .88rem; }
.tss-sum__totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--tt-soft); }
.tss-sum__totals b { color: var(--tt-navy); }
.tss-sum__totals .is-free b { color: var(--tt-green); }
.tss-sum__totals .is-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--tt-line); color: var(--tt-navy); font-weight: 900; font-size: 1rem; }
.tss-sum__where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tss-sum__where p { display: flex; gap: 9px; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--tt-bg); font-size: .84rem; color: var(--tt-soft); line-height: 1.4; }
.tss-sum__where svg { flex: none; width: 18px; height: 18px; color: var(--tt-blue); margin-top: 1px; }
.tss-sum__where b { color: var(--tt-navy); overflow-wrap: anywhere; }

/* collector card + follow us, side by side right under the order */
.tss-thanks__duo { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.tss-thanks__collector:empty { display: none; }
.tss-thanks__collector .vk-confirm { max-width: none; height: 100%; margin: 0; padding: 16px 18px 16px 16px; gap: 14px; }
.tss-thanks__collector .vk-confirm__badge { width: 58px; height: 58px; }
.tss-thanks__collector .vk-confirm__badge svg { width: 32px; height: 32px; }
.tss-thanks__collector .vk-confirm strong.vk-confirm__title { font-size: 1.2rem; }
.tss-thanks__collector .vk-confirm__text { margin: 4px 0 10px; font-size: .86rem; }
.tss-thanks__collector .vk-confirm__items { margin-bottom: 10px; }
.tss-thanks__collector .vk-confirm__item { width: 46px; height: 46px; }
.tss-thanks__collector .vk-confirm__cta { padding: 8px 15px; font-size: .88rem; }
.tss-follow { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 26px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #2a6fd0 0%, #123a8c 55%, #0d2a6b 100%); box-shadow: 0 10px 26px rgba(13, 42, 107, .2); position: relative; overflow: hidden; animation: tt-rise .45s .12s both; }
.tss-follow::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #1f74c4 0 33.33%, #ffd61f 33.33% 66.66%, #e3262f 66.66%); }
.tss-follow strong { font-size: 1.2rem; font-weight: 900; }
.tss-follow > span { font-size: .86rem; color: rgba(255, 255, 255, .85); }
.tss-follow__btns { display: grid; gap: 8px; margin-top: 10px; }
.tss-follow__btn { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 999px; background: #fff; color: var(--tt-navy); font-weight: 800; font-size: .9rem; text-decoration: none; transition: transform .12s ease; }
.tss-follow__btn:hover { transform: translateX(2px); }
.tss-follow__icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.tss-follow__icon svg { width: 17px; height: 17px; }
.tss-follow__btn--instagram .tss-follow__icon { background: radial-gradient(circle at 30% 110%, #fdc468 0%, #f77737 30%, #e1306c 60%, #833ab4 100%); }
.tss-follow__btn--facebook .tss-follow__icon { background: #1877f2; }
.tss-follow__btn--x .tss-follow__icon { background: #0f172a; }

/* the checkout's own buttons and pre-order info, in place */
body.tss-thanks-on #step-confirmation .confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 0; }
body.tss-thanks-on #step-confirmation .backorder-info-box { margin: 20px 0 0; border-radius: 22px; }

/* ---------- motion ---------- */
@keyframes tt-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes tt-draw { to { stroke-dashoffset: 0; } }
@keyframes tt-rise { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
@keyframes tt-fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(260px) rotate(540deg); } }
@keyframes tt-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 31, .65); } 70% { box-shadow: 0 0 0 11px rgba(255, 214, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 31, 0); } }
@media (prefers-reduced-motion: reduce) {
  .tss-thanks *, .tss-thanks *::before { animation: none !important; }
  .tss-thanks__stamp path { stroke-dashoffset: 0; }
  .tss-thanks__confetti { display: none; }
}

/* ---------- tablet + phone ---------- */
@media (max-width: 860px) {
  .tss-thanks__duo { grid-template-columns: 1fr; }
  .tss-sum__where { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tss-thanks__hero { min-height: 0; padding: 20px 18px 24px; background-position: 80% 30%; }
  .tss-thanks__hero::before { background: linear-gradient(90deg, rgba(9, 32, 88, .96) 0%, rgba(9, 32, 88, .86) 62%, rgba(9, 32, 88, .5) 100%); }
  .tss-thanks__stamp { display: none; }
  .tss-thanks__pill { font-size: .72rem; padding: 4px 11px; white-space: nowrap; }
  .tss-thanks__hero h1 { font-size: 1.85rem; margin: 9px 0 4px; }
  .tss-thanks__hero p { font-size: .9rem; max-width: 300px; }
  .tss-thanks__body { padding: 12px 10px 20px; }
  .tss-sum { padding: 14px 14px 12px; }
  .tss-sum__top { flex-direction: column; align-items: stretch; gap: 10px; }
  .tss-sum__thumbs { padding-left: 10px; }
  .tss-sum__thumb { width: 46px; height: 46px; }
  .tss-sum__toggle { width: 100%; justify-content: center; padding: 7px 12px; }
  .tss-track { margin-top: 12px; }
  .tss-track__label { font-size: .7rem; }
  .tss-sum__totals { margin-left: 0; }
  .tss-thanks__duo { gap: 12px; margin-top: 12px; }
  .tss-thanks__collector .vk-confirm { padding: 14px; }
  .tss-thanks__collector .vk-confirm__badge { display: none; }
  .tss-follow { padding: 14px; }
  .tss-follow__btns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .tss-follow__btn { flex-direction: column; gap: 4px; padding: 8px 4px; border-radius: 16px; font-size: .74rem; text-align: center; }
}
