/*
 * Стили Mini App. Используем CSS-переменные темы Telegram
 * (var(--tg-theme-...)) с запасными значениями — каталог выглядит
 * родным и в светлой, и в тёмной теме.
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--tg-theme-bg-color, #fff);
    color: var(--tg-theme-text-color, #111);
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* --- Шапка --- */
.topbar {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.topbar__title { font-weight: 700; font-size: 1.05rem; }
.topbar__cart { position: relative; font-size: 1.2rem; }
.topbar__badge {
    position: absolute; top: -6px; right: -10px;
    background: var(--tg-theme-button-color, #2481cc); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    border-radius: 999px; padding: 1px 6px;
}

.page { padding: 16px; padding-bottom: 40px; }
.page__title { font-size: 1.3rem; margin-bottom: 14px; }
.back {
    display: inline-block; margin-bottom: 10px;
    color: var(--tg-theme-link-color, #2481cc); font-size: 0.92rem;
}
.empty { color: var(--tg-theme-hint-color, #8e8e93); padding: 24px 0; }

/* --- Экран авторизации --- */
.auth { padding: 48px 8px; text-align: center; }
.auth__spinner { color: var(--tg-theme-hint-color, #8e8e93); }
.auth__help p { margin-bottom: 10px; }

/* --- Список категорий --- */
.catlist { display: flex; flex-direction: column; gap: 10px; }
.catlist__item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
    font-weight: 600;
}
.catlist__count {
    color: var(--tg-theme-hint-color, #8e8e93); font-weight: 400;
    font-size: 0.9rem;
}

/* --- Сетка товаров --- */
.grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.card {
    border-radius: 12px; overflow: hidden;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.card__photo {
    width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
    background: #fff;
}
.card__photo--empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.85rem;
}
.card__body { padding: 10px 12px 12px; }
.card__name { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.card__meta {
    color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.78rem;
    margin-bottom: 6px;
}
.card__price { font-weight: 700; margin-bottom: 8px; }
.card__price--ask { color: var(--tg-theme-hint-color, #8e8e93); font-weight: 400; }

/* --- Спеццены и фильтр «Мои поставщики» --- */
.card__oldprice {
    color: var(--tg-theme-hint-color, #8e8e93);
    font-weight: 400; font-size: 0.85em; margin-left: 6px;
}
.badge--special { background: #fff3c2; color: #8a6d00; }
.minefilter { display: flex; gap: 8px; margin-bottom: 14px; }
.minefilter__btn {
    padding: 7px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
    color: var(--tg-theme-hint-color, #8e8e93);
}
.minefilter__btn.is-active {
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff);
}

/* --- Бейджи наличия --- */
.badge {
    display: inline-block; margin-left: 6px; padding: 1px 7px;
    border-radius: 999px; font-size: 0.7rem; font-weight: 600;
}
.badge--stock { background: #d7f5d9; color: #1d7a26; }
.badge--new   { background: #e3edff; color: #1d4fa1; font-weight: 700; }
.mailing-text { white-space: pre-wrap; margin: 8px 0 14px; }
.badge--order { background: #fff0d4; color: #9a6b1a; }
.badge--out   { background: #fadadd; color: #a12633; }

/* --- Кнопки --- */
.btn {
    display: inline-block; border: none; cursor: pointer;
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff);
    font: inherit; font-weight: 600;
    border-radius: 10px; padding: 9px 14px; font-size: 0.9rem;
}
.btn--add { width: 100%; }
.btn--big { width: 100%; padding: 14px; font-size: 1rem; margin-top: 10px; }
.btn:disabled { opacity: 0.6; }

/* --- Галерея на странице товара --- */
.gallery { margin-bottom: 14px; }
.gallery__main {
    width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
    border-radius: 14px; background: #fff;
}
.gallery__thumbs {
    display: flex; gap: 8px; margin-top: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;   /* чтобы тень активной рамки не обрезалась */
}
.gallery__thumb {
    width: 64px; height: 64px; flex: 0 0 auto;
    object-fit: cover; border-radius: 10px; cursor: pointer;
    background: #fff; border: 2px solid transparent; opacity: 0.7;
    transition: opacity .15s, border-color .15s;
}
.gallery__thumb.is-active { opacity: 1; border-color: var(--tg-theme-button-color, #2481cc); }

/* --- Карточка товара --- */
.detail__photo { border-radius: 14px; margin-bottom: 14px; }
.detail__price { font-size: 1.35rem; font-weight: 700; margin: 10px 0; }
.detail__price--ask {
    font-size: 1rem; font-weight: 400;
    color: var(--tg-theme-hint-color, #8e8e93);
}
.detail__desc { margin: 10px 0 16px; white-space: pre-line; }

/* --- Виджет количества --- */
.qty { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qty__btn {
    width: 38px; height: 38px; border: none; border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
    color: inherit; font-size: 1.2rem; cursor: pointer;
}
.qty__input {
    width: 64px; text-align: center; font: inherit; padding: 8px;
    border: 1px solid var(--tg-theme-hint-color, #ccc); border-radius: 10px;
    background: transparent; color: inherit;
}
.qty--small .qty__btn { width: 30px; height: 30px; font-size: 1rem; }
.qty__value { min-width: 24px; text-align: center; font-weight: 600; }

/* --- Корзина --- */
.cartrow {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid var(--tg-theme-secondary-bg-color, #eee);
}
.cartrow--dead { opacity: 0.5; }
.cartrow__photo {
    width: 64px; height: 64px; border-radius: 10px; object-fit: cover;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7); flex-shrink: 0;
}
.cartrow__info { flex: 1; }
.cartrow__name { font-size: 0.92rem; font-weight: 600; }
.cartrow__price { font-size: 0.9rem; margin: 2px 0 4px; }
.cartrow__remove {
    border: none; background: none; cursor: pointer;
    color: var(--tg-theme-destructive-text-color, #d63b3b);
    font-size: 0.82rem; margin-left: 8px;
}
.cart__total { font-size: 1.15rem; margin: 16px 0 10px; }
.cart__comment-label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 0.88rem; font-weight: 600;
}
.cart__comment-label textarea {
    font: inherit; padding: 10px; border-radius: 10px;
    border: 1px solid var(--tg-theme-hint-color, #ccc);
    background: transparent; color: inherit; resize: vertical;
}
.cart__note {
    color: var(--tg-theme-hint-color, #8e8e93);
    font-size: 0.85rem; margin-top: 10px;
}

/* --- Заказ принят --- */
.done { text-align: center; padding: 40px 10px; }
.done__icon { font-size: 3rem; margin-bottom: 10px; }
.done p { color: var(--tg-theme-hint-color, #8e8e93); margin-bottom: 18px; }

/* ==========================================================================
   Кабинет поставщика (/supplier) — стили в общем файле, префикс s-.
   ========================================================================== */

.stabs { display: flex; gap: 14px; font-size: 0.92rem; }
.stabs__item { color: var(--tg-theme-link-color, #2481cc); font-weight: 600; }

.shint { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.9rem; margin-bottom: 14px; }

/* Плитки-разделы хаба */
.stiles { display: flex; flex-direction: column; gap: 12px; }
.stile {
    display: flex; flex-direction: column; gap: 2px;
    padding: 18px 16px; border-radius: 14px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.stile__icon { font-size: 1.5rem; }
.stile__name { font-weight: 700; font-size: 1.1rem; }
.stile__sub { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.88rem; }
.stile__badge {
    color: #fff; background: var(--tg-theme-button-color, #2481cc);
    border-radius: 999px; padding: 2px 10px; font-size: 0.82rem;
    font-weight: 600; align-self: flex-start; margin-top: 4px;
}

/* Список частей заказов */
.splist { display: flex; flex-direction: column; gap: 10px; }
.spart {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.spart--active { border-left: 4px solid var(--tg-theme-button-color, #2481cc); }
.spart__head { display: flex; justify-content: space-between; }
.spart__total { font-weight: 700; }
.spart__meta { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.88rem; }

/* Карточка части: статус, клиент, позиции */
.sstatus { font-weight: 600; margin-bottom: 10px; }
.scustomer {
    font-size: 0.9rem; color: var(--tg-theme-hint-color, #8e8e93);
    margin-bottom: 14px; padding: 10px 12px; border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}

.sitems { display: flex; flex-direction: column; gap: 12px; }
.sitem {
    padding: 12px; border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.sitem__row { display: flex; gap: 12px; align-items: flex-start; }
.sitem__row--controls {
    margin-top: 10px; align-items: center; justify-content: space-between;
}
.sitem__photo {
    width: 56px; height: 56px; border-radius: 8px; object-fit: cover;
    background: #fff; flex-shrink: 0;
}
.sitem__photo--empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--tg-theme-hint-color, #8e8e93);
}
.sitem__info { min-width: 0; }
.sitem__name { font-weight: 600; font-size: 0.95rem; }
.sitem__meta { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.82rem; }
.sitem__price { font-size: 0.9rem; margin-top: 4px; }
.sitem__total { font-weight: 700; }

.sqty { display: flex; align-items: center; gap: 4px; }
.sqty__btn {
    width: 34px; height: 34px; border: none; border-radius: 8px;
    font-size: 1.2rem; line-height: 1; cursor: pointer;
    background: var(--tg-theme-bg-color, #fff); color: inherit;
}
.sqty__val { min-width: 30px; text-align: center; font-weight: 700; }

.slink {
    background: none; border: none; padding: 0; font: inherit;
    font-size: 0.85rem; color: var(--tg-theme-link-color, #2481cc);
    cursor: pointer;
}
.slink--danger { color: #d33; }

/* Правка цены */
.spricebox {
    margin-top: 10px; padding: 10px; border-radius: 10px;
    background: var(--tg-theme-bg-color, #fff);
    display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem;
}
.spricebox__label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.spricebox__input {
    font: inherit; width: 110px; padding: 8px; border-radius: 8px;
    border: 1px solid var(--tg-theme-hint-color, #ccc);
    background: transparent; color: inherit;
}
.spricebox__hint { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.85rem; }
.spricebox__catalog { font-size: 0.85rem; display: flex; gap: 6px; align-items: center; }
.spricebox__actions { display: flex; gap: 14px; align-items: center; }

/* Итоги и действия */
.stotals { margin: 16px 0 14px; font-size: 1.05rem; }
.stotals__order { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.9rem; }

.sactions { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.sbtn {
    font: inherit; font-weight: 700; padding: 14px; border: none;
    border-radius: 12px; cursor: pointer;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7); color: inherit;
}
.sbtn--primary {
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff);
}
.sbtn--small { padding: 8px 14px; font-size: 0.88rem; border-radius: 8px; }
.sactions__decline { align-self: center; margin-top: 6px; }

/* Кабинет: раздел «Товары» */
.ssearch { margin-bottom: 10px; }
.ssearch__input {
    width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--tg-theme-hint-color, #ccc);
    background: var(--tg-theme-secondary-bg-color, #f2f2f7); color: inherit;
}
.sfilter {
    display: inline-block; margin-bottom: 12px; padding: 6px 12px;
    border-radius: 999px; font-size: 0.88rem; font-weight: 600;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.sfilter--on { background: var(--tg-theme-button-color, #2481cc); color: #fff; }

.sprod {
    display: flex; gap: 12px; align-items: center;
    padding: 10px 12px; border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.sprod__photo {
    width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
    background: #fff; flex-shrink: 0;
}
.sprod__photo--empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--tg-theme-hint-color, #8e8e93);
}
.sprod__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sprod__name { font-weight: 600; font-size: 0.93rem; }
.sprod__meta { color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.8rem; }
.sprod__price { font-weight: 700; font-size: 0.92rem; }
.sprod__price--none { color: #d33; }

.sgallery { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; }
.sgallery__photo {
    width: 96px; height: 96px; border-radius: 10px; object-fit: cover;
    background: #fff; flex-shrink: 0;
}

.sblock {
    padding: 14px; border-radius: 12px; margin-bottom: 12px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}
.sblock__title { font-weight: 700; margin-bottom: 6px; }
.sblock__value { font-size: 1.1rem; }
.sblock__value--warn { color: #d33; font-size: 0.95rem; }

.sseg { display: flex; gap: 6px; flex-wrap: wrap; }
.sseg__btn {
    font: inherit; font-size: 0.88rem; padding: 9px 12px; border: none;
    border-radius: 10px; cursor: pointer;
    background: var(--tg-theme-bg-color, #fff); color: inherit;
}
.sseg__btn--on {
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff); font-weight: 700;
}

/* Кабинет: инвайт-ссылки */
.sinvite {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem; word-break: break-all;
    padding: 8px 10px; border-radius: 8px; margin-top: 6px;
    background: var(--tg-theme-bg-color, #fff);
}

/* Кабинет: форма карточки товара */
.sform { display: flex; flex-direction: column; gap: 10px; }
.sform__field {
    display: flex; flex-direction: column; gap: 4px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--tg-theme-hint-color, #8e8e93);
}
.sform__input {
    font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--tg-theme-hint-color, #ccc);
    background: var(--tg-theme-bg-color, #fff);
    color: var(--tg-theme-text-color, #111);
}
.sform__textarea { min-height: 90px; resize: vertical; }

/* Кабинет: управление фотографиями товара */
.sphotos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.sphoto { position: relative; flex-shrink: 0; width: 108px; }
.sphoto__img {
    width: 108px; height: 108px; border-radius: 10px; object-fit: cover;
    background: #fff; display: block;
}
.sphoto__img--broken {
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--tg-theme-hint-color, #8e8e93); font-size: 0.75rem;
    background: var(--tg-theme-bg-color, #fff);
}
.sphoto__main {
    position: absolute; top: 6px; left: 6px;
    background: var(--tg-theme-button-color, #2481cc); color: #fff;
    font-size: 0.68rem; font-weight: 700; border-radius: 999px; padding: 1px 8px;
}
.sphoto__controls { display: flex; justify-content: space-between; margin-top: 4px; }
.sphoto__btn {
    font: inherit; font-size: 0.9rem; width: 32px; height: 30px;
    border: none; border-radius: 8px; cursor: pointer;
    background: var(--tg-theme-bg-color, #fff); color: inherit;
}
.sphoto__btn--del { color: #d33; }

/* Кабинет: статусы ИИ-обработки фото */
.sphoto__img--dim { opacity: 0.45; }
.sphoto__state {
    position: absolute; bottom: 40px; left: 6px;
    background: rgba(0, 0, 0, 0.65); color: #fff;
    font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 2px 8px;
}
.sphoto__state--fail { background: #c0392b; }

/* Кабинет: строка статуса загрузки фото */
.supload {
    margin-top: 10px; padding: 10px 12px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
}

/* Кабинет: кадры на согласовании */
.sphoto__state--ask { background: #e67e22; }
.sphoto__btn--ok { color: #27ae60; }

/* --- Лайтбокс: полноэкранный просмотр фото товара --- */
.gallery__main { cursor: zoom-in; }
.lightbox {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0, 0, 0, 0.92);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
    padding: 16px;
}
.lightbox__img {
    max-width: 100%; max-height: 78vh; object-fit: contain;
    border-radius: 8px;
}
.lightbox__close {
    position: absolute; top: 14px; right: 14px;
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15); color: #fff;
    font-size: 1.1rem; cursor: pointer;
}
.lightbox__actions { display: flex; gap: 12px; }
.lightbox__btn {
    font: inherit; font-weight: 600; font-size: 0.95rem;
    padding: 12px 18px; border: none; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, 0.15); color: #fff;
}

/* Кабинет: категории */
.scat {
    padding: 12px 14px; border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7);
    display: flex; flex-direction: column; gap: 8px;
}
.scat__row { display: flex; justify-content: space-between; align-items: center; }
.scat__row--child { padding-left: 10px; color: var(--tg-theme-text-color, #111); }

/* ФИКС: display:flex у .lightbox перебивал атрибут hidden — оверлей был
   виден всегда (пустая картинка + кнопки, крестик «не работал»). */
.lightbox[hidden] { display: none; }

.lightbox__hint {
    color: rgba(255, 255, 255, 0.65); font-size: 0.82rem;
}

.lightbox__counter {
    position: absolute; top: 20px; left: 20px;
    color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; font-weight: 600;
}

/* Кабинет: отладочная панель генерации (админ) */
.sdebug {
    margin-top: 12px; padding: 10px 12px; border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color, #f2f2f7); font-size: 0.85rem;
}
.sdebug summary { font-weight: 600; cursor: pointer; }
.sdebug__item { margin-top: 10px; }
.sdebug__meta { color: var(--tg-theme-hint-color, #8e8e93); margin-bottom: 4px; }
.sdebug__prompt {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem; white-space: pre-wrap; word-break: break-word;
    padding: 8px 10px; border-radius: 8px;
    background: var(--tg-theme-bg-color, #fff);
}

/* Кабинет: номера кадров, шапка окна доработки, мини-версии в панели */
.sphoto__num {
    position: absolute; top: 6px; right: 6px;
    background: rgba(0, 0, 0, 0.6); color: #fff;
    font-size: 0.68rem; font-weight: 700; border-radius: 999px; padding: 1px 7px;
}
.sretry-head { display: flex; align-items: center; gap: 10px; }
.sretry-head__thumb {
    width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
    background: #fff;
}
.sdebug__versions { margin: 6px 0; display: flex; align-items: center;
    gap: 6px; flex-wrap: wrap; }
.sminithumb {
    width: 44px; height: 44px; border-radius: 6px; object-fit: cover;
    background: #fff; cursor: zoom-in;
}
.sminithumb--current { outline: 2px solid var(--tg-theme-button-color, #2481cc); }

/* Кабинет: данные WB (габариты в строку) */
.sdims { display: flex; gap: 8px; }
.sdims .sform__input { min-width: 0; }
.sdims .sform__field { flex: 1; }

/* Кабинет: рассылки (мастер) */
.mkinds { display: flex; gap: 8px; flex-wrap: wrap; }
.mkind { display: flex; }
.mkind input { position: absolute; opacity: 0; }
.mkind span { padding: 8px 12px; border-radius: 10px; font-size: 0.92rem;
    background: var(--tg-theme-secondary-bg-color, #f0f0f0); cursor: pointer; }
.mkind input:checked + span {
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff); }
.form-inline { display: flex; gap: 10px; align-items: center;
    flex-wrap: wrap; margin: 8px 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px; margin-top: 8px; }
.mprod { position: relative; display: flex; flex-direction: column;
    border-radius: 10px; overflow: hidden; cursor: pointer;
    background: var(--tg-theme-secondary-bg-color, #f0f0f0);
    border: 2px solid transparent; }
.mprod:has(input:checked) { border-color: var(--tg-theme-button-color, #2481cc); }
.mprod input { position: absolute; top: 6px; left: 6px; z-index: 1;
    width: 20px; height: 20px; accent-color: var(--tg-theme-button-color, #2481cc); }
.mprod img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.mprod__nophoto { width: 100%; aspect-ratio: 1/1; display: flex;
    align-items: center; justify-content: center; font-size: 1.6rem; }
.mprod__new { position: absolute; top: 6px; right: 6px; }
.mprod__name { font-size: 0.76rem; padding: 4px 6px 0; line-height: 1.25;
    max-height: 2.6em; overflow: hidden; }
.mprod__meta { font-size: 0.7rem; opacity: 0.65; padding: 1px 6px 6px; }
.mcustomers { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mcust { display: flex; gap: 8px; align-items: center; font-size: 0.92rem;
    padding: 8px 10px; border-radius: 10px;
    background: var(--tg-theme-secondary-bg-color, #f0f0f0); }
.mcust input { width: 18px; height: 18px;
    accent-color: var(--tg-theme-button-color, #2481cc); }
.mcust--off { opacity: 0.55; }
.mcust em { font-style: normal; opacity: 0.7; font-size: 0.82rem; }
.sinput { width: 100%; font: inherit; padding: 9px 11px; border-radius: 10px;
    border: 1px solid var(--tg-theme-hint-color, #c6c6c6);
    background: var(--tg-theme-bg-color, #fff);
    color: var(--tg-theme-text-color, #000); resize: vertical; }
.qty--small .qty__input { width: 56px; padding: 6px; }
