/**
 * Страница корзины — разметка и стили.
 * Область: .basket-page (контейнер страницы).
 */

.basket-page .basket-page-title,
.basket-page h1.basket-page-title {
    font-family: 'Molot', sans-serif;
    font-size: 42px;
    margin: 0 0 1rem 0;
}
.basket-page .basket-page-order-form {
    margin-bottom: 100px;
}

/* ——— Скрыть шапку таблицы (поиск/фильтр в списке) ——— */
.basket-page .basket-items-list-header {
    display: none !important;
}

.basket-page .bx-soa-total-mobile,
.basket-page #bx-soa-total-mobile,
.basket-page .bx-soa-basket,
.basket-page #bx-soa-basket {
    display: none !important;
}
.basket-page .basket-items-list-item-remove {
    display: none !important;
}

/* Временно скрыть блок промокода */
.basket-page .basket-coupon-section {
    display: none !important;
}

/* Временно скрыть свойство товара (SCU текст) */
.basket-page .basket-item-property.basket-item-property-scu-text,
.basket-page .basket-item-property-scu-text {
    display: none !important;
}
.basket-page .basket-item-property-scu-image {
    display: none !important;
}
.basket-page .basket-item-property-name,
.basket-page .basket-item-property-value {
    display: inline;
}
.basket-page .basket-item-property-name::after {
    content: "\00a0";
}

/* Цвет показывать текстом, а не квадратом */
.basket-page .basket-item-property-scu-color .basket-item-property-value,
.basket-page .basket-item-property-scu-image .basket-item-property-value,
.basket-page .basket-item-property [data-entity="basket-item-property-value"] {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: inherit;
    line-height: inherit;
}
.basket-page .basket-item-property-scu-color .basket-item-property-value span,
.basket-page .basket-item-property-scu-image .basket-item-property-value span {
    background: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
}
.basket-page .basket-item-property-scu-image .basket-item-property-value img {
    display: none !important;
}

/* Отключить фиксированный блок оформления (класс добавляется скриптом Битрикса) */
.basket-page .basket-checkout-container-fixed {
    position: static !important;
    top: auto !important;
    width: auto !important;
}

/* Временно скрыть basket-checkout-container (используется кастомный блок «Стоимость заказа») */
.basket-page .basket-checkout-container,
.basket-page .basket-checkout-container-fixed {
    display: none !important;
}

/* ——— Двухколоночная раскладка ——— */
/* basket-layout без сетки/ограничений. #basket-root на всю ширину экрана. */
.basket-page .basket-layout {
    width: 100%;
    max-width: none;
    margin-bottom: 30px;
}
.basket-page #basket-root {
    grid-template-columns: minmax(0, 1fr) 550px !important;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

/* Строка со списком товаров — левая колонка */
.basket-page #basket-root .row:has(#basket-items-list-wrapper) {
    display: grid;
    grid-column: 1;
    min-width: 0;
    margin: 0 !important;
}

/* Строка с блоком «Итого» / оформлением — правая колонка */
.basket-page #basket-root .row:has([data-entity="basket-total-block"]),
.basket-page #basket-root .row:has(.basket-checkout-block),
.basket-page #basket-root .row:has(.basket-total-block) {
    grid-column: 2;
    margin: 0 !important;
}

/* Если в шаблоне одна .row с двумя .col — тоже делаем сетку на этой строке */
.basket-page #basket-root .row:has(#basket-items-list-wrapper) {
    grid-template-columns: minmax(0, 1fr) 550px !important;
    gap: 2rem;
    width: 100% !important;
    margin: 0 !important;
}
.basket-page #basket-root .row:has(#basket-items-list-wrapper) > .col:first-child {
    min-width: 0;
}
.basket-page #basket-root .row:has(#basket-items-list-wrapper) > .col:last-child,
.basket-page #basket-root .row:has(#basket-items-list-wrapper) > .basket-checkout-container,
.basket-page #basket-root .row:has(#basket-items-list-wrapper) > .basket-checkout-container-fixed,
.basket-page #basket-root .row:has(#basket-items-list-wrapper) > *:last-child {
    width: 550px;
    max-width: 550px;
    min-width: 0;
}

