
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ord-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.ord-back:hover { color: var(--blue); }

.ord { min-height: 100vh; padding-block: 100px 48px; background: var(--paper); outline: none; }
.ord-title { margin-bottom: 18px; }

.ord-steps { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--mute); }
.ord-steps li { display: inline-flex; align-items: center; gap: 8px; }
.ord-steps span { font-size: 12px; font-weight: 800; color: var(--mute); }
.ord-steps .is-on { color: var(--ink); }
.ord-steps .is-on span, .ord-steps .is-done span { color: var(--blue); }

.ord-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.ord-main { min-width: 0; }
.ord-h { margin-bottom: 14px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ord-hint { margin-top: 10px; font-size: 15px; color: var(--mute); }
.ord-step:focus, .ord-h:focus, legend:focus { outline: none; }

.ord-products { margin: 0; padding: 0; border: 0; min-width: 0; }
.ord-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard {
  position: relative; display: grid; gap: 2px; padding: 10px 10px 14px; border-radius: 16px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pcard:hover { border-color: #BDB9AF; }
.pcard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pcard.is-on { border-color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
.pcard:has(input:focus-visible) { outline: 3px solid var(--blue-lit); outline-offset: 3px; }
.pcard::after { content: ""; position: absolute; top: 18px; left: 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #BDB9AF; background: var(--white); }
.pcard.is-on::after { border: 5px solid var(--blue); }
.pcard-thumb {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden;
  border-radius: 10px; background: linear-gradient(180deg, #F4F3EF, #DEDAD1);
}
.pcard-thumb .m-desk { width: 30%; } .pcard-thumb .m-mini { width: 30%; } .pcard-thumb .m-wall { width: 15%; }
.pcard-thumb .m-card { width: 52%; } .pcard-thumb .m-custom { width: 50%; }
.pcard-name { font-size: 17px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; direction: ltr; text-align: right; }
.pcard-cat { font-size: 13px; color: var(--mute); }
.pcard-price { margin-top: 6px; font-size: 15px; font-weight: 700; }

.ord-qty-block { margin-top: 28px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); }
.qty-btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: none; font-size: 26px; font-weight: 500; line-height: 1; cursor: pointer; color: var(--ink);
}
.qty-btn:hover:not(:disabled) { color: var(--blue); }
.qty-btn:disabled { color: #BDB9AF; cursor: default; }
.qty-input { width: 64px; height: 52px; padding: 0; border: 0; background: none; text-align: center; font: 800 22px/1 var(--font); color: var(--ink); -moz-appearance: textfield; }
.qty-input:focus-visible { outline: 3px solid var(--blue-lit); outline-offset: 0; border-radius: 8px; }

.ord-actions {
  position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  margin: 28px calc(var(--gut) * -1) 0; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
}
.ord-actions .btn { flex: none; min-height: 52px; padding: 0 22px; margin-inline-start: auto; }
.ord-bar-total { display: grid; line-height: 1.1; }
.ord-bar-total span { font-size: 12px; font-weight: 600; color: var(--mute); }
.ord-bar-total b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ord-actions-static { position: static; margin-inline: 0; padding-inline: 0; background: none; border: 0; flex-wrap: wrap; }
.ord-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; font-size: 16px; font-weight: 700; color: var(--blue); cursor: pointer; }
.ord-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.ord-form { display: grid; }
.ord-fs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.ord-fs legend { padding: 0; }
.f { grid-column: span 6; display: grid; gap: 6px; min-width: 0; }
.f-half { grid-column: span 6; }
.f-wide { grid-column: span 4; }
.f-narrow { grid-column: span 2; }
.f label { font-size: 14px; font-weight: 600; }
.f .f-opt { font-weight: 500; color: var(--mute); }
.f input, .f textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font: 500 17px/1.4 var(--font); color: var(--ink); transition: border-color .2s var(--ease);
}
.f input[dir="ltr"] { text-align: right; }
.f textarea { resize: vertical; min-height: 96px; }
.f input:hover, .f textarea:hover { border-color: #BDB9AF; }
.f input:focus, .f textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(0, 82, 255, .18); }
.f.is-bad input { border-color: #B42318; }
.f-err { font-size: 13px; font-weight: 600; color: #B42318; }
.f-err:empty { display: none; }
.ord-form-err { font-size: 14px; font-weight: 700; color: #B42318; }
.ord-form-err:empty { display: none; }

.ord-summary { align-self: start; padding: 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.sum-product { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-thumb { display: flex; align-items: center; justify-content: center; flex: none; width: 76px; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, #F4F3EF, #DEDAD1); }
.sum-thumb .m-desk { width: 42%; } .sum-thumb .m-mini { width: 44%; } .sum-thumb .m-wall { width: 22%; }
.sum-thumb .m-card, .sum-thumb .m-custom { width: 66%; }
.sum-name { font-size: 20px; font-weight: 900; letter-spacing: -.02em; direction: ltr; text-align: right; }
.sum-cat { font-size: 14px; color: var(--mute); }
.sum-lines { display: grid; }
.sum-lines div, .ord-review div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.sum-lines dt, .ord-review dt { font-size: 15px; color: var(--mute); }
.sum-lines dd, .ord-review dd { font-size: 16px; font-weight: 700; text-align: left; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.sum-total span { font-size: 16px; font-weight: 700; }
.sum-total b { font-size: 30px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.ord-ready { outline: none; }
.ord-ready-mark { position: relative; display: block; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--blue); }
.ord-ready-mark::after { content: ""; position: absolute; left: 50%; top: 45%; width: 12px; height: 22px; border: solid var(--white); border-width: 0 3.5px 3.5px 0; transform: translate(-50%, -50%) rotate(45deg); }
.ord-ready-title { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.ord-review { margin-top: 22px; padding: 6px 22px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.ord-review div:last-child { border-bottom: 0; }
.ord-review dd { max-width: 65%; overflow-wrap: anywhere; }
.ord-review .is-total dt { font-weight: 700; color: var(--ink); }
.ord-review .is-total dd { font-size: 26px; font-weight: 900; }
[data-order-step="3"] .ord-summary { display: none; }
.ord-wa { margin-top: 22px; }

@media (min-width: 640px) {
  .ord-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .f-half { grid-column: span 3; }
}

@media (min-width: 1024px) {
  .ord { padding-block: 124px 96px; }
  .ord-grid { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 56px; align-items: start; }
  [data-order-step="3"] .ord-grid { grid-template-columns: minmax(0, 760px); }
  .ord-summary { position: sticky; top: 100px; padding: 28px; }
  .ord-actions { position: static; margin: 32px 0 0; padding: 0; background: none; border: 0; }
  .ord-actions .btn { padding: 0 30px; }
  .ord-bar-total { display: none; }
  .pcard { padding: 12px 12px 16px; }
}

.ord-consent { font-size: 14px; color: var(--mute); }
.ord-consent a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.ord-legal { padding-block: 18px 110px; border-top: 1px solid var(--line); background: var(--paper); }
.ord-legal .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ord-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--mute); }
.ord-legal a:hover { color: var(--blue); }
@media (min-width: 1024px) { .ord-legal { padding-bottom: 40px; } }

.pcard-thumb, .sum-thumb { position: relative; overflow: hidden; }
.pcard-thumb img, .sum-thumb img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.ord-sizes { margin: 28px 0 0; padding: 0; border: 0; }
.sz-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.szchip { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 24px; background: var(--white); font-size: 16px; font-weight: 700; cursor: pointer; }
.szchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.szchip:hover { border-color: #BDB9AF; }
.szchip.is-on { border-color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); color: var(--blue); }
.szchip:has(input:focus-visible) { outline: 3px solid var(--blue-lit); outline-offset: 3px; }

.ord-cart-block { margin-top: 32px; }
.cart { display: grid; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "th tx q" "th act act"; align-items: center; column-gap: 12px; row-gap: 4px;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); }
.cart-line.is-on { border-color: var(--blue); box-shadow: 0 0 0 1.5px var(--blue); }
.cl-thumb { grid-area: th; position: relative; width: 52px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #F4F3EF, #DEDAD1); }
.cl-thumb img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.cl-txt { grid-area: tx; min-width: 0; }
.cl-txt b { display: block; font-size: 15px; font-weight: 900; direction: ltr; text-align: right; }
.cl-txt span { display: block; font-size: 13px; color: var(--mute); }
.cl-q { grid-area: q; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cl-act { grid-area: act; display: flex; gap: 16px; align-items: center; }
.cl-now { font-size: 13px; font-weight: 700; color: var(--blue); }
.cl-act .ord-link { min-height: 32px; font-size: 14px; }
.ord-add { display: block; width: 100%; min-height: 52px; margin-top: 16px; border: 1.5px dashed #BDB9AF; border-radius: 16px; background: transparent;
  font: inherit; font-size: 16px; font-weight: 800; color: var(--blue); cursor: pointer; }
.ord-add:hover { border-color: var(--blue); background: rgba(0,82,255,.04); }
.ord-add:focus-visible { outline: 3px solid var(--blue-lit); outline-offset: 3px; }
.sum-items { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.sum-items li { display: flex; align-items: center; gap: 12px; }
.sum-items .sum-thumb { width: 52px; }
.si-txt { flex: 1; min-width: 0; }
.si-txt b { display: block; font-size: 15px; font-weight: 900; direction: ltr; text-align: right; }
.si-txt span { display: block; font-size: 13px; color: var(--mute); }
.si-q { font-weight: 800; font-variant-numeric: tabular-nums; }
.ord-cart-top { margin: 0 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }

.ord-wa.ord-wa-alt { margin-top: 10px; color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.ord-wa.ord-wa-alt:hover { border-color: var(--ink); }
[data-pay][aria-disabled="true"], [data-wa-send][aria-disabled="true"] { opacity: .6; pointer-events: none; }

[hidden] { display: none !important; }
