/* ==========================================================================
   Posti kit — design tokens extracted from www.posti.fi (real computed styles)
   Fonts: Posti Font woff2 (local) · fg #47494B · strong #2A2B2D · accent #E87500
   ========================================================================== */

@font-face {
  font-family: 'Posti Font';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PostiFont-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Posti Font';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PostiFont-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Posti Font';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PostiFont-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Posti Font';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('fonts/PostiFont-ExtraBold.woff2') format('woff2');
}

:root {
  --fg: #47494b;
  --fg-strong: #2a2b2d;
  --fg-muted: #66686a;
  --border: #e5e5e5;
  --border-mid: #d0d1d3;
  --border-strong: #818589;
  --bg-2: #fafafa;
  --bg-3: #f2f2f2;
  --accent: #e87500;
  --accent-hover: #b85c00;
  --accent-pressed: #8a4500;
  --accent-soft: #fff2e5;
  --accent-soft-2: #ffe6cc;
  --error: #b02c13;
  --error-soft: #fae8e5;
  --success: #006b31;
  --success-soft: #edf7ed;
  --info: #005dc0;
  --info-soft: #e5eef9;
  --radius-sm: 1rem;
  --shadow-card: rgba(0, 0, 0, .06) 0 3px 1px 0, rgba(0, 0, 0, .08) 0 1px 1px 0,
                 rgba(0, 0, 0, .08) 0 3px 8px 0, rgba(0, 0, 0, .04) 0 15px 22px 0;
  --shadow-surface: rgba(0, 0, 0, .12) 0 1px 3px 0, rgba(0, 0, 0, .08) 0 4px 12px 0;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Posti Font', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--fg);
  background: #fff;
}

a { color: inherit; }

img { border: 0; }

button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */

.topbar {
  background: #fff;
  position: relative;
  z-index: 20;
}

.topbar__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 20px 0 4px;
  height: 72px;
  gap: 16px;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.logo { display: flex; align-items: center; padding-left: 16px; }
.logo img { width: 60px; height: 34px; display: block; }

.rootlist {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 1px 0 0;
  padding: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 44px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #fff;
  background: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.pill--ghost { background: transparent; color: var(--fg); }
.pill--ghost:hover { background: var(--bg-3); }

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
}

.util {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.util:hover { background: var(--bg-3); }
.util svg { width: 24px; height: 24px; fill: currentColor; }

.btn-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 1px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  color: var(--fg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-all svg { width: 20px; height: 20px; fill: currentColor; }

.lang { display: flex; gap: 4px; margin-left: 4px; }
.lang span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.lang .is-on { background: var(--fg); color: #fff; }
.lang .off { background: var(--bg-3); color: var(--fg-muted); }

.megarow { padding: 0 4px 8px; }
.megarow ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 2px 0 0;
}
.megarow a,
.megarow button {
  display: inline-block;
  padding: 8px 12px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.megarow a:hover,
.megarow button:hover { background: var(--bg-3); }
.megarow .is-on { background: var(--bg-3); }

/* ---------- layout ---------- */

.wrap { max-width: 980px; margin: 0 auto; padding: 0 32px; }

.page-title {
  margin: 0;
  padding: 128px 32px 64px;
  font-size: 48px;
  line-height: 60px;
  font-weight: 700;
  color: var(--fg-strong);
}

/* ---------- search card ---------- */

.searchband { background: #fff; padding: 160px 0 0; }

.main { padding-top: 8px; }

.searchcard {
  background: #fff;
  padding: 32px 32px 48px;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.searchcard h1 {
  margin: 0;
  font-size: 28px;
  line-height: 39.2px;
  font-weight: 700;
  color: var(--fg-strong);
}

.searchcard p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--fg-strong); }
.searchcard p a { color: var(--fg-strong); }

.field { display: grid; gap: 16px; }

.inputwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 8px 24px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.inputwrap:focus-within { border-color: var(--accent); background: #fff; }

.inputwrap label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  pointer-events: none;
  transition: font-size .15s ease, top .15s ease;
}
.inputwrap input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 16px 0 0;
  font: inherit;
  color: var(--fg);
  text-transform: uppercase;
  outline: none;
}
.inputwrap input::placeholder { color: transparent; }

.inputwrap input:focus + label,
.inputwrap input:not(:placeholder-shown) + label {
  top: 8px;
  transform: none;
  font-size: 13px;
}

.inputwrap--filled label { top: 8px; transform: none; font-size: 13px; }

.go {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 32px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.go svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- status hero ---------- */

.main { padding: 0 0 40px; }

.hero { padding: 24px 20px 12px; }
.hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 39.2px;
  font-weight: 700;
  color: var(--fg-strong);
  word-break: break-all;
}
.hero__status { margin: 2px 0 0; font-size: 19px; line-height: 26px; font-weight: 700; }
.hero__sub { margin: 6px 0 0; font-size: 16px; line-height: 24px; }

.pillrow { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; flex-wrap: wrap; }

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-pressed);
  font-size: 13px;
  font-weight: 700;
}