/* Убрать отрицательные отступы Bootstrap у .row внутри корзины */
.basket-page #basket-root .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.basket-page #basket-root .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991px) {
    .basket-page #basket-root {
        grid-template-columns: 1fr !important;
    }
    .basket-page #basket-root .row:has(#basket-items-list-wrapper),
    .basket-page #basket-root .row:has([data-entity="basket-total-block"]),
    .basket-page #basket-root .row:has(.basket-checkout-block),
    .basket-page #basket-root .row:has(.basket-total-block) {
        grid-column: auto;
    }
    .basket-page #basket-root .row:has(#basket-items-list-wrapper) {
        grid-template-columns: 1fr !important;
    }
    .basket-page #basket-root .row:has(#basket-items-list-wrapper) > .col:last-child,
    .basket-page #basket-root .row:has(#basket-items-list-wrapper) > .basket-checkout-container,
    .basket-page #basket-root .row:has(#basket-items-list-wrapper) > *:last-child {
        width: 100%;
        max-width: 100%;
    }
}

/* ——— Правая колонка: без рамок и теней, 3 блока в одну строку ——— */
.basket-page #basket-root .row:has([data-entity="basket-total-block"]) > .col,
.basket-page #basket-root .row:has(.basket-checkout-block) > .col,
.basket-page #basket-root .row:has(.basket-total-block) > .col,
.basket-page .basket-checkout-block,
.basket-page [data-entity="basket-total-block"] {
    position: sticky;
    top: 1rem;
    background: transparent;
    border: none !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none !important;
}
.basket-page .basket-checkout-container > .basket-checkout-block,
.basket-page .basket-checkout-container > [data-entity="basket-total-block"],
.basket-page .basket-checkout-container > * {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 0;
}

