/* Страницы для клиентов хозяйства: форма заказа, отслеживание, личный кабинет. Цвета берутся из app.css и настроек хозяйства. */
.client { background: var(--bg); }
.c-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 120px; }
.c-top { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.c-top h1 { flex: 1; margin: 0; font-size: 1.35rem; }
.c-top a { font-size: .95rem; }
.c-welcome { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.c-cat { margin: 26px 0 12px; font-size: 1.15rem; }
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.good { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden; }
.good .ph { aspect-ratio: 4 / 3; background: var(--line) center / cover no-repeat; }
.good .ph.none { display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.good .in { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.good b { font-weight: 600; line-height: 1.25; }
.good small { color: var(--muted); }
.good .pr { font-size: 1.1rem; font-weight: 600; margin-top: auto; }
.good .out { color: var(--danger); font-size: .9rem; }
.qtybox { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qtybox button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1.2rem var(--font); cursor: pointer; }
.qtybox input { margin: 0; text-align: center; min-width: 0; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .5); }
.cartbar > div { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.cartbar span { flex: 1; }
.c-card { background: var(--surface); border-radius: 20px; padding: 22px; margin-bottom: 16px; }
.c-card h2 { font-size: 1.15rem; }
.c-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.c-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.c-lines li span:last-child { white-space: nowrap; font-weight: 500; }
.c-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 600; }
.st-pill { display: inline-block; padding: 6px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.st-pill.done { background: #DDF3E4; color: #17683A; } .st-pill.cancel { background: #F8E3DE; color: #7C2A1B; }
.hist { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: .92rem; }
.hist li { padding: 3px 0; }
.ord { display: block; color: var(--ink); text-decoration: none; }
.ord .row1 { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.hp { position: absolute; left: -5000px; }

.cmsgs { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cmsgs:empty::before { content: "Задайте вопрос, мы ответим здесь."; color: var(--muted); }

/* счётчик количества: кнопки и поле одной высоты и на одной линии, в том числе на маркете, где у полей свои отступы */
.qtybox { align-items: stretch; }
.qtybox button { flex: none; height: 44px; line-height: 1; padding: 0; }
.qtybox input, .landing .qtybox input:not([type="checkbox"]) { flex: 1; height: 44px; min-height: 44px; margin: 0; padding: 0 8px; }

.good .in b a { color: inherit; text-decoration: none; }
.good .in b a:hover { text-decoration: underline; }

.c-send { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.c-send input { flex: 1; min-width: 0; margin: 0; border-radius: 22px; padding: 0 16px; min-height: 44px; }
.c-sendbtn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; }
.c-sendbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.c-ask { margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.c-ask p { margin: 0 0 8px; } .c-ask p:last-child { margin: 0; }
.hist li { margin: 4px 0; }

/* выбор темы внизу страниц клиента */
.c-theme { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 22px 0 10px; color: var(--muted); font-size: .85rem; }
.c-theme span { margin-right: 4px; }
.c-theme button { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.c-theme button.on { background: var(--surface); color: var(--ink); border-color: var(--ink); font-weight: 600; }
/* название и логотип компании ведут в кабинет клиента */
.c-home { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.c-home h1 { flex: 1; margin: 0; font-size: 1.35rem; }

/* страница оплаты по ссылке */
.pl-card { text-align: center; }
.pl-sum { font-size: 2rem; font-weight: 700; margin: 8px 0 16px; }
.pl-ok { color: var(--ok, #2e7d32); font-weight: 600; font-size: 1.1rem; }
.pl-off { color: var(--muted, #777); }
.pl-go { width: 100%; padding: 14px; font-size: 1.05rem; margin: 8px 0; }