.stamp { font-size: 13px; font-weight: 500; color: var(--fg-muted); }

/* ---------- columns ---------- */

.cols {
  display: grid;
  grid-template-columns: 390px 390px;
  gap: 32px;
  padding: 0 20px;
  align-items: start;
}

.surface {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-surface);
  overflow: hidden;
}

.surface + .surface { margin-top: 20px; }

.shead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 20px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--fg-strong);
}
.shead span { font-weight: 400; color: var(--fg-muted); }

/* ---------- timeline ---------- */

.tl { position: relative; padding: 0 20px 4px; }

.tl__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  position: relative;
  padding-bottom: 18px;
}
.tl__row:last-child { padding-bottom: 4px; }

.tl__dot {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--fg);
}
.tl__dot svg { width: 18px; height: 18px; fill: currentColor; }

.tl__row--done .tl__dot { background: var(--success-soft); border-color: #a3d3a5; color: var(--success); }
.tl__row--live .tl__dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }

.tl__row:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl__row--done:not(:last-child)::before { background: #a3d3a5; }

.tl__txt { padding-top: 5px; }
.tl__txt b { display: block; font-size: 16px; line-height: 19.2px; font-weight: 700; }
.tl__txt small { display: block; margin-top: 2px; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--fg-muted); }

/* ---------- alert ---------- */

.alert {
  margin: 4px 20px 20px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-strong);
}
.alert b { display: block; margin-bottom: 4px; font-size: 14px; color: var(--accent-pressed); }
.alert span { display: block; }
.alert .ref { margin-top: 6px; font-size: 13px; color: var(--fg-muted); }

/* ---------- detail list ---------- */

.dl { list-style: none; margin: 0; padding: 0; }

.dl li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px 20px;
  border-top: 1px solid var(--border);
}
.dl li:first-child { border-top: 0; }
.dl svg { flex: 0 0 24px; width: 24px; height: 24px; fill: var(--fg); }
.dl div { min-width: 0; }
.dl small { display: block; font-size: 13px; line-height: 16px; font-weight: 500; color: var(--fg); }
.dl b { display: block; margin-top: 3px; font-size: 16px; line-height: 19.2px; font-weight: 700; color: var(--fg-strong); overflow-wrap: anywhere; }

.copy {
  margin-left: auto;
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.copy:hover { background: var(--bg-3); }

/* ---------- form ---------- */

.form { padding: 0 20px 20px; }
.form h2 { margin: 0 0 4px; font-size: 19px; line-height: 26px; font-weight: 700; color: var(--fg-strong); }
.form .lead { margin: 0 0 18px; font-size: 14px; line-height: 20px; }

.frow { display: flex; gap: 12px; }
.frow > * { flex: 1 1 0; }
.frow > .fixed { flex: 0 0 7.5rem; }

.fl { display: block; margin: 0 0 14px; }

.fl > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  color: var(--fg);
}