/* Секция оформления: во всю ширину, 3 блока ровно в одну строку */
.basket-page .basket-checkout-section {
    width: 100%;
}
.basket-page .basket-checkout-section-inner {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.basket-page .basket-checkout-section-inner > .basket-checkout-block,
.basket-page .basket-checkout-section-inner > .basket-checkout-block-total,
.basket-page .basket-checkout-section-inner > .basket-checkout-block-total-price {
    border: none !important;
    box-shadow: none !important;
}
.basket-page .basket-checkout-section-inner > .basket-checkout-block-total,
.basket-page .basket-checkout-section-inner > .basket-checkout-block-total-price {
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
    text-align: left;
}
.basket-checkout-block-total-price-inner {
    padding-top:0;
}
.basket-page .basket-checkout-section-inner > .basket-checkout-block-btn {
    flex-basis: 100%;
    width: 100%;
    margin-top: 1rem;
    border: none !important;
    box-shadow: none !important;
}

.basket-page .basket-checkout-block h2,
.basket-page .basket-checkout-block h3,
.basket-page [data-entity="basket-total-block"] .basket-checkout-title,
.basket-page .basket-checkout-block-total {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin: 0 0 1rem 0;
    font-family: 'Molot', sans-serif;
}
.basket-page .basket-checkout-block-total-price,
.basket-page .basket-total-row.total,
.basket-page .basket-summary-line:last-of-type {
    font-family: 'Molot', sans-serif;
}

/* Промокод в правой колонке */
.basket-page .basket-coupon-section,
.basket-page .basket-coupon-block {
    margin-bottom: 1rem;
}
.basket-page .basket-coupon-section .form-control,
.basket-page .basket-coupon-block input {
    border-radius: 8px;
    border-color: #dee2e6;
}
.basket-page .basket-coupon-section .btn,
.basket-page .basket-coupon-block .btn {
    background: #FDE895 !important;
    color: #212529 !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

/* Строки итога */
.basket-page .basket-summary-line,
.basket-page .basket-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #212529;
}
.basket-page .basket-total-row.total,
.basket-page .basket-summary-line:last-of-type {
    font-weight: 700;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* Кнопка «Оформить заказ» — внизу, ширина 260px */
.basket-page .basket-checkout-block .btn-primary,
.basket-page .basket-checkout-block .btn-success,
.basket-page .basket-checkout-block a.btn {
    display: block;
    width: 260px;
    max-width: 100%;
    padding: 12px 20px;
    background: #7BC4C4 !important;
    border: none !important;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: 0;
}
.basket-page .basket-checkout-block .btn-primary:hover,
.basket-page .basket-checkout-block .btn-success:hover,
.basket-page .basket-checkout-block a.btn:hover {
    background: #6bb3b3 !important;
    color: #fff !important;
}

/* ——— Левая колонка: список товаров ——— */
.basket-page .basket-items-list-wrapper,
.basket-page .basket-items-list {
    border: none;
    background: transparent;
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-items-list-wrapper *,
.basket-page .basket-items-list *,
.basket-page #basket-items-list-wrapper,
.basket-page #basket-items-list-wrapper * {
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-items-list-item-container {
    display: flex;
    align-items: center;
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-items-list-item-container > * {
    align-self: center;
}
/* Ячейка с крестом удаления — в конце tr (создаётся скриптом), прижать вправо */
.basket-page .basket-item-cell-remove {
    vertical-align: middle;
    white-space: nowrap;
    text-align: right;
    margin-left: auto;
    flex-shrink: 0;
    position: absolute;
    top: 95px;
    right: -10px;
}
.basket-page .basket-item-cell-remove .basket-item-actions,
.basket-page .basket-item-cell-remove .basket-item-block-delete,
.basket-page .basket-item-cell-remove [data-entity="basket-item-delete"] {
    display: inline-block;
}

.basket-items-list-item-price {
    margin-right: 40px;
}

.basket-page .basket-item,
.basket-page .basket-items-list-item,
.basket-page tr.basket-item {
    border-top: 1px solid #e9ecef;
    vertical-align: top;
}
.basket-page .basket-item:first-child,
.basket-page .basket-items-list-item:first-child {
    border-top: none;
}

/* Фото товара */
.basket-page .basket-item-block-img,
.basket-page .basket-item-image,
.basket-page .basket-item-img,
.basket-page .basket-item-img img {
    border: 1px solid #7BC4C4 !important;
    border-radius: 10px;
    overflow: hidden;
}
.basket-page .basket-item-block-img img,
.basket-page .basket-item-image img,
.basket-page .basket-item-img img {
    display: block;
    object-fit: cover;
}

/* Название */
.basket-page .basket-item-name,
.basket-page .basket-item-block-name a {
    font-weight: 600;
    color: #212529;
    text-decoration: none;
}
.basket-page .basket-item-name:hover,
.basket-page .basket-item-block-name a:hover {
    color: #7BC4C4;
}

/* Свойства (размер, цвет) */
.basket-page .basket-item-props,
.basket-page .basket-item-block-props {
    font-size: 0.9rem;
    color: #6c757d;
}
.basket-page .basket-item-props span,
.basket-page .basket-item-block-props span {
    color: #7BC4C4;
}

/* Количество */
.basket-page .basket-item-amount .form-control,
.basket-page .basket-item-block-quantity input {
    border-radius: 6px;
    border-color: #dee2e6;
}

/* Цена */
.basket-page .basket-item-price,
.basket-page .basket-item-block-price,
.basket-page .basket-item-sum-price {
    font-weight: 600;
    color: #212529;
}

/* Удалить / в избранное */
.basket-page .basket-item-block-delay,
.basket-page .basket-item-delay,
.basket-page .basket-item-delete,
.basket-page .basket-item-block-delete,
.basket-page .basket-item-actions a {
    color: #7BC4C4 !important;
}
.basket-page .basket-item-block-delay:hover,
.basket-page .basket-item-delete:hover,
.basket-page .basket-item-actions a:hover {
    color: #5aa3a3 !important;
}

/* Кнопка «Удалить» — иконка trash вместо креста */
.basket-page .basket-item-cell-remove [data-entity="basket-item-delete"],
.basket-page .basket-item-cell-remove .basket-item-block-delete a,
.basket-page .basket-item-cell-remove .basket-item-delete {
    display: inline-block;
    width: 24px;
    height: 24px;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    background: url("/ics/trashic.png") center / contain no-repeat;
    border: none;
    color: transparent;
}
.basket-page .basket-item-cell-remove [data-entity="basket-item-delete"]::before,
.basket-page .basket-item-cell-remove [data-entity="basket-item-delete"]::after,
.basket-page .basket-item-cell-remove .basket-item-block-delete a::before,
.basket-page .basket-item-cell-remove .basket-item-block-delete a::after,
.basket-page .basket-item-cell-remove .basket-item-delete::before,
.basket-page .basket-item-cell-remove .basket-item-delete::after {
    display: none !important;
}
.basket-page .basket-item-cell-remove [data-entity="basket-item-delete"]:hover,
.basket-page .basket-item-cell-remove .basket-item-block-delete a:hover,
.basket-page .basket-item-cell-remove .basket-item-delete:hover {
    opacity: 0.8;
}

/* Заголовки компонента не дублировать отступом */
.basket-page #basket-root h2,
.basket-page #basket-root .page-title {
    margin-top: 0;
}

/* ——— Блок «Стоимость заказа» в правой колонке (скрин) ——— */
.basket-page .basket-order-summary {
    background: #fff;
    border: 1px solid #b8e0e0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.basket-page .basket-order-summary__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.basket-page .basket-order-summary__title {
    font-family: 'Molot', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.25rem 0;
    color: #000;
}
.basket-page .basket-order-summary__promo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.basket-page .basket-order-summary__promo-label {
    font-size: 0.9rem;
    color: #000;
}
.basket-page .basket-order-summary__promo-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.basket-page .basket-order-summary__promo-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #b8e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-order-summary__promo-input:focus {
    outline: none;
    border-color: #44B5B1;
}
.basket-page .basket-order-summary__promo-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #44B5B1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.basket-page .basket-order-summary__promo-btn:hover {
    background: #3a9d99;
}
.basket-page .basket-order-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #000;
}
.basket-page .basket-order-summary__row_total .basket-order-summary__label_total,
.basket-page .basket-order-summary__row_total .basket-order-summary__value_total {
    font-family: 'Molot', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
}
.basket-page .basket-order-summary__divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.25rem 0;
}
.basket-page .basket-order-summary__btn-wrap {
    display: none !important;
}
.basket-page .basket-order-summary__btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #44B5B1;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    min-width: 180px;
}
.basket-page .basket-order-summary__btn:hover {
    background: #3a9d99;
    color: #fff;
}

