/* Шаблон item_card: оформление строк корзины в стиле карточки (ряд: фото — инфо — кол-во/цена за шт. — сумма/удаление) */

.basket-template-item-card .basket-item-card-page-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 20px;
}

/* Как заголовок секции оформления (.bx-soa-section-title), напр. «Покупатель» */
.basket-template-item-card .basket-item-card-page-title {
    margin: 0;
    padding-right: 0;
    min-height: 20px;
    vertical-align: middle;
    font-size: 1.3333rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    color: #000;
    color: var(--white_text_black);
    flex: 1 1 auto;
    min-width: 0;
}

.basket-template-item-card .basket-clear-all-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.basket-template-item-card .basket-clear-all-btn:hover:not(:disabled),
.basket-template-item-card .basket-clear-all-btn:focus-visible:not(:disabled) {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.35);
    background: #f8fafc;
}

.basket-template-item-card .basket-clear-all-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.basket-template-item-card {
    --basket-card-bg: #ffffff;
    --basket-card-border: rgba(15, 23, 42, 0.08);
    --basket-card-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --basket-card-radius: 0;
    --basket-img-radius: 0;
    --basket-muted: #64748b;
    --basket-accent: #0f172a;
    font-family: "Open Sans", sans-serif;
    color: var(--basket-accent);
}

.basket-template-item-card .basket-items-list-wrapper {
    border: none;
    box-shadow: none;
    background: transparent;
}

.basket-template-item-card .basket-items-list-header {
    display: none;
}

/* В item_card/style.css у контейнера overflow:hidden — обрезает колонку с суммой и крестиком */
.basket-template-item-card .basket-items-list-container {
    overflow: visible !important;
}

/*
 * В style.css: .basket-items-list { padding: 0 25px; } и .basket-items-list-table { margin: 0 28px; }
 * Заголовок h2 вне .basket-items-list — строка товара оказывается правее заголовка. Убираем лишний отступ слева.
 */
.basket-template-item-card .basket-items-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Не задаём display:block для table/tbody — иначе insertAdjacentHTML(<tr>) в таблицу может не отображаться */
.basket-template-item-card .basket-items-list-table {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-collapse: collapse;
}

/* Оверлей позиционировался под старые margin таблицы ±28px */
.basket-template-item-card .basket-items-list-item-overlay {
    left: 0 !important;
    right: 0 !important;
}

.basket-template-item-card tr.basket-items-list-item-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 28px;
    padding: 22px 20px;
    margin-bottom: 14px;
    border: 1px solid var(--basket-card-border);
    border-radius: var(--basket-card-radius);
    background: var(--basket-card-bg);
    box-shadow: var(--basket-card-shadow);
}

.basket-template-item-card tr.basket-items-list-item-wrapper > td {
    display: block;
    border: none;
    padding: 0;
    vertical-align: middle;
}

.basket-template-item-card .basket-items-list-item-picture {
    flex: 0 0 auto;
    width: auto;
}

