/* Hallmark · macrostructure: Checkout demandé par Johnny · theme: studied-DNA (maquette Jarvis DOZA) · formulaire direct · kit ouvert · navigation après enregistrement */
/* Accueil commande : mêmes champs et même API, présentation directe. */
.checkout-page [hidden] { display: none !important; }
.checkout-page .checkout-header { min-height: 80px; padding-block: 16px; border-bottom: 1px solid var(--color-line); }
.checkout-page .checkout-header .wordmark { font-size: 43px; }
.checkout-page .checkout-payment { margin: 0; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.checkout-page .checkout-main { max-width: 1280px; padding-top: 30px; padding-bottom: 40px; }
.checkout-page .checkout-intro { margin-bottom: 28px; }
.checkout-page .checkout-intro h1 { margin: 0 0 10px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.checkout-page .checkout-intro > p { margin: 0; font-size: 14px; line-height: 1.5; }
.checkout-page .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; gap: clamp(32px, 4vw, 56px); }
.checkout-page .checkout-form-column, .checkout-page .order-form { min-width: 0; }
.checkout-page .order-form fieldset { margin: 0 0 18px; }
.checkout-page .order-form legend { margin-bottom: 12px; font-size: 23px; line-height: 1.2; }
.checkout-page .fields { gap: 12px; }
.checkout-page .fields > label { min-width: 0; font-size: 12px; line-height: 1.5; }
.checkout-page .fields :is(input, select, textarea) { min-height: 46px; margin-top: 5px; padding: 10px 12px; background: var(--color-surface); font-size: 16px; line-height: 1.4; }
.checkout-page .fields textarea { min-height: 66px; }
.checkout-page #phone-help { display: block; margin-top: 4px; font-size: 10px; line-height: 1.5; }
.checkout-page .delivery-hint { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
.checkout-page .totals { margin: 10px 0 12px; padding-block: 9px; font-size: 12px; line-height: 1.5; }
.checkout-page .totals div { margin-block: 4px; }
.checkout-page .totals strong { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout-page .consent { gap: 10px; margin: 12px 0 16px; font-size: 11px; line-height: 1.6; }
.checkout-page .consent input { width: 20px; height: 20px; min-height: 20px; margin-top: 2px; }
.checkout-page #order-submit { min-height: 48px; max-width: 100%; padding-inline: 20px; font-size: 13px; white-space: nowrap; }
.checkout-page .status { max-width: 570px; min-height: 0; margin: 10px 0 0; font-size: 11px; line-height: 1.6; }
.checkout-page .checkout-noscript { margin: 10px 0 0; font-size: 12px; }
.checkout-page .checkout-summary { position: sticky; top: 24px; min-width: 0; padding: 20px; border-radius: var(--radius-sm); background: var(--color-forest); color: var(--color-paper); }
.checkout-page .checkout-kit-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 5px; }
.checkout-page .checkout-product-brand { margin: 18px 0 2px; font-size: 10px; line-height: 1.5; letter-spacing: .1em; }
.checkout-page .checkout-product-copy h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.04; letter-spacing: -.02em; }
.checkout-page .checkout-unit-price { margin: 0 0 4px; font-family: var(--font-display); font-size: 38px; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-page .checkout-unit-price > span { font-size: .62em; letter-spacing: 0; }
.checkout-page .checkout-product-format { margin: 0; font-size: 12px; line-height: 1.6; }
.checkout-page .checkout-product-format > span { display: block; font-size: 10px; }
.checkout-page .checkout-kit-content { margin-top: 22px; }
.checkout-page .checkout-kit-content h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; }
.checkout-page :is(.checkout-kit-content, .checkout-kit-details) ul { margin: 0; padding-left: 15px; font-size: 11px; line-height: 1.8; }
.checkout-page .checkout-kit-details { display: none; }
.checkout-page .checkout-summary-note { margin: 18px 0 0; font-size: 10px; line-height: 1.6; }
.checkout-page .checkout-summary-delivery { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--color-line); font-size: 11px; line-height: 1.6; }
.checkout-page .checkout-after { margin-top: 24px; padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-surface); scroll-margin-top: 24px; }
.checkout-page .checkout-after h2 { margin: 0 0 12px; font-size: 32px; }
.checkout-page .checkout-after p { margin-bottom: 18px; font-size: 14px; }
.checkout-page .checkout-after-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.checkout-page .checkout-after .button { font-size: 13px; }
.checkout-page .checkout-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px 24px; font-size: 11px; }
.checkout-page .checkout-footer > span { letter-spacing: .08em; }
.checkout-page .checkout-footer a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.checkout-page .checkout-summary :focus-visible { outline-color: var(--color-paper); }