/* ——— Блок доставки товара (под город и адрес, внутри блока оформления) ——— */
.basket-page .basket-delivery-block {
    width: 50%;
    max-width: 50%;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
}
.basket-page .basket-custom-order-block .basket-delivery-block {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.basket-page .basket-delivery-block__inner {
    max-width: 100%;
}
.basket-page .basket-delivery-block__title {
    font-family: 'Molot', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 1.25rem 0;
    color: #333;
}
.basket-page .basket-delivery-block__options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.basket-page .basket-delivery-block__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}
.basket-page .basket-delivery-block__radio {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #44B5B1;
    cursor: pointer;
}
.basket-page .basket-delivery-block__option-text {
    flex: 1;
}
.basket-page .basket-delivery-block__cdek {
    color: #00a651;
    font-weight: 600;
}
.basket-page .basket-delivery-block__map-wrap {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-bottom: 1.25rem;
}
.basket-page .basket-delivery-block__map {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* CDEK: блок выбора пунктов выдачи (карта + список, подстановка адреса) */
.basket-page .basket-delivery-block__cdek-pvz {
    width: 100%;
}
.basket-page .basket-delivery-block__cdek-hint {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #555;
}
.basket-page .basket-delivery-block__cdek-load {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #00a651;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
}
.basket-page .basket-delivery-block__cdek-load:hover:not(:disabled) {
    background: #008c45;
}
.basket-page .basket-delivery-block__cdek-load:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.basket-page .basket-delivery-block__pvz-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}
.basket-page .basket-delivery-block__pvz-map {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}
.basket-page .basket-delivery-block__pvz-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 340px;
    overflow-y: auto;
}
.basket-page .basket-delivery-block__pvz-item {
    padding: 0.6rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}
