:root {
  --checkout-cream: #f8eedf;
  --checkout-surface: #fff9f2;
  --checkout-soft: #fff4e6;
  --checkout-dark: #20130e;
  --checkout-orange: #f28a21;
  --checkout-orange-dark: #d96f11;
  --checkout-red: #ef2b23;
  --checkout-muted: #82766e;
  --checkout-text-soft: #51443c;
  --checkout-line: rgba(32, 19, 14, .10);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.checkout-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(255,249,242,.84), rgba(248,238,223,.96)),
    var(--checkout-cream);
  color: var(--checkout-dark);
  font-family: Inter, sans-serif;
}

.checkout-header {
  width: min(1380px, calc(100% - 48px));
  height: 72px;
  margin: 18px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(242, 138, 33, .18);
  border-radius: 999px;
  background: var(--checkout-dark);
  box-shadow: 0 12px 40px rgba(32, 19, 14, .10);
}

.checkout-logo {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.checkout-logo img {
  display: block;
  width: auto;
  height: 46px;
}

.checkout-progress {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .40);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.checkout-progress .is-active {
  color: var(--checkout-orange);
}

.checkout-progress i {
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

.checkout-back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff9f2;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.checkout-back:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 138, 33, .34);
  background: rgba(242, 138, 33, .12);
}

.checkout {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 96px;
}

