body.payment-v2 {
  --app-bg: #f5f3ef;
  --app-surface: #fdfcf9;
  --app-ink: #292724;
  --app-muted: #7a766f;
  --app-line: #e2dfd6;
  --app-accent: #693f26;
  --app-accent-hover: #502e1b;
  min-height: 100vh;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: "General Sans", "Onest", system-ui, sans-serif;
  line-height: 1.45;
}

.payment-v2 h1,
.payment-v2 h2,
.payment-v2 h3,
.payment-v2 button,
.payment-v2 input,
.payment-v2 select,
.payment-v2 textarea { font-family: inherit; }

.payment-v2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  border-bottom: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  backdrop-filter: blur(14px);
}

.payment-v2-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--app-line);
  border-radius: 24px;
  background: var(--app-surface);
}

.fulfilment-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}
.fulfilment-choice-button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-surface);
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.fulfilment-choice-button[aria-pressed="true"] {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: var(--app-surface);
}
.fulfilment-choice-button:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
}
.fulfilment-choice-button:disabled { opacity: .6; cursor: wait; }

.payment-v2-control {
  display: grid;
  min-height: 78px;
  padding: 11px 15px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-surface);
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 500;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.payment-v2-control:focus-within {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgb(105 63 38 / 10%);
}

.payment-v2-control input,
.payment-v2-control select {
  width: 100%;
  min-height: 34px;
  padding: 4px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 500;
}

.payment-v2-control input::placeholder { color: #a19b93; }

.payment-v2-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 500;
}

.payment-v2-field small { font-weight: 400; }

.payment-v2-field input,
.payment-v2-field select,
.payment-v2-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 500;
  resize: vertical;
}

.payment-v2-field textarea { min-height: 86px; }

.payment-v2-field input:focus,
.payment-v2-field select:focus,
.payment-v2-field textarea:focus {
  border-color: var(--app-accent);
  outline: 3px solid color-mix(in srgb, var(--app-accent) 11%, transparent);
}

.payment-v2-floating-field {
  position: relative;
  display: block;
  min-width: 0;
}

.payment-v2-floating-field input {
  width: 100%;
  min-height: 58px;
  padding: 22px 15px 8px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  outline: 0;
  background: var(--app-bg);
  color: var(--app-ink);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.payment-v2-floating-field span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--app-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left top;
  transition: color 160ms ease-out, font-size 160ms ease-out, transform 160ms ease-out;
}

.payment-v2-floating-field input:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgb(105 63 38 / 10%);
}

.payment-v2-floating-field input:focus + span,
.payment-v2-floating-field input:not(:placeholder-shown) + span {
  color: var(--app-accent);
  font-size: 11px;
  transform: translateY(-19px);
}

.payment-v2-comment {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 0 15px;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  color: var(--app-muted);
}

.payment-v2-comment:focus-within {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgb(105 63 38 / 10%);
}

.payment-v2-comment input {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-ink);
  font-size: 15px;
}