.fl input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  font: inherit;
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.fl input:focus { border-color: var(--accent); background: #fff; }
.fl input::placeholder { color: #9b9d9f; }
.fl input[aria-invalid='true'] { border-color: var(--error); background: #fff; }

.fl .hint { display: block; margin-top: 5px; font-size: 12.5px; line-height: 17px; color: var(--fg-muted); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 18px;
  font-size: 13.5px;
  line-height: 19px;
}
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn[disabled] { background: var(--border-mid); border-color: var(--border-mid); cursor: default; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.secure svg { width: 14px; height: 14px; fill: #4b8f4f; }

.err {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--error-soft);
  border-left: 3px solid var(--error);
  font-size: 13.5px;
  line-height: 19px;
  color: var(--error);
}
.err.is-on { display: block; }

/* ---------- footer ---------- */

.footer { background: var(--bg-2); margin-top: 40px; padding: 40px 0 0; }
.footer .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0 32px; }
.footer h3 { margin: 0 0 12px; font-size: 24px; line-height: 34px; font-weight: 700; color: var(--fg); }
.footer ul { list-style: none; margin: 0 0 28px; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; line-height: 17px; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.footer .social { display: flex; gap: 14px; }
.footer .social a { font-weight: 700; }

/* ---------- loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(2px);
}
.loader.is-on { display: grid; }
.loader__box { display: grid; justify-items: center; gap: 14px; }

.spin {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: sp .8s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

.loader p { margin: 0; font-size: 14px; font-weight: 500; color: var(--fg-muted); }

/* ---------- checkout / payment page ---------- */

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted);
}
.bar svg { width: 16px; height: 16px; fill: #4b8f4f; }

.steps { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--fg-muted); }
.steps li + li::before { content: '›'; margin-right: 2px; color: var(--border-mid); }
.steps .done { color: var(--success); font-weight: 700; }
.steps .now { color: var(--fg-strong); font-weight: 700; }

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 32px;
  align-items: start;
  padding: 28px 0 48px;
}

.payhead h1 { margin: 0 0 6px; font-size: 28px; line-height: 36px; font-weight: 700; color: var(--fg-strong); }
.payhead p { margin: 0 0 22px; font-size: 14px; line-height: 20px; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--fg-strong); }

.cardnum { position: relative; }
.cardnum input { padding-right: 96px; letter-spacing: .4px; }

.brands { display: flex; gap: 8px; margin-top: 9px; opacity: .95; }
.brands svg { display: block; height: 26px; width: 34px; opacity: .35; transition: opacity .15s ease; }
.ds__head #dsMark svg { width: 40px; height: 26px; }
.brands svg.is-on { opacity: 1; }
.brands #brandVisa.is-on { color: #1a1f71; }
.brands #brandMc.is-on { color: #eb001b; }

.cvvwrap { position: relative; }
.cvvwrap input { padding-right: 42px; }
.cvvhelp {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: #fff;
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cvvtip {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--fg);
}
.cvvtip.is-on { display: block; }
.cvvtip svg { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 8px; }

.aside { position: sticky; top: 16px; }