.basket-page .basket-delivery-block__pvz-item:hover {
    border-color: #00a651;
    background: rgba(0, 166, 81, 0.06);
}
.basket-page .basket-delivery-block__pvz-item_selected {
    border-color: #00a651;
    background: rgba(0, 166, 81, 0.1);
}
.basket-page .basket-delivery-block__pvz-item-name {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}
.basket-page .basket-delivery-block__pvz-item-address {
    display: block;
    color: #666;
    font-size: 0.85rem;
}
.basket-page .basket-delivery-block__pvz-item-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #888;
}

.basket-page .basket-delivery-block__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.basket-page .basket-delivery-block__info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}
.basket-page .basket-delivery-block__info-label {
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
}
.basket-page .basket-delivery-block__info-value {
    color: #333;
}
.basket-page .basket-delivery-block__info-value a {
    color: #44B5B1;
    text-decoration: none;
}
.basket-page .basket-delivery-block__info-value a:hover {
    text-decoration: underline;
}
.basket-page .basket-delivery-block__disclaimer {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #c00;
}

/* ——— Кастомный блок оформления заказа (ФИО, адрес, комментарий) ——— */
.basket-page .basket-custom-order-block {
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.basket-page .basket-custom-order-block_hidden {
    display: none !important;
}
.basket-page .basket-custom-order-block__inner {
    max-width: 100%;
}
.basket-page .basket-custom-order-block__title {
    font-family: 'Molot', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 1.25rem 0;
    color: #333;
}
.basket-page .basket-custom-order-block__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* Две колонки 50/50: слева — ФИО и адрес, справа — комментарий */
.basket-page .basket-custom-order-block__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.basket-page .basket-custom-order-block__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* Поля ФИО по 50% ширины: два в ряд, третье под ними */
.basket-page .basket-custom-order-block__fio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}
.basket-page .basket-custom-order-block__fio .basket-custom-order-block__row {
    min-width: 0;
}
/* Телефон 50% ширины, после него — перенос (город и адрес на следующей строке) */
.basket-page .basket-custom-order-block__phone-wrap {
    width: 50%;
    min-width: 0;
}

/* Город и адрес по 50% */
.basket-page .basket-custom-order-block__city-address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}
.basket-page .basket-custom-order-block__city-address .basket-custom-order-block__row {
    min-width: 0;
}
.basket-page .basket-custom-order-block__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.basket-page .basket-custom-order-block__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-custom-order-block__input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-custom-order-block__input:focus {
    border-color: #44B5B1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(68, 181, 177, 0.2);
}
.basket-page .basket-custom-order-block__textarea {
    min-height: 60px;
    resize: vertical;
    font-family: Montserrat, sans-serif;
}
.basket-page .basket-custom-order-block__row_submit {
    margin-top: 0.5rem;
}
.basket-page .basket-custom-order-block__submit {
    width: 100%;
    height: 60px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #44B5B1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.basket-page .basket-custom-order-block__submit:hover {
    background: #3a9d99;
}
.basket-page .basket-custom-order-block__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Соглашения под кнопкой (чекбоксы и ссылки) */
.basket-page .basket-custom-order-block__agreements {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.basket-page .basket-custom-order-block__agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
}
.basket-page .basket-custom-order-block__checkbox {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    border: 1px solid #b8e0e0;
    border-radius: 3px;
    accent-color: #44B5B1;
    cursor: pointer;
}
.basket-page .basket-custom-order-block__agreement-text {
    flex: 1;
    min-width: 0;
}
.basket-page .basket-custom-order-block__agreement-text a {
    color: #44B5B1;
    text-decoration: underline;
}
.basket-page .basket-custom-order-block__agreement-text a:hover {
    color: #3a9d99;
}

