:root {
  --flow-bg: #f5f3ef;
  --flow-surface: #fdfcf9;
  --flow-accent: #693f26;
  --flow-accent-hover: #502e1b;
  --flow-text: #292724;
  --flow-muted: #7a766f;
  --flow-border: #e2dfd6;
  --flow-soft: #ece8e1;
}

body.flow-body {
  min-height: 100vh;
  margin: 0;
  background: var(--flow-bg);
  color: var(--flow-text);
  font-family: "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.flow-body h1,
.flow-body h2,
.flow-body h3,
.flow-body p { margin-top: 0; }

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

.flow-site-header__inner {
  max-width: 1180px;
  min-height: 80px;
  margin: auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.flow-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.flow-back:hover { background: var(--flow-bg); }
.flow-brand { justify-self: center; }
.flow-brand img { width: 100px; filter: brightness(0); }
.flow-step-label { justify-self: end; color: var(--flow-muted); font-size: 12px; }

.flow-shell {
  width: min(100%, 1180px);
  margin: auto;
  padding: 48px 28px 90px;
}

.flow-intro { max-width: 760px; margin-bottom: 38px; }
.flow-kicker { margin-bottom: 10px; color: var(--flow-muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.flow-intro h1 { margin-bottom: 12px; font-size: clamp(42px, 5.2vw, 64px); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
.flow-intro > p:last-child { max-width: 620px; margin-bottom: 0; color: var(--flow-muted); line-height: 1.55; }

.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 38px; align-items: start; }
.flow-grid > * { min-width: 0; }
.flow-stack { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.flow-card { min-width: 0; border: 1px solid var(--flow-border); border-radius: 24px; background: var(--flow-surface); }
.flow-order-card { overflow: hidden; }
.flow-card__head { min-height: 106px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--flow-border); }
.flow-card__head h2 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.035em; }
.flow-card__head > span,
.flow-card__head > strong { color: var(--flow-muted); font-size: 12px; font-weight: 500; }

.flow-body .cart__items { padding: 0 24px; }
.flow-body .cart-item { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 22px 0; align-items: center; border-color: var(--flow-border); }
.flow-body .cart-item__image { width: 96px; height: 88px; border-radius: 16px; object-fit: cover; }
.flow-body .cart-item h3 { margin: 0 0 7px; font-family: "Onest", system-ui, sans-serif; font-size: 15px; line-height: 1.35; }
.flow-body .cart-item__price { color: var(--flow-text); font-weight: 700; }
.flow-body .cart-item .quantity { border: 0; border-radius: 13px; background: var(--flow-bg); }
.flow-body .cart-item .quantity button { width: 40px; height: 40px; font-size: 18px; }
.flow-body .remove-button { color: var(--flow-muted); text-decoration: none; }

.flow-empty { padding: 58px 28px; text-align: center; }
.flow-empty__icon { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--flow-soft); font-size: 28px; transform: rotate(180deg); }
.flow-empty p { margin-bottom: 7px; font-size: 20px; font-weight: 700; }
.flow-empty > span:not(.flow-empty__icon) { display: block; color: var(--flow-muted); font-size: 13px; }
.flow-secondary { min-height: 48px; margin-top: 24px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--flow-accent); border-radius: 14px; color: var(--flow-accent); font-size: 13px; font-weight: 600; text-decoration: none; }

.flow-body .cart-recommendations { margin: 0; padding: 26px 24px 24px; border-top: 8px solid var(--flow-bg); }
.flow-body .cart-recommendations__head { margin-bottom: 16px; }
.flow-body .cart-recommendations__head h3 { font-size: 20px; }
.flow-body .cart-recommendations__list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.flow-body .cart-recommendations__list::-webkit-scrollbar { display: none; }
.flow-body .recommendation { position: relative; min-width: 210px; flex: 0 0 210px; display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 10px; border: 1px solid var(--flow-border); border-radius: 18px; background: var(--flow-surface); scroll-snap-align: start; }
.flow-body .recommendation img,
.flow-body .recommendation__image { grid-column: 1 / -1; width: 100%; height: 132px; border-radius: 13px; object-fit: cover; }
.flow-body .recommendation strong { max-width: 145px; font-size: 13px; }
.flow-body .recommendation span { margin-top: 5px; color: var(--flow-muted); font-size: 12px; }
.flow-body .recommendation button { width: 38px; height: 38px; align-self: end; border: 0; border-radius: 50%; background: var(--flow-bg); color: var(--flow-accent); font-size: 22px; cursor: pointer; }
.flow-text-link { margin: 0 24px 26px; display: inline-block; color: var(--flow-accent); font-size: 13px; text-underline-offset: 4px; }

.flow-summary { position: sticky; top: 106px; padding: 26px 24px; }
.flow-summary > h2 { margin: 0 0 26px; font-size: 22px; letter-spacing: -.03em; }
.flow-summary__rows { padding-bottom: 20px; border-bottom: 1px solid var(--flow-border); }
.flow-summary__rows p { margin: 0 0 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; font-size: 13px; }
.flow-summary__rows p:last-child { margin-bottom: 0; }
.flow-summary__rows span { color: var(--flow-muted); }
.flow-summary__rows strong { font-weight: 600; }
.flow-summary__rows em { max-width: 170px; color: var(--flow-muted); font-style: normal; text-align: right; }
.flow-summary__total { padding: 26px 0 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.flow-summary__total span { font-weight: 600; }
.flow-summary__total strong { font-size: 26px; letter-spacing: -.04em; }
.flow-primary { width: 100%; min-height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; background: var(--flow-accent); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.flow-primary:hover { background: var(--flow-accent-hover); transform: translateY(-1px); }
.flow-primary[aria-disabled="true"], .flow-primary:disabled { pointer-events: none; opacity: .45; }
.flow-summary__note { margin: 13px 4px 0; color: var(--flow-muted); font-size: 11px; line-height: 1.45; text-align: center; }
.flow-mobile-bar { display: none; }
.checkout-notice { margin: 18px 0 12px; padding: 14px 16px; border: 1px solid #d8c5b4; border-radius: 14px; background: #f3e9df; color: var(--flow-accent); }
.checkout-notice[hidden] { display: none; }
.checkout-notice > strong { display: block; font-size: 15px; line-height: 1.4; }
.checkout-notice > p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.checkout-notice--mobile { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body:has(#payment-mobile-bar.has-notice) main { padding-bottom: 250px; }

.flow-options { padding: 26px; }
.flow-option-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.flow-option-icon,
.flow-round-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #f1ece5; color: var(--flow-accent); }
.flow-option-row h2 { margin: 0 0 5px; font-size: 18px; }
.flow-option-row p { margin: 0; color: var(--flow-muted); font-size: 13px; }
.flow-counter { width: 136px; height: 48px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-radius: 14px; background: var(--flow-bg); text-align: center; }
.flow-counter button { height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; }
.flow-counter button:hover { background: #fff; }
.flow-comment { margin-top: 24px; padding-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; border-top: 1px solid var(--flow-border); }
.flow-comment input { width: 100%; border: 0; background: transparent; color: var(--flow-text); font: inherit; outline: none; }
.flow-addons { padding-top: 20px; }
.flow-addons__head { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.flow-addons__head h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.flow-addons__head > span { color: var(--flow-muted); font-size: 12px; }

.flow-form-card { padding: 26px; }
.flow-form-card > .flow-card__head { min-height: 0; margin-bottom: 22px; padding: 0 0 22px; }
.flow-fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-fields-three { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flow-body .field { gap: 7px; margin-bottom: 14px; color: var(--flow-muted); font-size: 12px; }
.flow-body .field input,
.flow-body .field textarea,
.flow-body .field select { width: 100%; min-height: 54px; padding: 13px 15px; border: 1px solid var(--flow-border); border-radius: 14px; background: var(--flow-bg); color: var(--flow-text); font: inherit; }
.flow-body .field textarea { min-height: 86px; }
.flow-body .field input:focus,
.flow-body .field textarea:focus,
.flow-body .field select:focus { border-color: var(--flow-accent); outline: 3px solid color-mix(in srgb, var(--flow-accent) 11%, transparent); }
.flow-segmented { margin-bottom: 20px; padding: 5px; border-radius: 16px; background: var(--flow-bg); }
.flow-segmented label { min-height: 44px; border: 0; border-radius: 12px; background: var(--flow-surface); }
.flow-body .phone-verification { margin-top: -4px; margin-bottom: 18px; }
.flow-body .address-suggestions { top: 76px; border-radius: 16px; }
.flow-body .delivery-map--checkout { height: 230px; overflow: hidden; border: 0; border-radius: 16px; }

.flow-payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-payment-methods label { position: relative; min-height: 142px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--flow-border); border-radius: 18px; cursor: pointer; }
.flow-payment-methods label:has(input:checked) { border-color: var(--flow-accent); box-shadow: 0 0 0 1px var(--flow-accent); }
.flow-payment-methods input { position: absolute; opacity: 0; }
.flow-payment-methods label > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #f1ece5; color: var(--flow-accent); }
.flow-payment-methods strong { margin-top: auto; font-size: 14px; }
.flow-payment-methods small { margin-top: 4px; color: var(--flow-muted); font-size: 10px; }
.flow-tips { display: flex; gap: 8px; overflow-x: auto; }
.flow-tips label { cursor: pointer; }
.flow-tips input { position: absolute; opacity: 0; }
.flow-tips span { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--flow-border); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.flow-tips input:checked + span { border-color: var(--flow-accent); background: var(--flow-accent); color: #fff; }
.flow-payment-items { display: grid; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--flow-border); }
.flow-payment-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; font-size: 12px; }
.flow-payment-item__qty { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f1ece5; font-weight: 700; }
.flow-payment-item strong { display: block; line-height: 1.35; }
.flow-payment-item small { margin-top: 3px; display: block; color: var(--flow-muted); }
.flow-payment-item > b { white-space: nowrap; }
.flow-payment .consent { margin: 2px 4px; }
.flow-payment .form-status { margin: 0; border-radius: 14px; background: var(--flow-surface); }

.flow-success { max-width: 720px; margin: 6vh auto; padding: clamp(30px, 6vw, 64px); border: 1px solid var(--flow-border); border-radius: 28px; background: var(--flow-surface); text-align: center; }
.flow-success__mark { width: 58px; height: 58px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: #e5efe3; color: #3d6b3b; font-size: 25px; }
.flow-success h1 { margin-bottom: 16px; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.055em; }
.flow-success > p { color: var(--flow-muted); }
.flow-success .confirmation__details { margin: 30px 0; border-color: var(--flow-border); color: var(--flow-text); text-align: left; }
.flow-success .confirmation__details > div { border-color: var(--flow-border); }
.flow-success .confirmation__details dt { color: var(--flow-muted); }
.flow-success__note { font-size: 12px; line-height: 1.5; }
.flow-success__link { max-width: 280px; margin: 26px auto 0; }

@media (max-width: 920px) {
  .flow-shell { padding-bottom: 126px; }
  .flow-grid { grid-template-columns: 1fr; gap: 18px; }
  .flow-summary { position: static; }
  .flow-summary > .flow-primary { display: none; }
  .flow-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto minmax(190px, 320px); align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--flow-border); background: var(--flow-surface); box-shadow: 0 -12px 36px rgba(41,39,36,.08); }
  .flow-mobile-bar > div span,
  .flow-mobile-bar > div strong { display: block; }
  .flow-mobile-bar > div span { color: var(--flow-muted); font-size: 11px; }
  .flow-mobile-bar > div strong { margin-top: 3px; font-size: 17px; }
  .flow-payment .flow-summary { order: -1; }
}

@media (max-width: 640px) {
  .flow-site-header__inner { min-height: 68px; padding: 0 14px; }
  .flow-brand img { width: 84px; }
  .flow-step-label { font-size: 10px; }
  .flow-shell { padding: 28px 10px 124px; }
  .flow-intro { padding: 0 8px; margin-bottom: 26px; }
  .flow-intro h1 { font-size: 38px; }
  .flow-intro > p:last-child { font-size: 13px; }
  .flow-card { border-radius: 22px; }
  .flow-card__head { min-height: 92px; padding: 20px 18px; }
  .flow-body .cart__items { padding: 0 18px; }
  .flow-body .cart-item { grid-template-columns: 76px minmax(0, 1fr); align-items: start; }
  .flow-body .cart-item__image { width: 76px; height: 72px; border-radius: 14px; }
  .flow-body .cart-item .quantity { grid-column: 2; width: fit-content; }
  .flow-body .cart-recommendations { padding-inline: 18px; }
  .flow-text-link { margin-inline: 18px; }
  .flow-summary,
  .flow-options,
  .flow-form-card { padding: 20px 18px; }
  .flow-option-row { grid-template-columns: auto 1fr; }
  .flow-counter { grid-column: 1 / -1; width: 136px; margin-left: 60px; }
  .flow-addons { padding-inline: 8px; }
  .flow-addons__head > span { display: none; }
  .flow-fields-two { grid-template-columns: 1fr; gap: 0; }
  .flow-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .flow-fields-three .field input { padding-inline: 10px; }
  .flow-payment-methods { grid-template-columns: 1fr; }
  .flow-payment-methods label { min-height: 116px; }
  .flow-mobile-bar { grid-template-columns: auto 1fr; padding-inline: 12px; }
  .flow-mobile-bar .flow-primary { min-height: 52px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-primary { transition: none; }
}