.basket-template-item-card .basket-item-block-image {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    height: 204px;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    flex: 0 0 auto !important;
    display: block;
    line-height: 0;
    border-radius: var(--basket-img-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

/* inline-block у .basket-item-image-link даёт белую полосу под img (baseline) */
.basket-template-item-card .basket-item-image-link {
    display: block;
    line-height: 0;
    width: 136px;
    height: 204px;
    overflow: hidden;
}

.basket-template-item-card .basket-item-image {
    width: 136px !important;
    height: 204px !important;
    object-fit: cover;
    border: none;
    vertical-align: top;
    display: block;
}

.basket-template-item-card .basket-items-list-item-descriptions-inner {
    flex: 1 1 200px;
    min-width: 0;
}

.basket-template-item-card .basket-item-info-name {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 12px;
    font-weight: 500;
}

.basket-template-item-card .basket-item-info-name-link {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.basket-template-item-card .basket-item-info-name-link:hover,
.basket-template-item-card .basket-item-info-name-link:focus {
    color: var(--basket-accent);
}

.basket-template-item-card .basket-item-property-scu-text .basket-item-property-name {
    color: var(--basket-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.basket-template-item-card .basket-item-scu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none !important;
}

/* Тема/страницы часто вешают li:before — убираем «черточки» между кнопками размеров */
.basket-template-item-card .basket-item-scu-list > li::before,
.basket-template-item-card .basket-item-scu-list > li::after,
.basket-template-item-card .basket-item-scu-list > li:before,
.basket-template-item-card .basket-item-scu-list > li:after {
    content: none !important;
    display: none !important;
}

.basket-template-item-card .basket-item-scu-item {
    margin: 0 !important;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0;
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    vertical-align: top;
    list-style: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.basket-template-item-card .basket-item-scu-item:not(.selected):not(.not-available):hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.basket-template-item-card .basket-item-scu-item.selected {
    background: var(--basket-accent);
    border-color: var(--basket-accent);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.basket-template-item-card .basket-item-scu-item .basket-item-scu-item-inner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    font-size: 14px;
    line-height: 1 !important;
    font-weight: 600;
    color: #000;
    background: transparent !important;
    background-image: none !important;
    text-align: center;
}

.basket-template-item-card .basket-item-scu-item.selected .basket-item-scu-item-inner {
    color: #fff;
}

/* Перебиваем #basket-root … line-height:24px из item_card/style.css — из‑за него буквы «прилипали» к низу */
.basket-template-item-card.basket-template-item-card .basket-item-property-scu-text .basket-item-scu-item .basket-item-scu-item-inner {
    line-height: 1 !important;
}

.basket-template-item-card .basket-items-list-item-amount-outer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: center;
}

.basket-template-item-card .basket-item-amount {
    display: inline-flex;
    align-items: stretch;
    justify-content: space-between;
    min-width: 128px;
    max-width: none;
    margin-bottom: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    height: auto;
    border-radius: 0;
    overflow: hidden;
}

/*
 * В style.css у .basket-item-btn-minus/:plus position:absolute, у span — static, тогда :after/:before
 * цепляются к .basket-item-amount (position:relative) и рисуются по центру всего блока — «линии» через цифру.
 * Задаём кнопкам position:relative, чтобы псевдоэлементы были внутри ячейки +/-.
 */
.basket-template-item-card .basket-item-btn-minus,
.basket-template-item-card .basket-item-btn-plus {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.basket-template-item-card .basket-item-btn-minus:hover,
.basket-template-item-card .basket-item-btn-plus:hover {
    background: #fff;
}

.basket-template-item-card .basket-item-amount-filed-block {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-template-item-card .basket-item-amount-filed {
    border: none;
    border-radius: 0 !important;
    text-align: center;
    font-size: 15px;
    padding: 0 !important;
    margin: 0;
    height: 40px;
    line-height: 40px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    direction: ltr;
}

/* Цена «за шт.» под счётчиком количества — не показываем (остаётся итог в колонке суммы) */
.basket-template-item-card .basket-items-list-item-amount-outer .basket-items-list-item-price-for-one {
    display: none !important;
}

.basket-template-item-card .basket-items-list-item-price-for-one {
    margin: 0;
    text-align: center;
}

.basket-template-item-card .basket-items-list-item-price-for-one .basket-item-price-current-text,
.basket-template-item-card .basket-items-list-item-price-for-one .basket-item-price-current {
    color: var(--basket-muted);
    font-size: 13px;
}

.basket-template-item-card .basket-items-list-item-price-for-one .basket-item-price-current-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 4px;
}

/* В style.css у .basket-items-list-item-removes стоит position:absolute; right:-11px — крестик уезжает и обрезается */
.basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 auto !important;
    align-self: center;
    position: relative;
    overflow: visible !important;
    min-width: 140px;
    max-width: none;
    padding-left: 16px !important;
    padding-right: 4px !important;
    box-sizing: border-box;
    vertical-align: middle !important;
}

.basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-item-price {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    text-align: right;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.basket-template-item-card .basket-items-list-item-removes {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    flex: 0 0 auto;
    flex-shrink: 0;
    order: 2;
    margin: 0;
    padding: 0;
}

.basket-template-item-card .basket-item-block-actions {
    position: relative;
    top: auto;
    right: auto;
}

.basket-template-item-card .basket-item-price-current-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--basket-accent);
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.basket-template-item-card .basket-item-price-old {
    margin: 0;
}

.basket-template-item-card .basket-item-price-old-text {
    color: #94a3b8;
}

.basket-template-item-card .basket-item-price-difference {
    margin-top: 6px;
    padding: 8px 12px;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 0;
    color: #854d0e;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

/*
 * Подсказка «экономия»: перебиваем bitrix/templates/aspro_max/css/basket.css
 * (тот же селектор #basket-root …, но грузится после component custom.css).
 */
#basket-root .basket-item-block-price .basket-item-price-difference,
#basket-root .basket-item-price-difference,
#basket-root .basket-checkout-block-total-price-inner .basket-coupon-block-total-price-difference {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

/* Только крестик в колонке суммы; в .basket-item-block-info — дубликат для мобилы (скрыт на десктопе в theme) */
.basket-template-item-card .basket-items-list-item-removes .basket-item-actions-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.basket-template-item-card .basket-items-list-item-removes .basket-item-actions-remove:hover {
    color: #475569;
    background: rgba(15, 23, 42, 0.06);
}

/* Не переопределять display:none у mobile-удаления внутри описания */
.basket-template-item-card .basket-item-block-info > .basket-item-actions-remove {
    display: none !important;
}

.basket-template-item-card .stickers-basket {
    margin-bottom: 10px;
}

.basket-template-item-card .stickers-basket--item.sticker_percent {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.basket-template-item-card .stickers-basket .stickers-basket--item,
.basket-template-item-card .stickers-basket .rounded2 {
    border-radius: 0 !important;
}

/* Только промокод: сумма скрыта визуально, но data-entity="basket-total-price" остаётся для JS */
.basket-template-item-card .basket-total-price-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.basket-template-item-card .basket-checkout-section--coupon-only .basket-checkout-section-left {
    position: relative;
}

.basket-template-item-card .basket-checkout-section--coupon-only .basket-checkout-section-inner {
    justify-content: flex-start;
}

/* Блок «Итого» под списком товаров (TOTAL_BLOCK_DISPLAY = bottom) */
.basket-template-item-card .basket-items-list.basket-items-list--total-below {
    flex-direction: column;
    align-items: stretch;
}

.basket-template-item-card .basket-items-list.basket-items-list--total-below .basket-items-list-outer {
    width: 100%;
    max-width: 100%;
}

.basket-template-item-card .basket-total-block--below-list {
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    margin-top: 24px;
}

.basket-template-item-card .basket-total-block--below-list.basket-total-block {
    padding-left: 0 !important;
    position: static;
}

.basket-template-item-card .basket-total-block--below-list .basket-checkout-container {
    position: relative !important;
    top: auto !important;
}

.basket-template-item-card .basket-total-block--below-list .basket-checkout-section-inner {
    max-width: 100%;
    justify-content: flex-start;
}

.basket-template-item-card .basket-checkout-section-right--no-checkout {
    display: none !important;
}

.basket-template-item-card .basket-coupon-input-apply {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.basket-template-item-card .basket-coupon-input-apply .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    box-sizing: border-box;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.2;
    vertical-align: middle;
}

.basket-template-item-card .basket-coupon-apply-btn.btn {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    text-transform: none;
    vertical-align: middle;
    align-self: center;
}

.basket-template-item-card .basket-coupon-apply-btn.btn.basket-coupon-apply-btn--icon {
    padding: 0 6px;
    min-width: 30px;
}

.basket-template-item-card .basket-coupon-apply-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.basket-template-item-card .basket-coupon-apply-btn__svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* Промокод отключён (HIDE_COUPON), режим только купон — скрываем визуально, узел basket-total-price остаётся для JS */
.basket-template-item-card .basket-checkout-container--hidden-for-js {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.basket-template-item-card .basket-total-block:has(.basket-checkout-container--hidden-for-js) {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: none !important;
}

@media (max-width: 991px) {
    .basket-template-item-card .basket-item-card-page-title-row {
        margin-bottom: 12px;
    }

    .basket-template-item-card .basket-item-card-page-title {
        font-size: 1.3333rem;
    }

    .basket-template-item-card .basket-clear-all-btn {
        width: 100%;
        text-align: center;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper {
        gap: 20px;
        padding: 18px 14px;
    }

    .basket-template-item-card .basket-total-block--below-list {
        margin-top: 20px;
    }
}

/*
 * Мобильная карточка (≤768px): колонка
 * 1) фото на всю ширину → 2) название → 3) размер (SKU) → 4) кол-во на всю ширину (+ цена за шт.)
 * → 5) итог → 6) удалить внизу
 */
@media (max-width: 768px) {
    .basket-template-item-card tr.basket-items-list-item-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-picture {
        order: 1;
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-descriptions-inner {
        order: 2;
        width: 100%;
        flex: 0 0 auto;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-amount-outer {
        order: 3;
        width: 100%;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        align-self: stretch;
        padding-top: 0;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price {
        order: 4;
        width: 100%;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 0;
        min-width: 0 !important;
    }

    /* Фото на всю ширину карточки */
    .basket-template-item-card .basket-item-block-image {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto;
        min-height: 0;
    }

    .basket-template-item-card .basket-item-image-link {
        display: block;
        width: 100%;
        height: auto;
        max-height: min(70vh, 700px);
    }

    .basket-template-item-card .basket-item-image {
        width: 100% !important;
        height: auto !important;
        max-height: min(70vh, 700px);
        object-fit: cover;
        vertical-align: top;
    }

    .basket-template-item-card .basket-items-list-item-amount-outer .basket-item-amount {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .basket-template-item-card .basket-items-list-item-price-for-one {
        width: 100%;
        text-align: center;
    }

    /* Итоговая сумма сверху блока цены, кнопка удаления снизу */
    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-item-price {
        order: 1;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-item-price-current,
    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-item-price-current-value {
        text-align: center;
        width: 100%;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes {
        order: 2;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #e2e8f0;
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        flex: 0 0 auto !important;
        box-sizing: border-box;
    }

    /* Обёртка из шаблона — иначе flex сжимает блок до ширины крестика */
    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-block-actions {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: block;
    }

    /* Вместо крестика (before/after в item_card/style.css) — полноширинная кнопка «Удалить» */
    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-actions-remove {
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        max-width: none !important;
        min-height: 44px;
        height: auto !important;
        padding: 12px 16px;
        box-sizing: border-box;
        border: 1px solid #e2e8f0;
        border-radius: 0;
        font-size: 14px;
        line-height: 1.45;
        font-weight: 500;
        color: #64748b;
        background: #fff;
        cursor: pointer;
        transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-actions-remove:before {
        display: none !important;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-actions-remove:after {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        font-family: inherit !important;
        color: inherit !important;
        content: "Удалить" !important;
        transition: color 0.2s ease;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-actions-remove:hover {
        border-color: #94a3b8;
        color: #0f172a;
        background: #f8fafc;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-actions-remove:hover:before {
        display: none !important;
    }

    .basket-template-item-card tr.basket-items-list-item-wrapper > td.basket-items-list-item-price .basket-items-list-item-removes .basket-item-actions-remove:hover:after {
        background: none !important;
        background-color: transparent !important;
        color: inherit !important;
    }

    /* Дубликат крестика в шапке скрываем — удаление только снизу */
    .basket-template-item-card .basket-item-block-info {
        position: relative;
        padding-right: 0;
    }

    .basket-template-item-card .basket-item-block-info > .basket-item-actions-remove {
        display: none !important;
    }

    .basket-template-item-card .basket-item-info-name {
        font-size: 14px;
    }

    .basket-template-item-card .basket-item-price-current-value {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .basket-template-item-card tr.basket-items-list-item-wrapper {
        padding: 14px 12px;
        gap: 16px;
    }
}

@media (max-width: 400px) {
    .basket-template-item-card .basket-item-btn-minus,
    .basket-template-item-card .basket-item-btn-plus {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }

    .basket-template-item-card .basket-item-amount-filed {
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }
}
