

/* Start:/local/templates/project/components/project/order.cart/.default/style.css?17920737748054*/
/* ==========================================================================
   project:order.cart — раскладка корзины, строки товаров, промокод,
   доставка в сводке, быстрый заказ. Сводка и итоги — project.order,
   счётчик, кнопки, радио-карточки — project.ui.
   ========================================================================== */

/* --- Раскладка ---------------------------------------------------------- */
.cart { display: grid; gap: 0; }

.cart__positions { display: none; }

.cart__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.cart__clear:hover { color: var(--text); }
.cart__clear .icon { width: 16px; height: 16px; }
.cart__clear-extra { display: none; }

@media (min-width: 1024px) {
    .cart {
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
        grid-template-areas:
            "head head"
            "main summary";
        column-gap: 32px;
        align-items: start;
    }

    .cart__head { grid-area: head; }
    .cart__main { grid-area: main; }
    .cart__summary { grid-area: summary; }

    .cart__positions { display: inline; }
    .cart__clear { font-size: 15px; }
    .cart__clear-extra { display: inline; }
}

/* --- Строка товара ------------------------------------------------------ */
.cart-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas:
        "img info actions"
        "qty qty  price";
    gap: 14px 12px;
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.cart-item__img { grid-area: img; display: block; }

.cart-item__img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item__info { grid-area: info; min-width: 0; }

.cart-item__title {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.cart-item__title:hover { color: var(--accent); }

.cart-item__meta { margin: 4px 0 0; color: var(--accent); font-size: 12px; }
.cart-item__meta:first-of-type { display: none; }

.cart-item__actions { grid-area: actions; display: flex; flex-direction: column; gap: 12px; }

.cart-item__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.cart-item__action:hover { color: var(--text); }
.cart-item__action .icon { width: 18px; height: 18px; }
.cart-item__action[aria-pressed="true"] .icon { fill: currentColor; }
.cart-item__action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* На мобильных у действий только иконки, подпись остаётся для скринридера */
.cart-item__actions .cart-item__action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cart-item__qty { grid-area: qty; align-self: center; }
.cart-item__qty .qty { height: 40px; }

.cart-item__price {
    grid-area: price;
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 2px;
    text-align: right;
}

.cart-item__sum { font-size: 20px; font-weight: 500; white-space: nowrap; }
.cart-item__unit,
.cart-item__old { color: var(--accent); font-size: 12px; white-space: nowrap; }

@media (min-width: 1024px) {
    .cart-list {
        gap: 0;
        padding: 0 20px;
        border-radius: 10px;
        background: #fff;
        box-shadow: var(--shadow-card);
    }

    .cart-item {
        grid-template-columns: 120px minmax(0, 1fr) auto 150px;
        grid-template-areas:
            "img info    qty price"
            "img actions qty price";
        grid-template-rows: auto 1fr;
        gap: 10px 20px;
        padding: 20px 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .cart-item + .cart-item { border-top: 1px solid var(--line); }

    .cart-item__title { font-size: 17px; }
    .cart-item__meta:first-of-type { display: block; margin-top: 10px; }
    .cart-item__qty { padding-right: 50px; }
    .cart-item__qty .qty { height: 46px; padding-inline: 8px; }

    .cart-item__actions { flex-direction: row; align-self: start; gap: 22px; }

    .cart-item__actions .cart-item__action span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .cart-item__action .icon { width: 15px; height: 15px; }
    .cart-item__sum { font-size: 22px; }
}

/* Недоступные позиции */
.cart__subtitle { margin: 28px 0 12px; font-size: 18px; font-weight: 500; }
.cart-list--unavailable .cart-item { opacity: .7; }
.cart-item.is-removing { opacity: .4; pointer-events: none; }

/* --- Промокод ----------------------------------------------------------- */
.promo__row { display: flex; gap: 8px; }
.promo__row .input { flex: 1; min-width: 0; }
.promo__btn { min-width: 64px; }
.promo__btn-full { display: none; }

@media (min-width: 1024px) {
    .promo__btn-full { display: inline; }
    .promo__btn-short { display: none; }
}

.promo__applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--band);
    font-size: 12px;
}

.promo__applied .icon { width: 14px; height: 14px; }
.promo__applied.is-not-applied { color: var(--text-muted); }

