/* Partner e-kinkekaart purchase flow. Everything is scoped under .kk-order so it can sit
   next to main.css without touching the rest of the site. Fonts: Inter and Roboto Condensed
   (Google Fonts link in the page head, see HANDOFF.md). */

.kk-order {
  --kk-orange: #f56b00;
  --kk-orange-hover: #e05f00;
  --kk-cream: #fff4e6;
  --kk-white: #ffffff;
  --kk-ink: #0d0d0d;
  --kk-muted: #666666;
  --kk-line: rgba(13, 13, 13, 0.08);
  --kk-error: #c62828;
  --kk-font: "Inter", system-ui, sans-serif;
  --kk-font-num: "Roboto Condensed", "Arial Narrow", sans-serif;
  --kk-radius: 20px;
  --kk-radius-inner: 16px;
  --kk-radius-field: 12px;
  --kk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --kk-spring: cubic-bezier(0.34, 1.32, 0.64, 1);

  container-type: inline-size;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(20px, 6cqi, 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 4cqi, 20px);
  background: var(--kk-cream);
  border-radius: var(--kk-radius);
  font-family: var(--kk-font);
  color: var(--kk-ink);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  animation: kk-mount 0.6s var(--kk-ease) both;
}
.kk-order *, .kk-order *::before, .kk-order *::after { box-sizing: border-box; }
.kk-order :where(button, input, textarea) { font: inherit; color: inherit; }
.kk-order [hidden] { display: none !important; }
/* Inside the www.partnerkaart.ee site shell: its reset makes every svg and img
   display: block; max-width: 100%. Put the browser defaults back for the flow's icons and logos. */
.kk-order :where(svg, img) { display: revert; max-width: revert; }
.kk-order { line-height: normal; overflow-wrap: normal; }
/* The site's global focus outline (a black box inside the field) doubled the flow's own ring:
   fields that draw their own orange focus ring keep only that one (1.5). */
.kk-order :is(.kk-input, .kk-chip--custom input, .kk-qty__value):focus-visible { outline: none !important; }

@keyframes kk-mount { from { opacity: 0; transform: translateY(-32px); } }

/* ---------- Header ---------- */
.kk-order__head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kk-order__title {
  margin: 0;
  font-family: var(--kk-font-num);
  font-weight: 800;
  font-size: clamp(26px, 8cqi, 34px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
/* "Tagasi ostukorvi (n)" while cards are already in the basket (1.5) */
.kk-order__basket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--kk-white);
  color: var(--kk-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 150ms ease;
}
@media (hover: hover) { .kk-order__basket:hover { background: rgba(255, 255, 255, 0.6); } }
.kk-order__basket:focus-visible { outline: 2px solid var(--kk-orange); outline-offset: 2px; }
.kk-order__sub { margin: 0; font-size: 15px; line-height: 22px; color: var(--kk-muted); }

.kk-steps {
  display: inline-flex;
  gap: 2px;
  margin-top: 14px;
  padding: 5px;
  background: var(--kk-white);
  border-radius: 999px;
}
.kk-steps__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 999px;
  font-family: var(--kk-font-num) !important;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.4) !important;
  cursor: default;
  transition: background 300ms var(--kk-ease), color 300ms var(--kk-ease);
}
.kk-steps__tab.is-done { color: var(--kk-orange) !important; cursor: pointer; }
.kk-steps__tab.is-active { background: var(--kk-orange); color: var(--kk-white) !important; }
.kk-steps__short { display: none; }
@container (max-width: 479px) {
  .kk-steps__long { display: none; }
  .kk-steps__short { display: inline; }
  .kk-steps__tab { padding: 11px; }
}

/* ---------- Alert ---------- */
.kk-order__alert {
  padding: 12px 16px;
  border-radius: var(--kk-radius-field);
  background: #fdecea;
  color: var(--kk-error);
  font-size: 14px;
  text-align: left;
}

