/* ===== Blodprov checkout (bestall) - drop-off optimized ===== */
.co { min-height: 100%; background: var(--paper); font-family: var(--font-body); color: var(--text-body); }
.co * { box-sizing: border-box; }
.co-topbar { height: 64px; background: var(--white); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 32px); }
.co-topbar__logo img { height: 22px; display: block; }
.co-topbar__secure { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--mint-700); }
.co-wrap { max-width: 980px; margin: 0 auto; padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 24px) 80px; }

/* stepper */
.co-stepper { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 0 0 clamp(28px, 4vw, 40px); }
.co-step { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--text-muted); font-size: var(--text-sm); font-weight: var(--fw-semibold); }
.co-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.co-step__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: var(--fw-bold); flex: none; font-variant-numeric: tabular-nums; }
.co-step.is-active { color: var(--pine-700); }
.co-step.is-active .co-step__dot { background: var(--pine-500); color: #fff; }
.co-step.is-done .co-step__dot { background: var(--mint-300); color: var(--pine-700); }
.co-step.is-done:not(:last-child)::after { background: var(--mint-400); }
.co-step__label { white-space: nowrap; }
@media (max-width: 620px) { .co-step__label { display: none; } .co-step { flex: none; } .co-step:not(:last-child)::after { width: 28px; flex: none; } .co-stepper { justify-content: center; } }

/* layout grid */
.co-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(20px, 4vw, 36px); align-items: start; }
.co-main { min-width: 0; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 36px); }
.co-h { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--pine-700); letter-spacing: var(--ls-snug); margin: 0 0 8px; }
.co-sub { font-size: var(--text-base); color: var(--slate-600); margin: 0 0 26px; line-height: var(--lh-normal); }

/* tier radio list */
.co-tierlist { display: flex; flex-direction: column; gap: 12px; }
.co-tier { display: flex; align-items: flex-start; gap: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.co-tier:hover { border-color: var(--border-strong); }
.co-tier.is-selected { border-color: var(--pine-500); background: var(--mint-50); }
.co-tier input { position: absolute; opacity: 0; width: 0; height: 0; }
.co-tier__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 3px; }
.co-tier__radio span { width: 11px; height: 11px; border-radius: 50%; background: var(--pine-500); transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring); }
.co-tier.is-selected .co-tier__radio { border-color: var(--pine-500); }
.co-tier.is-selected .co-tier__radio span { transform: scale(1); }
.co-tier__body { flex: 1; min-width: 0; }
.co-tier__top { display: flex; justify-content: space-between; gap: 12px; }
.co-tier__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-h4); color: var(--pine-700); }
.co-tier__price { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--pine-700); font-variant-numeric: tabular-nums; }
.co-tier__count { font-size: var(--text-sm); color: var(--slate-600); }
.co-tier__markers { display: block; margin-top: 8px; font-size: var(--text-xs); line-height: var(--lh-normal); color: var(--slate-600); text-wrap: pretty; }
.co-tier__markers strong { display: inline-block; margin-right: 4px; color: var(--pine-700); font-weight: var(--fw-semibold); }
.co-tier__note { display: inline-flex; width: fit-content; margin-top: 8px; padding: 4px 8px; border-radius: 999px;
  background: var(--mint-100); color: var(--mint-700); font-size: var(--text-xs); font-weight: var(--fw-semibold); }

/* addon checkbox */
.co-addons { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.co-addons__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-addons__title { font-size: var(--text-base); font-weight: var(--fw-semibold); color: var(--pine-700); }
.co-addons__hint { font-size: var(--text-xs); color: var(--text-muted); }
.co-addon { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--pine-700); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.co-addon:hover { border-color: var(--border-strong); }
.co-addon.is-selected { border-color: var(--pine-500); background: var(--mint-50); }
.co-addon input { position: absolute; opacity: 0; width: 0; height: 0; }
.co-addon__box { width: 22px; height: 22px; border-radius: var(--radius-xs); border: 1.5px solid var(--border-strong); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; margin-top: 1px; }
.co-addon input:checked + .co-addon__box { background: var(--pine-500); border-color: var(--pine-500); }
.co-addon__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.co-addon__name { color: var(--pine-700); font-weight: var(--fw-semibold); }
.co-addon__note { color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-normal); }
.co-addon__price { color: var(--mint-700); font-weight: var(--fw-semibold); white-space: nowrap; flex: none; }

/* fields */
.co-fields { display: flex; flex-direction: column; gap: 16px; }
.co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* sampling search and map */
.co-sampling-count { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: -6px 0 20px; color: var(--slate-600); font-size: var(--text-sm); }
.co-sampling-count > span:first-child { color: var(--accent-strong); display: inline-flex; }
.co-sampling-count strong { color: var(--pine-700); }
.co-postcode { margin-bottom: 18px; }
.co-postcode__label { display: block; margin-bottom: 7px; color: var(--pine-700); font-size: var(--text-sm); font-weight: var(--fw-semibold); }
.co-postcode__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.co-postcode__input { min-width: 0; width: 100%; height: 48px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: #fff;
  padding: 0 14px; color: var(--text-body); font: inherit; font-size: var(--text-base); letter-spacing: 0; outline: none; }