.promo__remove {
    margin-left: 4px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

/* --- Доставка в сводке -------------------------------------------------- */
.choices--compact .choice { min-height: 62px; }
.summary__note { margin: 0; color: var(--text-muted); font-size: 13px; }

/* Узкий экран: цена способа доставки уходит под описание, чтобы длинный адрес не сжимался в столбик */
@media (max-width: 479px) {
    .choices--compact .choice { grid-template-columns: auto auto minmax(0, 1fr); }
    .choices--compact .choice__aside { grid-column: 3; justify-self: start; margin-top: -4px; text-align: left; }
}

/* --- Быстрый заказ ------------------------------------------------------ */
.quick-order { margin-top: 22px; }
.quick-order__label { display: block; margin-bottom: 10px; color: var(--accent); font-size: 12px; }
.quick-order__row { display: grid; gap: 10px; }
.quick-order__error { margin: 8px 0 0; color: var(--danger); font-size: 13px; }

@media (min-width: 1024px) {
    .quick-order__row { display: flex; gap: 8px; }
    .quick-order__row .input { flex: 1; }
    .quick-order__extra { display: none; }
}

/* --- Состояния ---------------------------------------------------------- */
.cart.is-loading [data-block="totals"],
.cart.is-loading [data-checkout-link] { opacity: .6; transition: opacity .15s; }

.cart__messages {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--band);
    color: var(--danger);
    font-size: 14px;
}
.cart__messages p { margin: 0; }
.cart__messages p + p { margin-top: 4px; }

.cart-empty { display: grid; justify-items: start; gap: 16px; }
.cart-empty__text { margin: 0; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    .cart.is-loading [data-block="totals"],
    .cart.is-loading [data-checkout-link] { transition: none; }
}
/* End */


/* Start:/local/js/project/ui/style.css?17920500278046*/
/* ==========================================================================
   project.ui — элементы форм: поле с подписью, радио-карточки, сегменты,
   тумблер, чекбокс, счётчик количества, кнопки, плашка .notice.
   Нужно корзине, оформлению, будущему кабинету.
   ========================================================================== */

/* --- Поле с подписью ---------------------------------------------------- */
.form-field { display: grid; gap: 6px; min-width: 0; }

.form-field__label { color: var(--text-muted); font-size: 12px; }

.input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    appearance: none;
}