.sum { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.sum__top { padding: 18px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.sum__top .t { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.sum__item { display: flex; gap: 12px; margin-top: 10px; }
.sum__item svg { flex: 0 0 46px; width: 46px; height: 36px; }
.sum__item b { display: block; font-size: 13.5px; line-height: 18px; }
.sum__item small { display: block; font-size: 12px; color: var(--fg-muted); }

.sum dl { margin: 0; padding: 16px 18px; font-size: 13.5px; }
.sum dl div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.sum dl dt { color: var(--fg); }
.sum dl dd { margin: 0; font-weight: 700; white-space: nowrap; }
.sum dl .total { margin: 12px -18px 0; padding: 12px 18px 0; border-top: 1px solid var(--border); font-size: 15px; }
.sum dl .total dt { font-weight: 700; }
.sum dl .total dd { font-size: 23px; line-height: 26px; font-weight: 700; color: var(--accent); }
.sum dl .total dd small { font-size: 12px; font-weight: 700; vertical-align: 6px; color: var(--accent); }
.sum dl .ref { margin-top: 7px; font-size: 12px; color: var(--fg-muted); }
.sum dl .ref dt, .sum dl .ref dd { font-weight: 400; color: var(--fg-muted); }
.sum dl .ref:first-of-type { margin-top: 14px; }
.sum__note { padding: 0 18px 16px; font-size: 12px; line-height: 17px; color: var(--fg-muted); }

.conf {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 18px;
}
.conf b { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 5px; }
.conf span { display: block; font-size: 13.5px; font-weight: 700; color: var(--fg-strong); }
.conf small { display: block; margin-top: 6px; color: var(--fg-muted); }

/* ---------- 3-D Secure ---------- */

.ds { max-width: 470px; margin: 40px auto 0; }
.ds__card { background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; border: 1px solid var(--border); }

.ds__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #1a2b48;
  color: #fff;
}
.ds__head .l { display: flex; align-items: center; gap: 10px; }
.ds__head svg.mark { width: 30px; height: 30px; fill: #fff; opacity: .95; }
.ds__head #dsMark { display: block; flex: 0 0 auto; }
.ds__head #dsMark svg { display: block; width: 58px; height: 24px; fill: #fff; opacity: .95; }
.ds__head b { display: block; font-size: 14px; line-height: 18px; font-weight: 700; }
.ds__head small { display: block; font-size: 11.5px; line-height: 15px; opacity: .75; }

.ds__body { padding: 22px 20px; }

.ds__lead { margin: 0 0 16px; font-size: 14.5px; line-height: 21px; }
.ds__lead b { font-weight: 700; }

.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0 0 18px; }
.meta div { background: #fff; padding: 10px 12px; }
.meta b { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.meta span { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--fg-strong); overflow-wrap: anywhere; }

.pinrow { display: flex; gap: 9px; margin: 0 0 6px; }
.pin-cell { position: relative; flex: 1 1 0; }
.pin-cell input {
  width: 100%;
  height: 58px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: transparent;
  caret-color: var(--fg-strong);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.pin-cell input:focus { border-color: var(--accent); background: #fff; }
.pin-cell.filled input { border-color: var(--border-strong); }
.pin-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-strong);
  pointer-events: none;
}
.pin-cell.filled::after { content: attr(data-ch); }

.ds__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; font-size: 13px; }
.ds__row .clock { font-weight: 700; color: var(--fg); }
.ds__row .clock.is-low { color: var(--error); }
.ds__row .resend { border: 0; background: transparent; color: var(--info); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.ds__row .resend[disabled] { color: var(--fg-muted); cursor: default; }

.ds__foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; line-height: 17px; color: var(--fg-muted); }

.why { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--border-mid); font-size: 12.5px; line-height: 18px; color: var(--fg-muted); }
.why b { display: block; color: var(--fg); margin-bottom: 3px; }

/* mastercard variant */
.ds--mc .ds__head { background: #b3121b; }
.ds--mc .ds__head small { color: #f6c9cc; opacity: 1; }

/* ---------- success ---------- */

.done { max-width: 520px; margin: 56px auto 64px; text-align: center; padding: 0 20px; }
.done__ic { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-soft); border: 2px solid #a3d3a5; color: var(--success); }
.done__ic svg { width: 30px; height: 30px; fill: currentColor; }
.done h1 { margin: 0 0 10px; font-size: 26px; line-height: 34px; font-weight: 700; color: var(--fg-strong); }
.done p { margin: 0 auto 18px; font-size: 14.5px; line-height: 21px; max-width: 420px; }

.prog { max-width: 380px; height: 4px; margin: 0 auto; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .2s linear; }

.done .rd { margin: 12px auto 0; font-size: 12.5px; color: var(--fg-muted); }

.recap { margin: 22px auto 0; max-width: 380px; text-align: left; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.recap div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13px; border-top: 1px solid var(--border); }
.recap div:first-child { border-top: 0; }
.recap b { font-weight: 700; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .searchcard { grid-template-columns: minmax(0, 1fr); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .page-title { padding: 64px 16px 32px; font-size: 34px; line-height: 44px; }
  .topbar__right .util span { display: none; }
  .megarow ul { overflow-x: auto; }
  .btn-all span { display: none; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar__right { display: none; }
  .rootlist { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 16px 12px 10px; }
  .hero h1 { font-size: 21px; line-height: 28px; }
  .cols, .tl, .dl li, .form, .alert { padding-left: 14px; padding-right: 14px; }
  .alert { margin-left: 14px; margin-right: 14px; }
  .footer .grid { grid-template-columns: 1fr; }
  .pinrow { gap: 7px; }
  .pin-cell input { height: 50px; font-size: 19px; }
  .steps li:nth-child(1) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