.co-postcode__input:hover { border-color: var(--border-strong); }
.co-postcode__input:focus { border-color: var(--pine-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint-300) 38%, transparent); }
.co-postcode__input[aria-invalid="true"] { border-color: var(--danger); }
.co-postcode__submit { height: 48px; min-width: 96px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-md); padding: 0 18px; background: var(--pine-600); color: #fff; font: inherit; font-size: var(--text-sm); font-weight: var(--fw-bold); cursor: pointer; }
.co-postcode__submit:hover:not(:disabled) { background: var(--pine-700); }
.co-postcode__submit:focus-visible { outline: 3px solid var(--mint-300); outline-offset: 2px; }
.co-postcode__submit:disabled { opacity: .6; cursor: wait; }
.co-postcode__help, .co-postcode__error { display: block; margin-top: 7px; font-size: var(--text-xs); line-height: var(--lh-normal); }
.co-postcode__help { color: var(--text-muted); }
.co-postcode__error { color: var(--danger); font-weight: var(--fw-semibold); }
.co-sampling-found { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--mint-300);
  border-radius: var(--radius-md); background: var(--mint-50); color: var(--slate-700); font-size: var(--text-sm); line-height: var(--lh-normal); }
.co-sampling-found svg { flex: none; margin-top: 1px; color: var(--accent-strong); }
.co-sampling-found strong { color: var(--pine-700); }
.co-map { width: 100%; height: 360px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); z-index: 0; }
.co-map-fallback { min-height: 180px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; background: var(--surface-sunken); color: var(--slate-600); text-align: center; font-size: var(--text-sm); }
.co-map .leaflet-control-attribution { font-size: 10px; }
.co-map-marker-wrap { display: flex; align-items: center; justify-content: center; background: transparent; border: 0; }
.co-map-marker-dot { width: 15px; height: 15px; display: block; border: 3px solid #fff; border-radius: 50%; background: var(--accent-strong);
  box-shadow: 0 1px 5px rgba(10, 49, 49, .38); transition: width var(--dur-fast), height var(--dur-fast), background var(--dur-fast); }
.co-map-marker-wrap.is-active { z-index: 1000 !important; }
.co-map-marker-wrap.is-active .co-map-marker-dot { width: 23px; height: 23px; background: var(--pine-700); }
.co-map-origin { filter: drop-shadow(0 1px 3px rgba(10, 49, 49, .35)); }
.co-location-results { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.co-location-results__heading { margin: 0 0 2px; color: var(--pine-700); font-family: var(--font-display); font-size: var(--text-h4); letter-spacing: 0; }
.co-location-result { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 11px; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 13px 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.co-location-result:hover { border-color: var(--border-strong); }
.co-location-result.is-active { border-color: var(--pine-500); background: var(--mint-50); }
.co-location-result:focus-visible { outline: 3px solid var(--mint-300); outline-offset: 2px; }
.co-location-result__pin { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  background: var(--mint-100); color: var(--pine-600); }
.co-location-result__body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.co-location-result__body strong { color: var(--pine-700); font-size: var(--text-sm); overflow-wrap: anywhere; }
.co-location-result__body span { color: var(--slate-600); font-size: var(--text-xs); line-height: var(--lh-normal); }
.co-location-result__body small { color: var(--mint-700); font-size: var(--text-xs); font-weight: var(--fw-semibold); }
.co-location-result__distance { padding-top: 3px; color: var(--pine-700); font-size: var(--text-xs); font-weight: var(--fw-bold); white-space: nowrap; }
.co-sampling-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--slate-600); font-size: var(--text-xs); line-height: var(--lh-normal); }
.co-sampling-note svg { flex: none; color: var(--accent-strong); margin-top: 1px; }

/* payment */
.co-errorbox { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); border-radius: var(--radius-md);
  background: var(--danger-bg); color: var(--danger); font-size: var(--text-sm); font-weight: var(--fw-semibold); line-height: var(--lh-normal); }