.payment-v2 .phone-verification { margin: -3px 0 0; }
.payment-v2 .phone-verification__action { color: #fff; background: var(--app-accent); }
.payment-v2 .address-field { position: relative; min-width: 0; margin: 0; }
.payment-v2 .address-field .payment-v2-control { height: 100%; }
.payment-v2 .address-suggestions { top: 76px; border-radius: 16px; background: var(--app-surface); }
.payment-v2 .zone-result { border-radius: 14px; }
.payment-v2 .consent { margin: 2px 4px; }
.payment-v2 .privacy-note { display: block; }
.payment-v2 .consent input { accent-color: var(--app-accent); }
.payment-v2 .form-status { margin: 0; border-radius: 14px; background: var(--app-surface); }
.payment-v2 .flow-payment-items { border-color: var(--app-line); }
.payment-v2 .flow-summary__rows { border-color: var(--app-line); }
.payment-v2 .flow-primary { background: var(--app-accent); }
.payment-v2 .flow-primary:hover { background: var(--app-accent-hover); }
.payment-v2 .otp-dialog__primary { color: #fff; }

@media (max-width: 767px) {
  .payment-v2-header { height: 72px; }
  .payment-v2-card { padding: 20px; border-radius: 22px; }
  .payment-v2-control { min-height: 72px; }
  .payment-v2 .flow-payment-methods { grid-template-columns: 1fr; }
  .payment-v2 .flow-payment-methods label { min-height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-v2 *,
  .payment-v2 *::before,
  .payment-v2 *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.delivery-time-field { position: relative; min-width: 0; }
.delivery-time-toggle { width: 100%; text-align: left; cursor: pointer; }
.delivery-time-toggle strong { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--app-ink); font-size: 15px; font-weight: 500; }
.delivery-time-toggle strong span { min-width: 0; }
.delivery-time-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--app-accent) 25%, transparent); outline-offset: 2px; }
.delivery-time-hint { margin: 7px 2px 0; color: var(--app-muted); font-size: 12px; line-height: 1.4; }
.delivery-time-hint.is-unavailable { color: var(--app-accent); }
.delivery-time-menu { position: absolute; top: 84px; left: 0; right: 0; z-index: 60; padding: 6px; border: 1px solid var(--app-line); border-radius: 16px; background: var(--app-surface); box-shadow: 0 10px 30px rgb(41 39 36 / 12%); }
.delivery-time-menu[hidden] { display: none; }
.delivery-time-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 52px; padding: 12px; border: 0; border-radius: 12px; text-align: left; color: var(--app-ink); background: transparent; font-size: 15px; cursor: pointer; }
.delivery-time-menu button:hover { background: var(--app-bg); }
.delivery-time-menu button:disabled { opacity: .45; cursor: default; }
.delivery-time-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--app-line); border-radius: 28px; color: var(--app-ink); background: var(--app-surface); box-shadow: 0 20px 70px rgb(41 39 36 / 18%); }
.delivery-time-dialog::backdrop { background: rgb(41 39 36 / 40%); }
.delivery-time-sheet { display: flex; flex-direction: column; max-height: calc(100dvh - 42px); padding: 28px; }
.delivery-time-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.delivery-time-sheet h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.delivery-time-sheet header button { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--app-muted); background: var(--app-bg); font-size: 26px; cursor: pointer; }
.delivery-time-days { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 30px; background: var(--app-bg); }
.delivery-time-days button { min-height: 48px; padding: 10px; border: 0; border-radius: 26px; color: var(--app-ink); background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; }
.delivery-time-days button[aria-pressed="true"] { color: var(--app-surface); background: var(--app-accent); }
#delivery-time-description { margin: 16px 2px 10px; color: var(--app-muted); font-size: 13px; line-height: 1.45; }
.delivery-time-slots { min-height: 0; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.delivery-time-slot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 16px; border-radius: 14px; color: var(--app-ink); cursor: pointer; font-size: 17px; }
.delivery-time-slot:hover { background: var(--app-bg); }
.delivery-time-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.delivery-time-slot:has(input:checked) { background: var(--app-bg); }
.delivery-time-slot i { display: grid; flex-shrink: 0; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--app-accent); color: var(--app-surface); font-size: 14px; font-style: normal; visibility: hidden; }
.delivery-time-slot input:checked ~ i { visibility: visible; }
.delivery-time-slot:has(input:focus-visible) { outline: 2px solid var(--app-accent); outline-offset: -2px; }
.delivery-time-sheet button:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.delivery-time-message { margin: 12px 2px; color: var(--app-muted); font-size: 12px; }
.delivery-time-sheet .flow-primary { flex-shrink: 0; display: block; width: 100%; min-height: 56px; margin: 0; text-align: center; font-size: 16px; }
.delivery-time-sheet .flow-primary:disabled { opacity: .45; cursor: default; }
@media (max-width: 767px) {
  .delivery-time-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 24px; }
  .delivery-time-sheet { max-height: calc(100dvh - 22px); padding: 20px; }
  .delivery-time-sheet h2 { font-size: 24px; }
  .delivery-time-menu { top: 78px; }
}

/* Fixed-value promo codes reuse the existing checkout typography and palette. */
.promo-panel { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #ded7ce; }
.promo-panel > label { display: block; margin-bottom: .5rem; font-weight: 600; }
.promo-panel__controls { display: flex; gap: .5rem; }
.promo-panel__controls input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #b8afa4; border-radius: 12px; padding: .65rem .75rem; background: #fcfbf8; color: #28231e; font: inherit; }
.promo-panel__controls button { min-height: 44px; padding: .65rem .75rem; border: 1px solid #693f26; border-radius: 12px; background: #693f26; color: #fcfbf8; font: inherit; }
.promo-panel button:disabled { opacity: .65; cursor: wait; }
.promo-panel :is(input,button):focus-visible { outline: 2px solid #693f26; outline-offset: 3px; }
.promo-panel > p { margin: .65rem 0 0; color: #665e55; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.promo-panel > p.is-error { color: #a02d24; }
.promo-panel__remove { margin-top: .5rem; min-height: 44px; padding: .25rem 0; color: #693f26; text-decoration: underline; font: inherit; }
.promo-discount-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; color: #42643b; font-size: .875rem; }
.promo-discount-row[hidden],.promo-panel[hidden] { display: none; }