/* ——— Адаптив страницы корзины ——— */
@media (max-width: 991px) {
    .basket-page .basket-delivery-block {
        width: 100%;
        max-width: 100%;
    }
    .basket-page .basket-layout {
        margin-bottom: 2rem;
    }
}
@media (max-width: 767px) {
    .basket-page .basket-page-title,
    .basket-page h1.basket-page-title {
        font-size: 28px;
    }
    /* Список товаров на телефоне: строка таблицы как вертикальная карточка */
    .basket-page .basket-items-list-table,
    .basket-page .basket-items-list-table tbody {
        display: block;
    }
    .basket-page .basket-items-list-item-container {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0;
        border-top: 1px solid #e9ecef;
    }
    .basket-page .basket-items-list-item-container:first-child {
        border-top: none;
    }
    .basket-page .basket-items-list-item-container > td {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0.4rem 0 !important;
        margin: 0 !important;
        border: none !important;
        vertical-align: top !important;
        text-align: left !important;
    }
    /* Блок цены за 1 шт: сумма сверху, подпись «цена за 1 шт» снизу */
    .basket-page .basket-items-list-item-price,
    .basket-page .basket-items-list-item-price-for-one,
    .basket-page .basket-items-list-item-amount {
        padding: 0.5rem 0 !important;
    }
    .basket-page .basket-item-block-price {
        width: 100% !important;
        float: none !important;
        margin-bottom: 0;
        text-align: left !important;
    }
    .basket-page .basket-item-price-current {
        font-size: 1.125rem;
        font-weight: 600;
        color: #212529;
        display: block;
        margin-bottom: 0.15rem;
        text-align: left !important;
    }
    .basket-page .basket-item-price-title {
        font-size: 0.8rem;
        color: #6c757d;
        font-weight: 400;
        display: block;
        text-align: left !important;
    }
    .basket-page .basket-item-block-amount {
        width: 100% !important;
        max-width: 160px;
        text-align: left !important;
    }
    .basket-page .basket-item-block-amount .form-control,
    .basket-page .basket-item-block-quantity input {
        font-size: 1rem;
        min-height: 40px;
        text-align: center;
    }
    /* Кнопка удаления в карточке товара на телефоне */
    .basket-page .basket-item-cell-remove {
        position: relative;
        top: auto;
        right: auto;
        order: 1;
        margin-left: 0;
        margin-bottom: 0.25rem;
    }
    .basket-page .basket-delivery-block {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    .basket-page .basket-delivery-block__title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .basket-page .basket-delivery-block__map-wrap {
        min-height: 480px;
        margin-bottom: 1rem;
    }
    .basket-page .basket-delivery-block__pvz-map {
        height: 520px;
    }
    .basket-page .basket-delivery-block__pvz-list {
        max-height: 280px;
    }
    .basket-page .basket-delivery-block__info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    .basket-page .basket-delivery-block__disclaimer {
        font-size: 0.85rem;
    }
    .basket-page .basket-custom-order-block {
        padding: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    .basket-page .basket-custom-order-block__title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .basket-page .basket-custom-order-block__cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .basket-page .basket-custom-order-block__fio {
        grid-template-columns: 1fr;
    }
    .basket-page .basket-custom-order-block__phone-wrap {
        width: 100%;
    }
    .basket-page .basket-custom-order-block__city-address {
        grid-template-columns: 1fr;
    }
    .basket-page .basket-custom-order-block__submit {
        height: 52px;
        font-size: 0.95rem;
    }
    .basket-page .basket-custom-order-block__agreements {
        margin-top: 1rem;
    }
    .basket-page .basket-custom-order-block__agreement {
        font-size: 0.85rem;
    }
    .basket-page .basket-order-summary,
    .basket-page #basket-root .row:has([data-entity="basket-total-block"]) > .col,
    .basket-page #basket-root .row:has(.basket-checkout-block) > .col,
    .basket-page #basket-root .row:has(.basket-total-block) > .col,
    .basket-page .basket-checkout-block,
    .basket-page [data-entity="basket-total-block"] {
        position: static;
    }
    .basket-page .basket-order-summary {
        padding: 1rem 1.25rem;
    }
    .basket-page .basket-order-summary__title {
        font-size: 0.9rem;
    }
    .basket-page .basket-order-summary__promo-row {
        flex-wrap: wrap;
    }
    .basket-page .basket-order-summary__promo-btn {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .basket-page .basket-page-title,
    .basket-page h1.basket-page-title {
        font-size: 24px;
    }
    .basket-page .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .basket-page .basket-delivery-block,
    .basket-page .basket-custom-order-block {
        padding: 0.75rem;
        border-radius: 6px;
    }
    .basket-page .basket-delivery-block__map-wrap {
        min-height: 460px;
        aspect-ratio: 4 / 3;
    }
    .basket-page .basket-custom-order-block__submit {
        height: 48px;
        font-size: 0.9rem;
    }
}