@media (max-width: 800px) {
  .checkout-page .checkout-header { min-height: 66px; padding-block: 12px; gap: 12px; }
  .checkout-page .checkout-header .wordmark { font-size: 36px; }
  .checkout-page .checkout-payment { font-size: 10px; }
  .checkout-page .checkout-main { padding-top: 20px; padding-bottom: 24px; }
  .checkout-page .checkout-intro { max-width: 620px; margin-bottom: 18px; }
  .checkout-page .checkout-intro h1 { max-width: 560px; margin-bottom: 9px; font-size: clamp(34px, 7.4vw, 48px); line-height: 1.03; }
  .checkout-page .checkout-intro > p { max-width: 440px; font-size: 12px; line-height: 1.6; }
  .checkout-page .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .checkout-page .checkout-summary { order: -1; position: static; padding: 14px; }
  .checkout-page .checkout-summary-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
  .checkout-page .checkout-kit-image { width: 120px; height: 112px; aspect-ratio: auto; object-fit: contain; }
  .checkout-page .checkout-product-brand { margin: 0 0 3px; font-size: 9px; }
  .checkout-page .checkout-product-copy h2 { margin-bottom: 6px; font-size: 24px; line-height: 1.03; }
  .checkout-page .checkout-unit-price { margin-bottom: 2px; font-size: 29px; }
  .checkout-page .checkout-product-format { font-size: 10px; line-height: 1.5; }
  .checkout-page .checkout-product-format > span { font-size: 9px; }
  .checkout-page .checkout-kit-content { display: none; }
  .checkout-page .checkout-kit-details { display: block; border: 0; margin-top: 8px; }
  .checkout-page .checkout-kit-details summary { min-height: 44px; padding: 13px 28px 12px 0; font-size: 11px; line-height: 1.5; }
  .checkout-page .checkout-kit-details summary::after { top: 8px; font-size: 23px; }
  .checkout-page .checkout-kit-details ul { padding-bottom: 10px; font-size: 11px; }
  .checkout-page .checkout-summary-note { display: inline; margin: 0; font-size: 9px; line-height: 1.5; }
  .checkout-page .checkout-summary-delivery { display: inline; margin: 0 0 0 4px; padding: 0; border: 0; font-size: 9px; line-height: 1.5; }
  .checkout-page .order-form legend { margin-bottom: 10px; font-size: 23px; }
  .checkout-page .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .checkout-page .wide { grid-column: 1 / -1; }
  .checkout-page .fields :is(input, select, textarea) { min-height: 46px; font-size: 16px; }
  .checkout-page .fields textarea { min-height: 72px; }
  .checkout-page .consent { font-size: 11px; line-height: 1.7; }
  .checkout-page #order-submit { width: 100%; min-height: 50px; padding-inline: 14px; font-size: 13px; }
  .checkout-page .checkout-after { padding: 20px; }
  .checkout-page .checkout-after h2 { font-size: 29px; }
  .checkout-page .checkout-after-links { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 360px) {
  .checkout-page .checkout-header { min-height: 62px; }
  .checkout-page .checkout-header .wordmark { font-size: 33px; }
  .checkout-page .checkout-payment { font-size: 9px; }
  .checkout-page .checkout-intro h1 { font-size: 33px; }
  .checkout-page .checkout-summary { padding: 12px; }
  .checkout-page .checkout-summary-top { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .checkout-page .checkout-kit-image { width: 110px; height: 106px; }
  .checkout-page .checkout-product-copy h2 { font-size: 21px; }
  .checkout-page .checkout-unit-price { font-size: 26px; }
  .checkout-page .checkout-product-format { font-size: 9px; }
  .checkout-page .checkout-product-format > span { font-size: 8px; }
  .checkout-page .fields { gap: 10px; }
  .checkout-page .fields :is(input, select, textarea) { padding-inline: 10px; }
  .checkout-page .fields label { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-page *, .checkout-page *::before, .checkout-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Mobile : le récapitulatif accompagne les champs sans les repousser. */
@media (max-width: 800px) {
 .checkout-page .checkout-main { padding-top: var(--space-unit-16); }
 .checkout-page .checkout-intro { margin-bottom: var(--space-unit-12); }
 .checkout-page .checkout-layout { gap: var(--space-unit-16); }
 .checkout-page .checkout-summary { padding: var(--space-unit-12); }
 .checkout-page .checkout-summary-top { grid-template-columns: 96px minmax(0,1fr); gap: var(--space-unit-12); }
 .checkout-page .checkout-kit-image { width: 96px; height: 80px; }
 .checkout-page .checkout-product-brand { display: none; }
 .checkout-page .checkout-product-copy h2 { font-size: 19px; margin-bottom: var(--space-unit-4); line-height: 1.1; }
 .checkout-page .checkout-unit-price { font-size: 28px; }
 .checkout-page .checkout-product-format { font-size: 10px; }
 .checkout-page .checkout-kit-details { display: none; }
 .checkout-page .checkout-summary-note { display: block; margin-top: var(--space-unit-8); font-size: 10px; }
 .checkout-page .checkout-summary-delivery { display: none; }
}
