: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. */
.checkout-card.has-open-picker {
  overflow: visible;
  z-index: 40;
}

.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-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;
}

.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-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  background: var(--checkout-orange);
  color: var(--checkout-dark);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.checkout-submit:hover {
  transform: translateY(-1px);
}

.checkout-submit:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.checkout-mobile-submit button:disabled,
.checkout-submit.is-loading,
.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: 70px;
  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: 330px;
  overflow-y: auto;
}

.checkout-success {
  position: fixed;
  inset: 0;
  z-index: 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: 280px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 20px 0 130px;
  }

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

  .checkout-top h1 {
    max-width: 330px;
    margin-top: 15px;
    font-size: 58px;
    line-height: .86;
  }

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

  .checkout-top-art {
    right: -10px;
    bottom: -16px;
    width: 205px;
    height: 190px;
  }

  .checkout-top-art::before {
    right: 14px;
    bottom: 22px;
    width: 150px;
    height: 150px;
  }

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

  .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;
  }

  .pickup-time__panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-height: 55vh;
    overflow-y: auto;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 22px;
  }

  .checkout-payment-choice {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    padding: 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 {
    display: block;
    position: sticky;
    bottom: 12px;
    z-index: 40;
    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);
  }

  .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: 55px;
  }

  .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;
  }
}