.checkout-top {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.checkout-top-copy {
  position: relative;
  z-index: 2;
}

.checkout-eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(239, 43, 35, .18);
  border-radius: 999px;
  background: rgba(239, 43, 35, .07);
  color: var(--checkout-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
}

.checkout-top h1,
.checkout-step h2,
.checkout-summary-head h2,
.checkout-empty h3,
.checkout-success-card h2,
.checkout-mobile-submit button {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.checkout-top h1 {
  max-width: 560px;
  margin: 17px 0 12px;
  font-size: clamp(70px, 6vw, 94px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: 0;
}

.checkout-top h1 span {
  display: block;
  color: var(--checkout-orange);
}

.checkout-top p {
  max-width: 560px;
  margin: 0;
  color: var(--checkout-muted);
  font-size: 17px;
  line-height: 1.55;
}

.checkout-top-art {
  position: absolute;
  right: 5.5%;
  bottom: -26px;
  z-index: 1;
  width: 340px;
  height: 250px;
  pointer-events: none;
}

.checkout-top-art::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 30px;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: rgba(242, 138, 33, .13);
  transform: rotate(-8deg) scaleX(1.06);
}

.checkout-top-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 330px;
  filter: drop-shadow(0 26px 30px rgba(55, 25, 10, .12));
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.checkout-content,
.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-error {
  padding: 14px 16px;
  border: 1px solid rgba(239, 43, 35, .22);
  border-radius: 16px;
  background: rgba(239, 43, 35, .07);
  color: #9f241f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.checkout-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(32, 19, 14, .075);
  border-radius: 22px;
  background: rgba(255, 250, 243, .88);
  box-shadow: 0 14px 36px rgba(54, 27, 10, .035);
}

/* Picker ouvert : la carte cesse de rogner et passe au-dessus des suivantes.
   ATTENTION : ce z-index cree un contexte d'empilement. Le panneau, meme en
   z-index 60, reste enferme dedans — la carte doit donc passer AU-DESSUS de
   .time-picker-overlay (59), sinon le voile recouvre les creneaux et avale le
   tap sur mobile. C'etait la cause du bug de selection d'heure. */
.checkout-card.has-open-picker {
  overflow: visible;
  z-index: 61;
}

.checkout-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 3px;
  height: 36px;
  border-radius: 0 999px 999px 0;
  background: var(--checkout-orange);
}

.checkout-step {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.checkout-step-index {
  display: inline-flex;
  min-height: 28px;
  width: fit-content;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(242, 138, 33, .28);
  border-radius: 999px;
  background: rgba(242, 138, 33, .08);
  color: var(--checkout-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.checkout-step h2 {
  margin: 0;
  color: var(--checkout-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
}

.checkout-step p {
  margin: 6px 0 0;
  color: var(--checkout-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.checkout-fields {
  display: grid;
  gap: 16px;
}

.checkout-fields + .checkout-fields {
  margin-top: 16px;
}

.checkout-fields--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-field {
  display: grid;
  gap: 8px;
}

.checkout-field > span {
  margin-left: 3px;
  color: var(--checkout-text-soft);
  font-size: 11px;
  font-weight: 700;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  border: 1px solid rgba(32, 19, 14, .10);
  border-radius: 14px;
  background: #fff;
  color: var(--checkout-dark);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.checkout-field input {
  height: 56px;
  padding: 0 16px;
}

.checkout-field textarea {
  min-height: 120px;
  padding: 15px 16px;
  resize: vertical;
}

.checkout-rgpd-note {
  margin: 14px 0 0;
  color: rgba(32, 19, 14, .58);
  font-size: 12.5px;
  line-height: 1.5;
}

.checkout-rgpd-note a {
  color: var(--checkout-orange);
  font-weight: 800;
  text-decoration: none;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: var(--checkout-orange);
  box-shadow: 0 0 0 4px rgba(242, 138, 33, .09);
}

.checkout-field.is-invalid input,
.checkout-field.is-invalid textarea {
  border-color: var(--checkout-red);
  box-shadow: 0 0 0 4px rgba(239, 43, 35, .08);
}

.pickup-time.is-invalid .pickup-time__trigger {
  border-color: #ef2b23;
  box-shadow: 0 0 0 4px rgba(239, 43, 35, .08);
}

.pickup-location {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--checkout-soft);
}

.pickup-location__icon,
.checkout-payment-choice__icon,
.checkout-payment-choice__check {
  display: grid;
  place-items: center;
  color: var(--checkout-orange);
}

.pickup-location__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 138, 33, .12);
}

.pickup-location strong,
.checkout-payment-choice strong {
  display: block;
  color: var(--checkout-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

.pickup-location p,
.checkout-payment-choice p {
  margin: 4px 0 0;
  color: var(--checkout-muted);
  font-size: 12px;
  line-height: 1.45;
}

.pickup-location__badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: var(--checkout-orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
}

.checkout-location-hours {
  display: grid;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 14px;
  border: 1px solid rgba(32, 19, 14, .08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(242, 138, 33, .14), transparent 34%),
    rgba(255, 250, 243, .74);
}

.checkout-location-hours__head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.checkout-location-hours__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(239, 43, 35, .08);
  color: var(--checkout-red);
}

.checkout-location-hours strong,
.checkout-location-hours__schedule > span {
  display: block;
  color: var(--checkout-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.checkout-location-hours p {
  margin: 4px 0 0;
  color: var(--checkout-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.checkout-location-hours__head a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--checkout-dark);
  color: #fffaf3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-location-hours__schedule {
  display: grid;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(32, 19, 14, .08);
}

.checkout-location-hours__schedule dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.checkout-location-hours__schedule dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.checkout-location-hours dt,
.checkout-location-hours dd {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.25;
}

.checkout-location-hours dt {
  color: rgba(32, 19, 14, .55);
  font-weight: 700;
}

.checkout-location-hours dd {
  color: var(--checkout-dark);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pickup-time {
  position: relative;
}

.pickup-time__trigger {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(32, 19, 14, .11);
  border-radius: 14px;
  background: #fff;
  color: #756961;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.pickup-time__trigger-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Heure choisie : fond, bordure, contraste et graisse changent. */
.pickup-time.has-value .pickup-time__trigger {
  color: #20130e;
  border-color: rgba(242, 138, 33, .40);
  background: rgba(242, 138, 33, .045);
}

.pickup-time.has-value [data-time-label] {
  color: #20130e;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pickup-time.has-value .pickup-time__trigger-left svg {
  color: #f28a21;
}

.pickup-time__confirmed {
  margin: 8px 4px 0;
  color: #81756d;
  font-size: 11px;
}

.pickup-time__confirmed[hidden] { display: none; }

.pickup-time__confirmed strong {
  color: #d96f11;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pickup-time__trigger.is-open,
.pickup-time__trigger:focus-visible {
  border-color: var(--checkout-orange);
  box-shadow: 0 0 0 4px rgba(242, 138, 33, .09);
}

.pickup-time__chevron,
.mobile-order-toggle svg {
  flex-shrink: 0;
  transition: transform .2s ease;
}

.pickup-time__trigger.is-open .pickup-time__chevron,
.mobile-order-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.pickup-time__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(32, 19, 14, .08);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 20px 50px rgba(32, 19, 14, .14);
}

.pickup-time__option {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: var(--checkout-cream);
  color: #45372f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.pickup-time__option:hover,
.pickup-time__option:focus-visible {
  background: #ffe2bb;
  color: var(--checkout-dark);
  outline: none;
  transform: translateY(-1px);
}

.pickup-time__option.is-selected {
  background: var(--checkout-orange);
  color: var(--checkout-dark);
}

.time-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(32, 19, 14, .18);
  backdrop-filter: blur(2px);
}

.checkout-payment-choice {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(242, 138, 33, .35);
  border-radius: 18px;
  background: rgba(242, 138, 33, .07);
}

.checkout-payment-choice__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(242, 138, 33, .12);
}

.checkout-payment-choice__check {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(242, 138, 33, .13);
}

.checkout-summary {
  position: sticky;
  top: 24px;
}

.checkout-summary-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(32, 19, 14, .075);
  border-radius: 22px;
  background: rgba(255, 250, 243, .92);
  box-shadow: 0 14px 36px rgba(54, 27, 10, .045);
}

.checkout-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.checkout-summary-head span:first-child {
  color: var(--checkout-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.checkout-summary-head h2 {
  margin: 3px 0 0;
  font-size: 33px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
}

.checkout-count {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--checkout-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.checkout-items {
  display: grid;
  max-height: 420px;
  gap: 12px;
  overflow-y: auto;
  padding-right: 3px;
}

.checkout-items::-webkit-scrollbar {
  width: 5px;
}

.checkout-items::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(32, 19, 14, .18);
}

.checkout-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(32, 19, 14, .08);
}

.checkout-item:last-child {
  border-bottom: 0;
}

.checkout-item-image {
  width: 68px;
  height: 68px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--checkout-cream);
}

.checkout-item-content {
  min-width: 0;
}

.checkout-item-name {
  margin: 0;
  overflow: hidden;
  color: var(--checkout-dark);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

.checkout-item-unit {
  margin: 5px 0 0;
  color: var(--checkout-muted);
  font-size: 11px;
  font-weight: 600;
}

.checkout-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.checkout-item-qty button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(32, 19, 14, .10);
  border-radius: 50%;
  background: #fff;
  color: var(--checkout-dark);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.checkout-item-qty button:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 138, 33, .32);
  background: rgba(242, 138, 33, .08);
}

.checkout-item-qty span {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.checkout-item-total {
  align-self: end;
  color: var(--checkout-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.checkout-totals {
  margin-top: 18px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
  color: var(--checkout-muted);
  font-size: 13px;
}

.checkout-total-row strong {
  color: var(--checkout-dark);
}

.checkout-total-row--main {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid rgba(32, 19, 14, .10);
  color: var(--checkout-dark);
  font-size: 19px;
  font-weight: 900;
}

.checkout-privacy-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 0 20px 28px;
}
.checkout-privacy-footer a,
.checkout-privacy-footer button {
  border: 0;
  background: none;
  padding: 0;
  color: rgba(32, 19, 14, .46);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.checkout-privacy-footer a:hover,
.checkout-privacy-footer button:hover,
.checkout-privacy-footer a:focus-visible,
.checkout-privacy-footer button:focus-visible {
  color: var(--checkout-orange);
  outline: none;
}

/* Etats desactive / chargement partages par les CTA de paiement. */
.checkout-mobile-submit button:disabled,
.payment-submit:disabled,
.checkout-mobile-submit button.is-loading {
  opacity: .62;
  cursor: wait;
}

.checkout-legal {
  margin: 12px 0 0;
  color: var(--checkout-muted);
  text-align: center;
  font-size: 10px;
}

.checkout-payment-mascot {
  display: block;
  width: 135px;
  margin: 18px auto -25px;
  pointer-events: none;
}

.checkout-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
  text-align: center;
}

.checkout-empty img {
  width: 220px;
  margin-bottom: 14px;
}

.checkout-empty h3 {
  margin: 0;
  color: var(--checkout-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.checkout-empty p {
  max-width: 230px;
  margin: 8px auto 0;
  color: var(--checkout-muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-empty a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--checkout-orange);
  color: var(--checkout-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mobile-order-summary,
.checkout-mobile-submit {
  display: none;
}

.mobile-order-summary {
  margin-bottom: 16px;
}

.mobile-order-toggle {
  width: 100%;
  min-height: 68px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(32, 19, 14, .08);
  border-radius: 18px;
  background: rgba(255, 250, 243, .92);
  color: var(--checkout-dark);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(54, 27, 10, .045);
}

.mobile-order-toggle > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--checkout-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
}

.mobile-order-toggle > span strong {
  color: var(--checkout-muted);
  font-size: 11px;
  letter-spacing: 0;
}

.mobile-order-toggle > strong {
  color: var(--checkout-dark);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-order-panel {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(32, 19, 14, .08);
  border-radius: 18px;
  background: rgba(255, 250, 243, .92);
}

.mobile-order-items {
  display: grid;
  gap: 12px;
  max-height: 55dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.checkout-success {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 10000);
  display: none;
  place-items: center;
  padding: 20px;
}

.checkout-success.is-open {
  display: grid;
}

.checkout-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 10, 6, .72);
  backdrop-filter: blur(8px);
}

.checkout-success-card {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  padding: 40px;
  overflow: hidden;
  border: 1px solid rgba(242, 138, 33, .14);
  border-radius: 28px;
  background: var(--checkout-surface);
  text-align: center;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .24);
}

.checkout-success-mascot {
  display: block;
  width: 225px;
  margin: -14px auto 8px;
}

.checkout-success-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(239, 43, 35, .08);
  color: var(--checkout-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.checkout-success-card h2 {
  margin: 15px 0 10px;
  color: var(--checkout-dark);
  font-size: 50px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: 0;
}

.checkout-success-card h2 span {
  display: block;
  color: var(--checkout-orange);
}

.checkout-success-card > p {
  margin: 0 auto;
  max-width: 340px;
  color: var(--checkout-muted);
  font-size: 14px;
  line-height: 1.45;
}

.checkout-success-order {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(242, 138, 33, .08);
}

.checkout-success-order span,
.checkout-success-meta span {
  color: var(--checkout-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.checkout-success-order strong {
  color: var(--checkout-dark);
  font-size: 25px;
}

.checkout-success-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.checkout-success-meta > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(32, 19, 14, .10);
  border-radius: 15px;
}

.checkout-success-meta strong {
  color: var(--checkout-dark);
}

.checkout-success-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--checkout-dark);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.checkout-page.is-cart-empty .checkout-content,
.checkout-page.is-cart-empty .checkout-totals,
.checkout-page.is-cart-empty .checkout-payment-mascot,
.checkout-page.is-cart-empty .mobile-order-summary,
.checkout-page.is-cart-empty .checkout-mobile-submit {
  display: none;
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    display: none;
    position: static;
  }

  .mobile-order-summary {
    display: block;
  }

  .checkout-page.is-cart-empty .checkout-summary {
    display: block;
  }

  .checkout-top-art {
    right: 0;
  }
}

@media (max-width: 720px) {
  .checkout-header {
    width: calc(100% - 24px);
    height: 60px;
    margin-top: 10px;
    padding: 0 12px;
  }

  .checkout-logo img {
    height: 38px;
  }

  .checkout-progress {
    display: none;
  }

  .checkout-back {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    font-size: 18px;
  }

  .checkout-back__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .checkout {
    width: calc(100% - 24px);
    padding: 20px 0 52px;
  }

  .checkout-top {
    min-height: 0;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px 0 92px;
  }

  .checkout-eyebrow {
    min-height: 28px;
    font-size: 10px;
  }

  .checkout-top h1 {
    max-width: 330px;
    margin: 12px 0 10px;
    font-size: 52px;
    line-height: .86;
  }

  .checkout-top p {
    max-width: 285px;
    font-size: 14px;
    line-height: 1.45;
  }

  .checkout-top-art {
    right: -10px;
    bottom: -12px;
    width: 175px;
    height: 160px;
  }

  .checkout-top-art::before {
    right: 12px;
    bottom: 18px;
    width: 128px;
    height: 128px;
  }

  .checkout-top-mascot {
    width: 162px;
  }

  .checkout-form {
    gap: 14px;
  }

  .checkout-card {
    padding: 20px 17px;
    border-radius: 18px;
  }

  .checkout-card::before {
    top: 23px;
  }

  .checkout-fields--2 {
    grid-template-columns: 1fr;
  }

  .checkout-fields + .checkout-fields {
    margin-top: 14px;
  }

  .checkout-step {
    margin-bottom: 18px;
  }

  .checkout-step h2 {
    font-size: 27px;
  }

  .pickup-location {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .pickup-location__icon {
    width: 40px;
    height: 40px;
  }

  .pickup-location__badge {
    grid-column: 2;
    width: fit-content;
  }

  .checkout-location-hours {
    margin-bottom: 16px;
    padding: 13px;
    border-radius: 16px;
  }

  .checkout-location-hours__head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .checkout-location-hours__icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .checkout-location-hours__head a {
    grid-column: 2;
    width: fit-content;
  }

  .checkout-location-hours__schedule dl > div {
    grid-template-columns: minmax(72px, .5fr) minmax(0, 1fr);
    gap: 10px;
  }

  .checkout-payment-choice {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    min-height: 0;
    padding: 12px 14px;
  }

  .checkout-payment-choice__icon {
    width: 44px;
    height: 44px;
  }

  .checkout-summary-card {
    padding: 20px;
    border-radius: 20px;
  }

  .checkout-empty {
    min-height: 390px;
    padding: 28px 18px;
  }

  .checkout-empty img {
    width: 190px;
  }

  .checkout-item {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .checkout-item-image {
    width: 62px;
    height: 62px;
  }

  .checkout-item-name {
    font-size: 17px;
  }

  .checkout-mobile-submit button {
    width: 100%;
    height: 58px;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--checkout-orange);
    color: var(--checkout-dark);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    cursor: pointer;
  }

  .checkout-mobile-submit span {
    justify-self: start;
  }

  .checkout-success-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .checkout-success-mascot {
    width: 185px;
  }

  .checkout-success-card h2 {
    font-size: 42px;
  }
}

@media (max-width: 390px) {
  .checkout-top h1 {
    font-size: 48px;
  }

  .checkout-payment-choice {
    grid-template-columns: 40px 1fr;
  }

  .checkout-payment-choice__check {
    grid-column: 2;
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------------------------------------------------------------------------
   Selecteur d'heure : etat ferme et version mobile (bottom sheet)
   Un seul jeu de regles, place apres les regles de base qu'il complete.
--------------------------------------------------------------------------- */
.pickup-time__notice {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(242, 138, 33, .12);
  color: var(--checkout-dark);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.pickup-time__notice strong { font-weight: 900; }

.pickup-time.is-closed .pickup-time__trigger {
  opacity: .72;
  cursor: not-allowed;
}
.pickup-time.is-closed .pickup-time__chevron { display: none; }

/* Le CTA sticky ne doit jamais recouvrir le panneau ouvert. */
body.is-time-picker-open .checkout-mobile-submit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 720px) {
  /* Sous 720px le panneau devient une feuille ancree en bas d'ecran :
     plus lisible qu'une grille de 4 colonnes sur 360px de large. */
  .pickup-time__panel {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    z-index: 60;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 62dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px rgba(32, 19, 14, .22);
  }

  .pickup-time__option { min-height: 50px; font-size: 14px; }

  .time-picker-overlay { z-index: 59; }
}

/* ---------------------------------------------------------------------------
   Paiement Stripe
   Le Payment Element vit dans la carte Braise Master : meme fond creme, meme
   rayon, meme bordure. L'apparence interne des champs est pilotee par
   l'Appearance API (js/stripe-checkout.js), pas par ce fichier.
--------------------------------------------------------------------------- */

/* ===========================================================================
   ÉTAPE 03 — PAIEMENT
   ---------------------------------------------------------------------------
   Version unique. Deux etats : verrouille avant d'avoir termine les etapes
   precedentes, revele ensuite. Rien de bancaire n'est peint tant que le
   client n'a pas cliqué « Continuer vers le paiement ».
=========================================================================== */

/* --- Etat verrouille ---------------------------------------------------- */
.payment-locked {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px dashed rgba(32, 19, 14, .12);
  border-radius: 20px;
  background: rgba(255, 250, 243, .65);
  opacity: .75;
}
.payment-locked[hidden] { display: none; }

.payment-locked__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(32, 19, 14, .05);
  color: var(--checkout-muted);
}

.payment-locked span {
  display: block;
  color: var(--checkout-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.payment-locked strong {
  display: block;
  margin: 4px 0 5px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.payment-locked p {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* --- Passerelle vers le paiement ---------------------------------------- */
.checkout-continue-payment {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--checkout-dark);
  color: #FFF9F2;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, opacity .2s ease;
}
.checkout-continue-payment svg { color: var(--checkout-orange); }
.checkout-continue-payment:disabled { opacity: .62; cursor: default; }
.checkout-continue-payment[hidden] { display: none; }

@media (hover: hover) {
  .checkout-continue-payment:not(:disabled):hover { transform: translateY(-1px); }
}
.checkout-continue-payment:not(:disabled):active { transform: scale(.99); }

.checkout-cash-payment {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 12px 20px;
  border: 1px solid rgba(32, 19, 14, .12);
  border-radius: 20px;
  background: #FFF9F2;
  color: var(--checkout-dark);
  text-align: left;
  box-shadow: 0 12px 30px rgba(52, 26, 12, .05);
  cursor: pointer;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.checkout-cash-payment span {
  display: grid;
  gap: 4px;
}

.checkout-cash-payment strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
}

.checkout-cash-payment small {
  color: var(--checkout-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-cash-payment svg {
  flex: 0 0 auto;
  color: var(--checkout-orange);
}

.checkout-cash-payment:disabled {
  opacity: .62;
  cursor: wait;
}

@media (hover: hover) {
  .checkout-cash-payment:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(242, 138, 33, .32);
    box-shadow: 0 16px 36px rgba(52, 26, 12, .08);
  }
}

.checkout-cash-payment:not(:disabled):active { transform: scale(.99); }

/* --- Scene paiement : revelation ---------------------------------------- */
.checkout-payment-stage {
  opacity: 0;
  transform: translateY(18px);
}
.checkout-payment-stage.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .42s ease, transform .48s cubic-bezier(.22, 1, .36, 1);
}

.checkout-payment-card {
  overflow: hidden;
  border: 1px solid rgba(32, 19, 14, .08);
  border-radius: 22px;
  background: #FFF9F2;
  box-shadow: 0 18px 44px rgba(52, 26, 12, .055);
}

/* --- En-tete : compact, le prix domine ---------------------------------- */
.payment-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: var(--checkout-dark);
  color: #FFF9F2;
}

.payment-card__eyebrow {
  display: block;
  color: rgba(255, 249, 242, .55);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.payment-card__header h3 {
  margin: 5px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.payment-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, .60);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.payment-card__badge svg { color: var(--checkout-orange); }

.payment-card__amount {
  flex-shrink: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(28px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1;
  color: var(--checkout-orange);
}

/* --- Zone Stripe -------------------------------------------------------- */
.payment-card__stripe {
  padding: 22px;
  background: #FFF9F2;
}

/* Place reservee : une erreur Stripe ou un champ supplementaire ne pousse
   plus la page d'un coup. min-height seulement, jamais height : Stripe doit
   pouvoir grandir librement. */
.stripe-element-shell {
  min-height: 260px;
  transition: min-height .3s ease;
}

/* Zone de message externe : sa hauteur est reservee en permanence, donc un
   message n'ajoute jamais une ligne d'un coup. */
.payment-feedback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 24px;
  margin: 10px 0 14px;
  color: var(--checkout-muted);
  font-size: 12px;
  line-height: 1.4;
}
.payment-feedback.is-error { color: #C62D25; }
.payment-feedback svg { flex-shrink: 0; margin-top: 1px; }
.payment-feedback:focus-visible { outline: 2px solid var(--checkout-red); outline-offset: 3px; }

/* --- CTA final : visible seulement quand Stripe est pret ---------------- */
.payment-submit {
  width: 100%;
  min-height: 60px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--checkout-orange);
  color: var(--checkout-dark);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, filter .2s ease, opacity .2s ease;
}
.payment-submit.is-visible { display: flex; }
.payment-submit strong { margin-left: auto; font-weight: 900; }
.payment-submit:disabled { opacity: .7; cursor: default; }

@media (hover: hover) {
  .payment-submit:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.03); }
}
.payment-submit:not(:disabled):active { transform: scale(.99); }

/* --- Paiement en cours : on garde les donnees a l'ecran ----------------- */
.checkout-payment-card.is-processing { opacity: .72; pointer-events: none; }
.checkout-payment-card.is-processing .payment-submit { pointer-events: none; }

.payment-submit__spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(32, 19, 14, .25);
  border-top-color: var(--checkout-dark);
  border-radius: 50%;
  animation: bm-spin .7s linear infinite;
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

/* --- Recapitulatif d'etape validee -------------------------------------- */
.step-recap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-recap[hidden] { display: none; }

.step-recap__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(34, 160, 96, .12);
  color: #1c7a4a;
}

.step-recap__body { min-width: 0; }
.step-recap__body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.step-recap__body span {
  display: block;
  margin-top: 2px;
  color: var(--checkout-muted);
  font-size: 13px;
}

.step-recap__edit {
  margin-left: auto;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid rgba(32, 19, 14, .12);
  border-radius: 999px;
  background: transparent;
  color: var(--checkout-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .2s ease;
}
@media (hover: hover) {
  .step-recap__edit:hover { background: rgba(32, 19, 14, .05); }
}

.checkout-card.is-collapsed .checkout-step,
.checkout-card.is-collapsed [data-step-body] { display: none; }
.checkout-card.is-collapsed { padding-block: 16px; }

.checkout-field--note em {
  color: var(--checkout-muted);
  font-style: normal;
  font-weight: 600;
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 720px) {
  .payment-locked { padding: 16px 17px; gap: 12px; }
  .payment-locked__icon { width: 36px; height: 36px; }

  .payment-card__header { padding: 17px; }
  .payment-card__header h3 { font-size: 20px; }
  .payment-card__amount { font-size: 22px; }

  .payment-card__stripe { padding: 14px; }
  .checkout-payment-card { border-radius: 18px; }

  /* Plus de place reservee : le clavier et les champs Link font varier
     davantage la hauteur sur petit ecran. */
  .stripe-element-shell { min-height: 320px; }

  /* Le CTA de la carte suffit sur mobile : c'est la barre fixe qui prend le
     relais une fois le paiement pret. */
  .payment-submit { display: none !important; }
}

/* Le CTA fixe n'existe qu'une fois le paiement reellement pret. */
.checkout-mobile-submit { display: none; }

@media (max-width: 720px) {
  /* La barre fixe flotte au-dessus du contenu : on lui reserve sa hauteur en
     bas de colonne, sinon elle recouvre le haut du Payment Element. */
  .checkout-page.is-payment-ready .checkout-content {
    padding-bottom: 88px;
  }

  .checkout-page.is-payment-ready .checkout-mobile-submit {
    display: block;
    position: sticky;
    bottom: 12px;
    z-index: var(--z-sticky, 150);
    margin-top: 20px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 250, 243, .88);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 36px rgba(32, 19, 14, .16);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
}

/* Clavier mobile ouvert : le CTA fixe libere le champ actif. */
body.is-keyboard-open .checkout-mobile-submit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  .checkout-payment-stage,
  .checkout-payment-stage.is-revealed {
    transition: none;
    transform: none;
  }
  .payment-submit__spinner { animation: none; }
}

/* ===========================================================================
   PAGE DE CONFIRMATION
   ---------------------------------------------------------------------------
   Une carte unique posee sur un voile creme. Elle traverse trois etats reels
   — verification, finalisation, commande confirmee — pilotes par l'API, sans
   la moindre progression simulee.
=========================================================================== */
.checkout-page--success {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(242, 138, 33, .10), transparent 70%),
    var(--checkout-cream);
}

.checkout-confirm {
  display: grid;
  place-items: center;
  min-height: 74vh;
  padding: 32px 0 60px;
}

.confirm-card {
  width: min(540px, 100%);
  padding: 32px 30px 28px;
  border: 1px solid rgba(32, 19, 14, .07);
  border-radius: 26px;
  background: #FFF9F2;
  box-shadow: 0 24px 60px rgba(52, 26, 12, .09);
  text-align: center;

  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.confirm-card.is-revealed { opacity: 1; transform: none; }
.confirm-card:focus-visible { outline: 2px solid var(--checkout-orange); outline-offset: 4px; }

.confirm-card__mascot {
  width: 170px;
  margin: 0 auto 4px;
  transform: scale(.92);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.confirm-card.is-revealed .confirm-card__mascot { transform: scale(1); }

.confirm-card__badge {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(239, 43, 35, .08);
  color: var(--checkout-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  transition: background-color .3s ease, color .3s ease;
}
.confirm-card.is-done .confirm-card__badge {
  background: rgba(34, 160, 96, .12);
  color: #1c7a4a;
}

.confirm-card__title {
  margin: 14px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(36px, 6.4vw, 50px);
  font-weight: 900;
  line-height: .92;
  text-transform: uppercase;
}
.confirm-card__title span { display: block; color: var(--checkout-orange); }

.confirm-card__text {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* --- Etats reels : chaque ligne suit l'API, jamais une minuterie --------- */
.confirm-steps {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 16px 18px;
  list-style: none;
  border-radius: 16px;
  background: rgba(32, 19, 14, .035);
  text-align: left;
}

.confirm-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--checkout-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color .3s ease;
}

.confirm-steps__dot {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(32, 19, 14, .18);
  border-radius: 50%;
  transition: border-color .3s ease, background-color .3s ease;
}

/* En cours : pastille pleine qui respire doucement. */
.confirm-steps li.is-current { color: var(--checkout-dark); font-weight: 800; }
.confirm-steps li.is-current .confirm-steps__dot {
  border-color: var(--checkout-orange);
  background: var(--checkout-orange);
  animation: bm-pulse 1.4s ease-in-out infinite;
}
@keyframes bm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 138, 33, .35); }
  50% { box-shadow: 0 0 0 5px rgba(242, 138, 33, 0); }
}

/* Fait : coche verte. */
.confirm-steps li.is-done { color: var(--checkout-dark); }
.confirm-steps li.is-done .confirm-steps__dot {
  border-color: #1c7a4a;
  background: #1c7a4a;
}
.confirm-steps li.is-done .confirm-steps__dot::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #FFF9F2;
  border-bottom: 2px solid #FFF9F2;
  transform: rotate(-45deg) translate(1px, -1px);
}

.confirm-card__order {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(242, 138, 33, .09);
}
.confirm-card__order span {
  display: block;
  color: var(--checkout-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.confirm-card__order strong {
  display: block;
  margin-top: 4px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 900;
}

.confirm-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.confirm-card__meta div {
  padding: 12px 10px;
  border: 1px solid rgba(32, 19, 14, .08);
  border-radius: 14px;
}
.confirm-card__meta span {
  display: block;
  color: var(--checkout-muted);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .09em;
}
.confirm-card__meta strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 900;
}

.confirm-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--checkout-dark);
  color: #FFF9F2;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease;
}
.payment-locked__icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
@media (hover: hover) {
  .confirm-card__button:hover { transform: translateY(-1px); }
}

@media (max-width: 720px) {
  .checkout-confirm { padding: 18px 0 40px; }
  .confirm-card { padding: 26px 18px 22px; border-radius: 22px; }
  .confirm-card__mascot { width: 140px; }
  .confirm-card__meta { grid-template-columns: 1fr; gap: 8px; }
  .confirm-card__meta div { display: flex; align-items: baseline; justify-content: space-between; }
  .confirm-card__meta strong { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .confirm-card,
  .confirm-card.is-revealed,
  .confirm-card__mascot { transition: none; transform: none; }
  .confirm-steps li.is-current .confirm-steps__dot { animation: none; }
}


/* ===========================================================================
   ÉTAPE 03 — CHOIX DU MODE DE PAIEMENT
   Le client choisit d'abord Carte ou Espèces, puis une seule action apparaît.
=========================================================================== */
.checkout-payment-choice-card {
  display: block;
}

.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.payment-choice {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  border: 1px solid rgba(32, 19, 14, .11);
  border-radius: 20px;
  background: #FFF9F2;
  color: var(--checkout-dark);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(52, 26, 12, .035);
  transition: transform .18s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.payment-choice__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(242, 138, 33, .09);
  color: var(--checkout-orange);
  transition: background-color .2s ease, color .2s ease;
}

.payment-choice__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.payment-choice__body strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.payment-choice__body small {
  color: var(--checkout-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.payment-choice__radio {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(32, 19, 14, .22);
  border-radius: 50%;
  position: relative;
  transition: border-color .2s ease, background-color .2s ease;
}

.payment-choice__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--checkout-orange);
  transform: scale(0);
  transition: transform .18s ease;
}

.payment-choice.is-selected {
  border-color: rgba(242, 138, 33, .72);
  background: rgba(242, 138, 33, .055);
  box-shadow: 0 14px 34px rgba(242, 138, 33, .10);
}

.payment-choice.is-selected .payment-choice__icon {
  background: var(--checkout-orange);
  color: #20130E;
}

.payment-choice.is-selected .payment-choice__radio {
  border-color: var(--checkout-orange);
}

.payment-choice.is-selected .payment-choice__radio::after {
  transform: scale(1);
}

.payment-choice[aria-disabled="true"] {
  opacity: .48;
  cursor: not-allowed;
}

.payment-choice-error {
  margin: 10px 2px 0;
  color: var(--checkout-red);
  font-size: 12px;
  font-weight: 750;
}

.payment-choice-error[hidden] {
  display: none;
}

.checkout-payment-choice-card .checkout-continue-payment {
  margin-top: 16px;
}

.checkout-payment-stage {
  margin-top: 16px;
}

@media (hover: hover) {
  .payment-choice:not([aria-disabled="true"]):hover {
    transform: translateY(-1px);
    border-color: rgba(242, 138, 33, .38);
    box-shadow: 0 14px 34px rgba(52, 26, 12, .06);
  }
}

@media (max-width: 720px) {
  .payment-choice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-choice {
    min-height: 82px;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .payment-choice__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .payment-choice__body strong {
    font-size: 19px;
  }
}

/* Personnalisation des menus dans le récapitulatif */
.checkout-item-customization {
  display: grid;
  gap: 3px;
  margin: 5px 0 7px;
  color: rgba(32, 19, 14, .58);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-item-customization span {
  display: block;
}

@media (max-width: 720px) {
  .checkout-item-customization {
    font-size: 10.5px;
  }
}