/* ---------- Steps and their entrance ---------- */
.kk-order__stage { position: relative; transition: height 450ms var(--kk-ease); }
.kk-step { display: flex; flex-direction: column; gap: 18px; }
.kk-step.is-leaving { opacity: 0; transition: opacity 340ms var(--kk-ease); }
.kk-step.is-entering .kk-anim {
  animation: kk-rise 0.95s var(--kk-ease) both;
  animation-delay: calc(0.05s + var(--i, 0) * 0.07s);
}
@keyframes kk-rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- Step 1: carousel ---------- */
.kk-carousel {
  --kk-card-w: 150px;
  --kk-card-h: 214px;
  position: relative;
  height: 290px;
  perspective: 1400px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  /* cards may spill past the form, as in the prototype */
  overflow: visible;
}
.kk-carousel.is-dragging { cursor: grabbing; }
@media (min-width: 810px) {
  .kk-carousel { --kk-card-w: 232px; --kk-card-h: 332px; height: 430px; }
}
.kk-carousel__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--kk-card-w);
  height: var(--kk-card-h);
  margin: calc(var(--kk-card-h) / -2) 0 0 calc(var(--kk-card-w) / -2);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background-color: #ededed;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 3px var(--kk-cream);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
  transition: transform 560ms var(--kk-spring);
  will-change: transform;
}
.kk-carousel__card:focus-visible { outline: 3px solid var(--kk-orange); outline-offset: 4px; }
.kk-carousel__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--kk-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 300ms var(--kk-spring);
}
.kk-carousel__card.is-active .kk-carousel__check { transform: scale(1); }

/* ---------- Step 1: amount ---------- */
.kk-amount { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.kk-amount__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.kk-chip {
  appearance: none;
  border: 0;
  min-width: 72px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--kk-white);
  font-family: var(--kk-font-num) !important;
  font-weight: 700;
  font-size: 16px;
  color: var(--kk-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, color 200ms ease, transform 160ms ease;
}
.kk-chip:active { transform: scale(0.96); }
.kk-chip.is-active { background: var(--kk-orange); color: var(--kk-white); }
.kk-chip--custom {
  gap: 3px;
  min-width: 128px;
  cursor: text;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.kk-chip--custom input {
  width: 8ch;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: center;
  outline: none;
}
.kk-chip--custom input::placeholder { color: rgba(13, 13, 13, 0.55); }
.kk-chip--custom .kk-chip__unit { display: none; }
.kk-chip--custom.has-value .kk-chip__unit { display: inline; }
.kk-chip--custom.is-active input::placeholder { color: rgba(255, 255, 255, 0.75); }
/* typing: a white field with an orange ring; once left with an amount it is a selected chip */
.kk-chip--custom:focus-within { background: var(--kk-white); color: var(--kk-ink); box-shadow: inset 0 0 0 2px var(--kk-orange); }
.kk-chip--custom:focus-within input::placeholder { color: rgba(13, 13, 13, 0.35); }

/* ---------- Fields ---------- */
.kk-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.kk-label { font-size: 14px; font-weight: 600; color: var(--kk-ink); }
.kk-label--center { text-align: center; }
.kk-req { color: var(--kk-orange); }
.kk-optional { font-weight: 400; color: var(--kk-muted); }
.kk-hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--kk-muted); }
.kk-hint--center { text-align: center; }
.kk-hint--right { text-align: right; }
.kk-field-error { margin: 0; font-size: 13px; color: var(--kk-error); }
.kk-input {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--kk-radius-field);
  background: var(--kk-white);
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  color: var(--kk-ink);
  resize: vertical;
  outline: none;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 160ms ease;
}
.kk-input:focus { box-shadow: inset 0 0 0 1.5px var(--kk-orange); }
.kk-input::placeholder { color: rgba(13, 13, 13, 0.4); }
.kk-input--grow { resize: none; overflow: hidden; }
.kk-input.is-invalid { box-shadow: inset 0 0 0 1.5px var(--kk-error); }
/* Riik: a native select styled as the text fields, with its own chevron */
.kk-select { position: relative; }
.kk-select__control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  resize: none;
  text-overflow: ellipsis;
}
.kk-select__control::-ms-expand { display: none; }
.kk-select__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  translate: 0 -50%;
  color: var(--kk-ink);
  pointer-events: none;
}
.kk-select__control:disabled { cursor: default; opacity: 0.5; }
/* iOS zooms into fields under 16px */
@media (max-width: 809px) { .kk-input, .kk-qty__value, .kk-chip--custom input { font-size: 16px !important; } }