.co-errorbox svg { flex: none; margin-top: 1px; }
.co-payment-card { display: flex; align-items: flex-start; gap: 16px; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--mint-50), #fff); padding: 20px; }
.co-payment-card__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--pine-500); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.co-payment-card__body { min-width: 0; }
.co-payment-card__title { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--text-h4); color: var(--pine-700); letter-spacing: var(--ls-snug); }
.co-payment-card p { margin: 0; color: var(--slate-600); font-size: var(--text-base); line-height: var(--lh-normal); }
.co-payment-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.co-payment-card li { display: flex; align-items: center; gap: 8px; color: var(--pine-700); font-size: var(--text-sm); font-weight: var(--fw-semibold); }
.co-payment-card li svg { flex: none; color: var(--accent-strong); }
.co-embedded-shell { margin-top: 18px; min-height: 560px; overflow: hidden; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); background: #fff; }
.co-embedded-checkout { min-height: 560px; }
.co-embedded-loading { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border-subtle);
  color: var(--pine-700); font-size: var(--text-sm); font-weight: var(--fw-semibold); }
.co-embedded-loading svg { animation: co-spin .9s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }

/* actions */
.co-actions { margin-top: 28px; display: flex; }
.co-actions--split { justify-content: space-between; align-items: center; }
.co-actions:not(.co-actions--split) { justify-content: flex-end; }
.co-back { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--pine-600); }
.co-back:hover { color: var(--pine-700); }
.co-fineprint { display: flex; align-items: center; gap: 7px; justify-content: center; margin: 18px 0 0; font-size: var(--text-xs); color: var(--text-muted); }

/* summary */
.co-summary { position: sticky; top: 20px; }
.co-summary__card { background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-sm); }
.co-summary__head { padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }
.co-summary__eyebrow { font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--mint-700); }
.co-summary__name { display: block; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-h4); color: var(--pine-700); margin-top: 6px; }
.co-summary__count { display: block; font-size: var(--text-sm); color: var(--slate-600); }
.co-summary__lines { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 10px; }
.co-summary__line { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-body); }
.co-summary__line span:last-child { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }
.co-summary__line--muted span { color: var(--text-muted); font-weight: var(--fw-regular); }
.co-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.co-summary__total span { font-size: var(--text-base); color: var(--text-body); font-weight: var(--fw-semibold); }
.co-summary__total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--pine-700); font-variant-numeric: tabular-nums; }
.co-summary__sampling { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.co-summary__sampling-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  background: var(--mint-100); color: var(--pine-600); flex: none; }
.co-summary__sampling > span:last-child { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.co-summary__sampling strong { color: var(--pine-700); font-size: var(--text-sm); overflow-wrap: anywhere; }
.co-summary__sampling small { color: var(--text-muted); font-size: var(--text-xs); line-height: var(--lh-normal); }
.co-trust-badge { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px;
  background: color-mix(in srgb, var(--mint-300) 13%, var(--pine-500)); border: 1px solid color-mix(in srgb, var(--mint-300) 34%, transparent);
  border-radius: var(--radius-lg); }
.co-trust-badge__ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mint-300); color: var(--pine-600);
  display: inline-flex; align-items: center; justify-content: center; }
.co-trust-badge__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-trust-badge__t strong { color: #fff; font-size: var(--text-base); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); }
.co-trust-badge__t span { color: var(--mint-100); font-size: var(--text-sm); line-height: var(--lh-normal); }
.co-summary__trust { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 10px; }
.co-summary__trust li { display: flex; align-items: center; gap: 9px; font-size: var(--text-sm); color: var(--slate-600); }
.co-summary__trust svg { color: var(--accent-strong); flex: none; }

/* confirmation */
.co-done { text-align: center; }
.co-done__seal { width: 64px; height: 64px; border-radius: 50%; background: var(--mint-300); color: var(--pine-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.co-done .co-sub { max-width: 48ch; margin-left: auto; margin-right: auto; }
.co-next { display: grid; gap: 12px; max-width: 460px; margin: 8px auto 0; text-align: left; }
.co-next__item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-md); padding: 16px 18px; font-size: var(--text-sm); color: var(--slate-700); line-height: var(--lh-normal); }
.co-next__item strong { color: var(--pine-700); }
.co-next__num { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-300); color: var(--pine-700); font-weight: var(--fw-bold); display: inline-flex; align-items: center; justify-content: center; flex: none; font-variant-numeric: tabular-nums; }
.co-done .co-actions { justify-content: center; }

@media (max-width: 820px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .co-row2 { grid-template-columns: 1fr; }
  .co-payment-card { flex-direction: column; }
}
@media (max-width: 620px) {
  .co-embedded-shell,
  .co-embedded-checkout { min-height: 620px; }
  .co-map { height: 300px; }
  .co-location-result { grid-template-columns: auto minmax(0, 1fr); }
  .co-location-result__distance { grid-column: 2; padding-top: 4px; }
  .co-actions--split { gap: 12px; }
  .co-actions--split .dd-btn { min-width: 0; }
}
.ls-seal { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 7px 9px; line-height: 0; transition: transform var(--dur-fast) var(--ease-out); }
.ls-seal:hover { transform: translateY(-1px); }
.ls-seal img { width: 73px; height: 79px; display: block; }
.co-summary__seal { margin: 16px auto 0; width: fit-content; }
