/* Выезжающие панели витрины: оформление, экран заказа, «Мои заказы». */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s }
.sheet.is-open { opacity: 1; visibility: visible }
.sheet__panel { position: relative; width: 100%; max-width: 620px; max-height: 94vh; overflow: auto; overscroll-behavior: contain; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); background: var(--card); border-radius: 26px 26px 0 0; box-shadow: var(--shadow); transform: translateY(100%); transition: transform .45s var(--ease) }
.sheet.is-open .sheet__panel { transform: none }
.sheet__close { position: absolute; right: 12px; top: 12px }
.sheet h2 { font: 600 32px/1.1 var(--serif); margin: 0 52px 14px 0 }

.seg { display: flex; gap: 6px; padding: 5px; margin: 6px 0 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line) }
.seg label { flex: 1; position: relative }
.seg input { position: absolute; opacity: 0; pointer-events: none }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 8px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--muted); text-align: center; cursor: pointer; transition: background .25s, color .25s }
.seg em { font-style: normal; color: var(--ok); font-size: 13px }
.seg input:checked + span { background: var(--text); color: var(--bg) }
.seg input:checked + span em { color: #2f7a2a }
.seg input:focus-visible + span { outline: 2px solid var(--accent) }
.seg--small span { height: 38px; font-size: 13.5px }
.seg label.is-disabled span { opacity: .35; cursor: not-allowed }

.group { border: 0; padding: 0; margin: 16px 0 6px }
.group legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--muted) }
.f-select { margin-top: 2px }

.pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px }
.pay label { position: relative }
.pay input { position: absolute; opacity: 0; pointer-events: none }
.pay span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; cursor: pointer; transition: border-color .2s, background .2s }
.pay input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2) }
.pay input:focus-visible + span { outline: 2px solid var(--accent) }

.totals { margin: 18px 0 10px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line) }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px }
.line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums }
.line--item { color: var(--muted) }
.line--discount { color: var(--ok) }
.line--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; font-size: 18px }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 12px 0 4px; cursor: pointer }
.consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent) }

/* Экран заказа */
.status { text-align: center }
.status h2 { margin: 6px 0 4px }
.status__check { width: 72px; height: 72px; margin: 6px auto 12px; display: grid; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 800; color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: pop .5s var(--ease), pulse 2.2s 1s infinite }
.is-cancelled .status__check { background: var(--err-soft); color: var(--err); animation: none }
.status__sub { color: var(--muted); font-size: 15px; min-height: 22px }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 22px; padding: 0; position: relative }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--faint); line-height: 1.2 }
.step:not(:last-child)::after { content: ''; position: absolute; top: 9px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; border-radius: 2px; background: var(--line-2) }
.step.is-done:not(:last-child)::after { background: var(--accent) }
.step__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); transition: background .4s, border-color .4s }
.step.is-done { color: var(--muted) }
.step.is-done .step__dot { background: var(--accent); border-color: var(--accent) }
.step.is-now { color: var(--text) }
.step.is-now .step__dot { border-color: var(--accent); background: var(--accent-2); animation: pulse 1.6s infinite }
.status__card { text-align: left; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 10px }
.status__card:empty { display: none }
.status__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--muted); font-size: 13px }

/* Мои заказы */
.horder { padding: 14px 0; border-bottom: 1px solid var(--line) }
.horder__head { display: flex; align-items: center; gap: 10px; font-size: 14px }
.horder__head .chip { margin-left: auto }
.horder__lines { color: var(--muted); font-size: 13.5px; margin: 6px 0 10px }
.horder__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.horder__btns { display: flex; gap: 8px }

@media (min-width: 1024px) {
  .sheet { align-items: center }
  .sheet__panel { border-radius: 26px; max-height: 90vh; padding: 28px 30px; transform: translateY(24px) scale(.98); transition: transform .35s var(--ease) }
}