.kk-qty { display: inline-flex; align-items: center; gap: 14px; }
.kk-qty__btn {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.06);
  color: var(--kk-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, transform 160ms ease, opacity 200ms ease;
}
.kk-qty__btn--plus { background: var(--kk-orange); color: var(--kk-white); }
.kk-qty__btn:active { transform: scale(0.92); }
.kk-qty__btn:disabled { opacity: 0.35; cursor: default; }
.kk-qty__value {
  width: 56px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--kk-font-num);
  font-weight: 700;
  font-size: 30px;
  color: var(--kk-ink);
  outline: none;
}

.kk-date { position: relative; }
.kk-date .kk-input { cursor: pointer; padding-right: 44px; }
.kk-date__icon { position: absolute; right: 14px; top: 15px; color: var(--kk-orange); pointer-events: none; }

.kk-check { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 14px; cursor: pointer; }
.kk-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kk-check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--kk-white);
  box-shadow: inset 0 0 0 1.5px rgba(13, 13, 13, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.kk-check__box svg { opacity: 0; transform: scale(0.6); transition: opacity 160ms ease, transform 200ms var(--kk-spring); }
.kk-check input:checked + .kk-check__box { background: var(--kk-orange); box-shadow: none; }
.kk-check input:checked + .kk-check__box svg { opacity: 1; transform: scale(1); }
.kk-check input:focus-visible + .kk-check__box { outline: 2px solid var(--kk-orange); outline-offset: 2px; }

/* ---------- Step 3: receipt (Paper "Ülevaade v1") ---------- */
.kk-receipt {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(18px, 5cqi, 28px) clamp(18px, 5.6cqi, 32px);
  background: var(--kk-white);
  border-radius: var(--kk-radius-inner);
  text-align: left;
}
.kk-receipt__product { display: flex; align-items: center; gap: 18px; }
.kk-receipt__thumb {
  width: 60px;
  aspect-ratio: 0.72;
  flex-shrink: 0;
  border-radius: 10px;
  background: #ededed center / cover no-repeat;
}
.kk-step.is-entering .kk-receipt__thumb { animation: kk-stamp 0.6s var(--kk-spring) 0.15s both; }
@keyframes kk-stamp { from { opacity: 0; transform: rotate(-8deg) scale(0.85); } }
.kk-receipt__name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 14px; color: var(--kk-muted); }
.kk-receipt__name strong { font-size: 16px; font-weight: 600; color: var(--kk-ink); }
.kk-receipt__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--kk-line);
  border-bottom: 1px solid var(--kk-line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.kk-receipt__line strong { font-family: var(--kk-font-num); font-weight: 700; font-size: 16px; }
.kk-receipt__rows { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.kk-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: baseline;
}
.kk-row dt { font-size: 14px; color: var(--kk-muted); }
.kk-row dd { grid-column: 2; margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.kk-row .kk-link { grid-column: 3; grid-row: 1; }
@container (max-width: 419px) {
  .kk-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .kk-row dd { grid-column: 1 / -1; grid-row: 2; }
  .kk-row .kk-link { grid-column: 2; }
}
.kk-italic { font-style: italic; }
.kk-receipt__total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(13, 13, 13, 0.14);
}
.kk-receipt__total > span { padding-bottom: 5px; font-size: 16px; font-weight: 600; }

.kk-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px !important;
  font-weight: 500;
  color: var(--kk-muted) !important;
  text-decoration: underline;
  text-decoration-color: rgba(102, 102, 102, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.kk-big {
  font-family: var(--kk-font-num);
  font-weight: 700;
  font-size: clamp(32px, 9cqi, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */
.kk-order__foot { display: flex; flex-direction: column; gap: 12px; }
.kk-order__total { display: flex; justify-content: space-between; align-items: flex-end; }
.kk-order__total > span { padding-bottom: 4px; font-size: 13px; color: var(--kk-muted); }
.kk-order__buttons { display: flex; justify-content: center; gap: 8px; }
.kk-btn {
  appearance: none;
  border: 0;
  padding: 13px 40px;
  border-radius: 16px;
  font-family: var(--kk-font-num) !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease, transform 160ms ease;
}
@supports (corner-shape: superellipse(1.75)) { .kk-btn { corner-shape: superellipse(1.75); } }
.kk-btn:active:not(:disabled) { transform: scale(0.98); }
.kk-btn--black { background: var(--kk-ink); color: var(--kk-white) !important; }
.kk-btn--black:hover:not(:disabled) { background: #000; }
.kk-btn--ghost { padding: 13px 16px; background: rgba(13, 13, 13, 0.06); color: var(--kk-ink) !important; }
.kk-btn--ghost:hover { background: rgba(13, 13, 13, 0.1); }
.kk-btn:disabled { opacity: 0.5; cursor: default; }
.kk-order[data-step="details"] .kk-btn--black,
.kk-order[data-step="confirm"] .kk-btn--black { flex: 1; padding-inline: 16px; }

/* ---------- jQuery UI datepicker, in the flow's look ---------- */
.ui-datepicker.kk-datepicker {
  padding: 12px;
  border: 0 !important;
  border-radius: 16px;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(13, 13, 13, 0.1);
  font-family: "Inter", system-ui, sans-serif;
  z-index: 1000 !important;
}
.kk-datepicker .ui-widget-header { border: 0; background: transparent; font-weight: 600; }
.kk-datepicker .ui-state-default { border: 0 !important; background: transparent !important; text-align: center; border-radius: 8px; padding: 6px 0; }
.kk-datepicker .ui-state-hover { background: #fff4e6 !important; }
.kk-datepicker .ui-state-active, .kk-datepicker .ui-state-highlight.ui-state-active { background: #f56b00 !important; color: #fff !important; }
.kk-datepicker .ui-state-highlight { color: #f56b00 !important; }

@media (prefers-reduced-motion: reduce) {
  .kk-order, .kk-step.is-entering .kk-anim, .kk-step.is-entering .kk-receipt__thumb { animation: none !important; }
  .kk-carousel__card, .kk-order__stage, .kk-step.is-leaving { transition: none !important; }
}

/* ---------- Basket (kingikorv) ---------- */
.kk-basket__items { display: flex; flex-direction: column; gap: 14px; }
.kk-basket__items.is-entering .kk-anim,
.kk-thanks .kk-anim {
  animation: kk-rise 0.95s var(--kk-ease) both;
  animation-delay: calc(0.05s + var(--i, 0) * 0.07s);
}
.kk-receipt__actions { display: flex; gap: 14px; flex-shrink: 0; }
.kk-emails { margin: 0; padding: 0; list-style: none; }
.kk-emails li { overflow-wrap: anywhere; }
.kk-emails + .kk-link { margin-top: 4px; }
.kk-add {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px 0 8px;
  border-radius: 999px;
  background: var(--kk-white);
  font-family: var(--kk-font-num);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kk-ink) !important;
  text-decoration: none !important;
  transition: transform 160ms ease, background 200ms ease;
}
.kk-add:hover { background: #fffaf3; }
.kk-add:active { transform: scale(0.97); }
.kk-add svg {
  width: 32px;
  height: 32px;
  padding: 9px;
  border-radius: 50%;
  background: var(--kk-orange);
  color: var(--kk-white);
  transition: transform 300ms var(--kk-spring);
}
.kk-add:hover svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .kk-add svg { transition: none; } }

.kk-checkout { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; text-align: left; }
.kk-checkout__title {
  margin: 0;
  font-family: var(--kk-font-num);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
}
.kk-checkout__fields { display: flex; flex-direction: column; gap: 16px; }
.kk-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@container (max-width: 419px) { .kk-field-pair { grid-template-columns: 1fr; } }

.kk-seg { display: flex; align-self: center; gap: 2px; padding: 5px; background: var(--kk-white); border-radius: 999px; }
.kk-seg__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--kk-font-num) !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.5) !important;
  cursor: pointer;
  transition: background 300ms var(--kk-ease), color 300ms var(--kk-ease);
}
.kk-seg__tab.is-active { background: var(--kk-orange); color: var(--kk-white) !important; }

.kk-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.kk-pay__item {
  appearance: none;
  border: 0;
  height: 56px;
  padding: 10px;
  border-radius: var(--kk-radius-field);
  background: var(--kk-white);
  box-shadow: inset 0 0 0 1.5px transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.kk-pay__item img { max-width: 100%; max-height: 28px; object-fit: contain; }
.kk-pay__item:active { transform: scale(0.97); }
.kk-pay__item.is-active { box-shadow: inset 0 0 0 2px var(--kk-orange); }
.kk-pay.is-invalid .kk-pay__item:not(.is-active) { box-shadow: inset 0 0 0 1.5px var(--kk-error); }

.kk-terms { display: flex; flex-direction: column; gap: 10px; }
.kk-terms .kk-check { align-items: flex-start; margin-top: 0; line-height: 20px; }
.kk-terms .kk-check__box { flex-shrink: 0; margin-top: 0; }
.kk-terms a { color: var(--kk-ink); text-decoration: underline; text-underline-offset: 3px; }
.kk-checkout__total { padding-top: 16px; }
.kk-btn--full { width: 100%; padding: 15px 16px; font-size: 15px; text-align: center; text-decoration: none; }
.kk-empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 32px 0; }
a.kk-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; }

/* ---------- Thank-you ---------- */
.kk-thanks { gap: 16px; }
.kk-thanks__art { position: relative; height: 196px; margin: 8px 0 4px; }
.kk-thanks__card {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 128px;
  height: 180px;
  margin-left: -64px;
  border-radius: 14px;
  background: #ededed center / cover no-repeat;
  box-shadow: 0 0 0 3px var(--kk-cream);
  transform: translateX(calc(var(--n) * 38px)) rotate(calc(var(--n) * 8deg - 3deg));
  animation: kk-deal 0.7s var(--kk-spring) both;
  animation-delay: calc(0.1s + var(--d, 0) * 0.08s);
}
.kk-thanks__card--blank { background: var(--kk-orange); }
@keyframes kk-deal { from { opacity: 0; transform: translateY(40px) rotate(0deg) scale(0.9); } }
.kk-thanks__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 52px;
  height: 52px;
  margin-left: 26px;
  border-radius: 50%;
  background: var(--kk-orange);
  box-shadow: 0 0 0 4px var(--kk-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: kk-pop 0.5s var(--kk-spring) 0.45s both;
}
.kk-thanks--error .kk-thanks__badge { background: var(--kk-ink); }
@keyframes kk-pop { from { transform: scale(0); } }
.kk-thanks__tick { stroke-dasharray: 20; stroke-dashoffset: 20; animation: kk-tick 0.4s var(--kk-ease) 0.75s forwards; }
@keyframes kk-tick { to { stroke-dashoffset: 0; } }
.kk-thanks__title {
  margin: 0;
  font-family: var(--kk-font-num);
  font-weight: 800;
  font-size: clamp(40px, 12cqi, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.kk-thanks--error .kk-thanks__title { font-size: clamp(26px, 7cqi, 34px); line-height: 1.1; text-transform: none; }
.kk-thanks__text {
  max-width: 420px;
  margin: 2px auto 6px;
  font-size: 16px;
  line-height: 24px;
  color: var(--kk-muted);
  text-wrap: pretty;
}
.kk-thanks__item { display: flex; align-items: center; gap: 16px; }
.kk-thanks__item + .kk-thanks__item { padding-top: 14px; border-top: 1px solid var(--kk-line); }
.kk-thanks__item .kk-receipt__thumb { width: 48px; }
.kk-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kk-thanks__actions .kk-btn { padding: 15px 24px; }
@media (max-width: 809px) { .kk-thanks__actions { align-self: stretch; } .kk-thanks__actions .kk-btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
  .kk-basket__items.is-entering .kk-anim, .kk-thanks .kk-anim, .kk-thanks__card, .kk-thanks__badge { animation: none !important; }
  .kk-thanks__tick { animation: none; stroke-dashoffset: 0; }
}
.kk-basket .kk-row { grid-template-columns: 136px minmax(0, 1fr) auto; }
@container (max-width: 419px) { .kk-basket .kk-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Page band (1.1) ---------- */
/* Optional full-width cream section around a .kk-order block, e.g. inside the site shell's <main>. */
.kk-page { background: #fff4e6; padding: 48px 16px 96px; overflow-x: clip; }
/* Inside the site shell (layouts.partnerkaart-shell): clear the site's fixed nav. --nav-offset is a site token (104px, 88px on phones). */
.kk-shell-main { padding-top: var(--nav-offset, 104px); }

main:has(.kk-acct) .kk-page { padding-top: 8px !important; }