.input::placeholder { color: #B5A3A4; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(140 96 97 / .15); }
.input:user-invalid { border-color: var(--danger); }

.form-grid { display: grid; gap: 14px; }

@media (min-width: 768px) {
    .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
    .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
}

/* --- Кнопки ------------------------------------------------------------- */
.btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.btn-block:hover { border-color: var(--accent-hover); background: var(--accent-hover); }

.btn-block--outline { border-color: var(--text); background: #fff; color: var(--text); }
.btn-block--outline:hover { border-color: var(--text); background: var(--text); color: #fff; }

.btn-block--lg { width: 100%; min-height: 52px; border-radius: 6px; font-size: 16px; }

.btn-block:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Радио-карточка (доставка, оплата) ---------------------------------- */
.choices { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }

.choice {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.choice:hover { border-color: var(--accent); }

.choice:has(.choice__input:checked) {
    border-color: var(--accent);
    background: var(--band);
}

.choice:has(.choice__input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice__input,
.check-box {
    flex: none;
    margin: 0;
    appearance: none;
    cursor: pointer;
}

.choice__input {
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.choice__input:checked { border: 5px solid var(--accent); }
.choice__input:focus-visible { outline: none; }

.choice__icon { width: 20px; height: 20px; color: var(--text); }

.choice__body { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-size: 14px; font-weight: 500; line-height: 1.25; }
.choice__sub { color: var(--accent); font-size: 12px; line-height: 1.3; }
.choice__aside { font-size: 14px; font-weight: 500; text-align: right; white-space: nowrap; }

.choice__badge {
    justify-self: start;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* --- Переключатель «физлицо / юрлицо» ----------------------------------- */
.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: var(--band);
}

.segmented__option { position: relative; }

.segmented__option input { position: absolute; opacity: 0; pointer-events: none; }

.segmented__option span {
    display: block;
    padding: 10px 22px;
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.segmented__option input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.segmented__option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Тумблер ------------------------------------------------------------ */
.switch {
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    margin: 0;
    border-radius: 11px;
    background: var(--line);
    appearance: none;
    cursor: pointer;
    transition: background-color .2s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: translate .2s;
}

.switch:checked { background: var(--accent); }
.switch:checked::after { translate: 16px 0; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Чекбокс ------------------------------------------------------------ */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: #fff;
}

.check-box:checked {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { color: inherit; }

/* --- Счётчик количества ------------------------------------------------- */
.qty {
    display: inline-flex;
    align-items: center;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.qty__btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.qty__btn:disabled { color: var(--line); cursor: default; }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }

.qty__input {
    width: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 17px;
    text-align: center;
    appearance: textfield;
}

.qty__input::-webkit-inner-spin-button,
.qty__input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

/* --- Инфо-плашка -------------------------------------------------------- */
.notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px 18px;
    border-radius: 6px;
    background: var(--band);
    font-size: 13px;
    line-height: 1.45;
}

.notice .icon { grid-row: span 2; width: 20px; height: 20px; }
.notice__title { margin: 0; font-size: 14px; font-weight: 500; }
.notice__text { margin: 0; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    .choice, .switch, .switch::after, .segmented__option span, .btn-block { transition: none; }
}

/* End */


/* Start:/local/js/project/order/style.css?17920737883820*/
/* ==========================================================================
   project.order — общее для корзины и оформления заказа (и будущей страницы заказа):
   заголовок страницы, сводка, итоги, мини-список товаров.
   Своё у страниц — в шаблонах компонентов project:order.cart и project:order.checkout.
   ========================================================================== */

/* --- Заголовок страницы ------------------------------------------------- */
.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 4px 0 18px;
}

.page-head__title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.page-head__meta { color: var(--text-muted); font-size: 13px; }

@media (min-width: 1024px) {
    .page-head { gap: 8px 16px; margin: 18px 0 28px; }
    .page-head__title { font-size: 36px; }
    .page-head__meta { font-size: 16px; }
}

/* --- Сводка заказа ------------------------------------------------------ */
.summary {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.summary__title { margin: 0 0 6px; font-size: 22px; font-weight: 500; }

.summary__block {
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.summary__block--plain { padding-bottom: 0; border-bottom: 0; }

/* legend в fieldset иначе садится на верхнюю границу и теряет отступ */
.summary__block > legend.summary__subtitle { float: left; width: 100%; }
.summary__block > legend + * { clear: both; }

.summary__subtitle {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
}

.summary__legal {
    margin: 16px 0 0;
    color: #B5A3A4;
    font-size: 11px;
    line-height: 1.4;
}

.summary__legal a { color: inherit; }

/* --- Итоги (блок /blocks/order/totals.php) ------------------------------ */
.totals { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.totals__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    color: var(--accent);
    font-size: 14px;
}

.totals__row dt { margin: 0; }
.totals__row dd { margin: 0; color: var(--text); text-align: right; }
.totals__row--minus dd { color: var(--danger); }

.total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 16px 0 18px;
}

.total__label { font-size: 17px; font-weight: 500; }
.total__value { font-size: 26px; font-weight: 700; white-space: nowrap; }

/* --- Мини-список товаров ------------------------------------------------ */
.mini-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.mini-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.mini-item__img { display: block; width: 52px; height: 52px; border-radius: 4px; object-fit: cover; }
.mini-item__title { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.3; }
.mini-item__qty { margin: 2px 0 0; color: var(--accent); font-size: 12px; }
.mini-item__sum { font-size: 14px; white-space: nowrap; }

/* --- Общие состояния ---------------------------------------------------- */
.choice.is-disabled { opacity: .5; cursor: default; }

@media (min-width: 1024px) {
    .summary { margin-top: 0; padding: 24px; }
    .summary__title { margin-bottom: 8px; }
    .total__label { font-size: 18px; }
    .total__value { font-size: 34px; }
}
/* End */
/* /local/templates/project/components/project/order.cart/.default/style.css?17920737748054 */
/* /local/js/project/ui/style.css?17920500278046 */
/* /local/js/project/order/style.css?17920737883820 */
