/* Kuboris basket — aligned with checkout + personal cabinet tokens */
.basket-page,
#basket-root,
.bx-sbb-empty-cart-container {
    --bk-accent: #1565c0;
    --bk-accent-light: #e3f2fd;
    --bk-accent-hover: #0d47a1;
    --bk-bg: #f4f7fb;
    --bk-surface: #ffffff;
    --bk-border: #dde4ee;
    --bk-text: #0f172a;
    --bk-muted: #64748b;
    --bk-radius: 16px;
    --bk-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --bk-gap: 18px;
    --bk-ok: #2e7d32;
    --bk-ok-bg: #e8f5e9;
    --bk-danger: #b91c1c;
    --bk-danger-bg: #fef2f2;
}

body:has(.basket-page),
body:has(#basket-root),
body:has(.bx-sbb-empty-cart-container) {
    background: var(--bk-bg, #f4f7fb);
}

body:has(.basket-page) .middle > .container,
body:has(.basket-page) .maxwidth-theme,
body:has(#basket-root) .middle > .container,
body:has(#basket-root) .maxwidth-theme {
    max-width: 1320px;
}

/* ——— Hide Aspro H1 duplicate; keep breadcrumbs ——— */
body:has(.basket-page) section.page-top h1 {
    display: none !important;
}

body:has(.basket-page) section.page-top {
    margin-bottom: 8px;
    padding-bottom: 0;
}

body:has(.basket-page) section.page-top .breadcrumb {
    margin-bottom: 0;
}

body:has(.basket-page) .basket-back {
    display: none;
}

/* ——— Page header & stepper (same language as checkout) ——— */
.basket-page {
    margin-bottom: 20px;
}

.basket-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 4px 2px 0;
}

.basket-page__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--bk-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.basket-page__lead {
    margin: 0;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bk-muted);
}

.basket-stepper__track {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.basket-stepper__step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bk-muted);
    white-space: nowrap;
}

.basket-stepper__step:not(:last-child)::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin: 0 12px;
    border-radius: 1px;
    background: #cbd5e1;
}

.basket-stepper__step--done {
    color: #334155;
}

.basket-stepper__step--done .basket-stepper__dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.basket-stepper__step--current {
    color: var(--bk-accent);
}

.basket-stepper__step--current .basket-stepper__dot {
    background: var(--bk-accent);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.18);
}

.basket-stepper__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

/* ——— Layout: list + sticky aside ——— */
#basket-root {
    margin-bottom: 28px;
}

#basket-root .basket-items-list.flexbox {
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#basket-root .basket-items-list-outer {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: 100%;
    overflow: hidden;
}

#basket-root .basket-total-outer {
    width: 300px;
    flex: 0 0 300px;
    max-width: 34%;
}

#basket-root .basket-total-block {
    padding-left: var(--bk-gap);
    position: sticky;
    top: 84px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    #basket-root .basket-total-outer {
        width: 100%;
        flex: 1 1 100%;
    }

    #basket-root .basket-total-block {
        padding-left: 0;
        margin-top: var(--bk-gap);
        position: static;
    }
}

/* ——— Items card ——— */
#basket-root .basket-items-list-wrapper,
#basket-root .basket-items-list-wrapper-light {
    border: 1px solid var(--bk-border) !important;
    border-radius: var(--bk-radius) !important;
    background: var(--bk-surface) !important;
    box-shadow: var(--bk-shadow);
    overflow: hidden;
}

#basket-root .basket-items-list-container,
#basket-root #basket-item-list.basket-items-list,
#basket-root .basket-items-list-container .basket-items-list {
    overflow: visible !important;
}

#basket-root .basket-items-list-wrapper-height-fixed {
    max-height: none !important;
}

#basket-root .basket-items-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px !important;
    background: linear-gradient(180deg, #fafbfd 0%, #f3f6fa 100%) !important;
    border-bottom: 1px solid var(--bk-border) !important;
    min-height: 0 !important;
}

#basket-root .basket-items-list-header-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
}

/* Never force display — Bitrix hides empty tabs via style="display:none" */
#basket-root .basket-items-list-header-filter-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid var(--bk-border) !important;
    background: var(--bk-surface) !important;
    color: var(--bk-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#basket-root .basket-items-list-header-filter-item[style*="display: none"],
#basket-root .basket-items-list-header-filter-item[style*="display:none"],
#basket-root .basket-items-list-header-filter-item:empty {
    display: none !important;
}

#basket-root .basket-items-list-header-filter-item:before,
#basket-root .basket-items-list-header-filter-item.active:before {
    display: none !important;
}

#basket-root .basket-items-list-header-filter-item:hover,
#basket-root .basket-items-list-header-filter-item.active {
    background: var(--bk-accent-light) !important;
    border-color: #90caf9 !important;
    color: var(--bk-accent) !important;
}

#basket-root .top_control.basket_action,
#basket-root .top_control.basket_sort {
    margin-left: auto;
    flex-shrink: 0;
}

#basket-root .top_control .delete_all,
#basket-root .top_control .remove_all_basket {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--bk-muted) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

#basket-root .top_control .delete_all:hover,
#basket-root .top_control .remove_all_basket:hover {
    color: var(--bk-danger) !important;
    background: var(--bk-danger-bg);
}

#basket-root .basket-clear,
#basket-root [data-entity="basket-clear"],
#basket-root .basket-items-list-header .basket-clear {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    padding: 8px 12px 8px 34px !important;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--bk-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

#basket-root .basket-clear:hover,
#basket-root [data-entity="basket-clear"]:hover {
    color: var(--bk-danger);
    background: var(--bk-danger-bg);
    border-color: #fecaca;
}

#basket-root .basket-clear:after,
#basket-root .basket-clear:before {
    left: 14px !important;
    background: currentColor !important;
    height: 12px !important;
    width: 2px !important;
}

#basket-root .basket-items-list-container {
    background: var(--bk-surface);
}

#basket-root #basket-item-list.basket-items-list,
#basket-root .basket-items-list-container .basket-items-list {
    padding: 0 !important;
}

#basket-root .basket-items-list-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    table-layout: fixed !important;
}

#basket-root .basket-items-list-item-wrapper > td,
#basket-root tr.basket-items-list-item-wrapper > td {
    border-color: #eef2f6 !important;
    padding: 18px 16px !important;
    vertical-align: middle !important;
    background: transparent !important;
}

#basket-root .basket-items-list-item-wrapper > td.basket-items-list-item-price,
#basket-root tr.basket-items-list-item-wrapper > td.basket-items-list-item-price {
    padding: 18px 32px 18px 12px !important;
}

#basket-root .basket-items-list-item-wrapper:first-child > td {
    border-top: none !important;
}

#basket-root .basket-items-list-item-wrapper:hover > td {
    background: #fafbfd !important;
}

/* ——— Product image ——— */
#basket-root .basket-item-block-image {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    border: 1px solid var(--bk-border);
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

#basket-root .basket-item-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#basket-root .basket-item-block-image .fast_view {
    display: none !important;
}

#basket-root .basket-items-list-item-picture {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 104px !important;
    padding-left: 20px !important;
    padding-right: 8px !important;
}

#basket-root .basket-items-list-item-descriptions-inner {
    min-width: 0 !important;
    width: auto !important;
}

/* ——— Product info ——— */
#basket-root .basket-item-info-name,
#basket-root .basket-item-info-name-link,
#basket-root [data-entity="basket-item-name"] {
    margin: 0;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--bk-text) !important;
    text-decoration: none !important;
}

#basket-root .basket-item-info-name-link:hover,
#basket-root .basket-item-info-name-link:hover [data-entity="basket-item-name"] {
    color: var(--bk-accent) !important;
}

#basket-root .basket-item-property,
#basket-root .basket-item-property-custom {
    margin-top: 6px;
    font-size: 13px;
    color: var(--bk-muted);
}

#basket-root .basket-item-actions-remove {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    opacity: 0.7;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#basket-root .basket-item-actions-remove:hover {
    opacity: 1;
    background: var(--bk-danger-bg);
}

#basket-root .basket-item-actions-remove:after,
#basket-root .basket-item-actions-remove:before {
    background: var(--bk-muted);
    height: 12px;
}

#basket-root .basket-item-actions-remove:hover:after,
#basket-root .basket-item-actions-remove:hover:before {
    background: var(--bk-danger);
}

#basket-root .basket-items-list-item-warning-container .alert {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--lk-warn-border, #fde68a);
    background: #fffbeb;
    color: #b45309;
    font-size: 13px;
    text-align: left !important;
}

/* ——— Quantity: break Aspro absolute ± overlay ——— */
#basket-root .basket-item-amount,
#basket-root .basket-items-list-item-amount-outer .basket-item-amount {
    position: relative !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    box-sizing: border-box;
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    height: 40px !important;
    margin: 0 auto 8px !important;
    padding: 0 !important;
    border: 1px solid var(--bk-border) !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    overflow: hidden;
}

#basket-root .basket-item-btn-minus,
#basket-root .basket-item-btn-plus {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    opacity: 0.8;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#basket-root .basket-item-btn-minus:hover,
#basket-root .basket-item-btn-plus:hover {
    background: var(--bk-accent-light) !important;
    opacity: 1;
}

#basket-root .basket-item-btn-plus:before,
#basket-root .basket-item-btn-plus:after,
#basket-root .basket-item-btn-minus:after {
    background-color: var(--bk-muted) !important;
}

#basket-root .basket-item-amount-filed-block {
    position: relative !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: 1px solid var(--bk-border);
    border-right: 1px solid var(--bk-border);
}

#basket-root .basket-item-amount-filed,
#basket-root .basket-items-list-item-amount-outer .basket-item-amount-filed,
#basket-root .basket-item-block-amount.disabled .basket-item-amount-filed:hover {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: var(--bk-text) !important;
    font: 700 14px/40px inherit !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

#basket-root .basket-item-amount-filed::-webkit-outer-spin-button,
#basket-root .basket-item-amount-filed::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

/* Hide unit price under qty — one price: line total on the right */
#basket-root .basket-items-list-item-amount-outer .basket-items-list-item-price-for-one,
#basket-root .basket-items-list-item-price-for-one {
    display: none !important;
}

#basket-root .basket-item-amount,
#basket-root .basket-items-list-item-amount-outer .basket-item-amount {
    margin-bottom: 0 !important;
}

/* Line total — keep inside card with clear label + ₽ */
#basket-root .basket-items-list-item-amount-outer {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 140px !important;
    vertical-align: middle !important;
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

#basket-root .basket-items-list-item-wrapper > td.basket-items-list-item-price,
#basket-root tr.basket-items-list-item-wrapper > td.basket-items-list-item-price,
#basket-root .basket-items-list-item-price {
    width: 148px !important;
    min-width: 140px !important;
    max-width: 168px !important;
    padding: 18px 32px 18px 8px !important;
    vertical-align: middle !important;
    text-align: right !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

#basket-root .basket-items-list-item-price > .basket-item-price,
#basket-root .basket-item-price--sum {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

#basket-root .basket-item-price-label {
    margin: 0;
    color: var(--bk-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

#basket-root .basket-item-price-current {
    display: block !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    overflow: visible !important;
}

#basket-root .basket-items-list-item-price .basket-item-price-current-value {
    display: inline-block !important;
    color: var(--bk-text) !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Show real ₽ instead of broken Bitrix ruble font glyph */
#basket-root .symbol_ruble,
#basket-root .bx-price {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
}

#basket-root .basket-item-price-old-text {
    color: var(--bk-muted) !important;
    font-size: 13px !important;
}

#basket-root .basket-item-price-difference {
    margin-top: 2px;
    padding: 3px 6px;
    color: var(--bk-ok) !important;
    background: var(--bk-ok-bg) !important;
    border-radius: 8px;
    font-size: 11px !important;
    font-weight: 700;
}

/* Remove duplicate X in price column — delete stays near the title */
#basket-root .basket-items-list-item-price .basket-items-list-item-removes {
    display: none !important;
}

/* ——— Summary sidebar (like checkout-summary-card) ——— */
#basket-root .basket-checkout-container {
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--bk-border) !important;
    border-radius: var(--bk-radius) !important;
    background: var(--bk-surface) !important;
    box-shadow: var(--bk-shadow) !important;
    overflow: hidden;
    position: static !important;
}

#basket-root .basket-checkout-section {
    margin: 0;
    padding: 0;
}

#basket-root .basket-checkout-section-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 !important;
}

#basket-root .basket-checkout-section-left,
#basket-root .basket-checkout-section-right {
    display: block;
    width: 100%;
    padding: 0;
}

#basket-root .basket-checkout-section-left {
    padding: 20px 20px 16px;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
    border-bottom: 1px solid var(--bk-border);
}

#basket-root .basket-checkout-section-right {
    padding: 16px 20px 20px;
}

#basket-root .basket-checkout-block-total-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

#basket-root .basket-checkout-total-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--bk-text);
}

#basket-root .basket-coupon-block-total-price-current,
#basket-root [data-entity="basket-total-price"] {
    margin: 0;
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: var(--bk-text) !important;
    line-height: 1.15;
}

#basket-root .basket-checkout-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #eef2f6;
    color: var(--bk-muted);
    font-size: 13px;
}

#basket-root .basket-checkout-info__value {
    color: var(--bk-text);
    font-weight: 600;
}

#basket-root .basket-coupon-total-price-difference .basket-checkout-info__value {
    color: var(--bk-ok);
}

/* Coupon */
#basket-root .basket-coupon-section {
    margin: 16px 0 0 !important;
}

#basket-root .basket-coupon-block-field {
    padding: 0 !important;
    min-width: 0 !important;
}

#basket-root .basket-coupon-block-field .form-group {
    margin: 0 !important;
}

#basket-root .basket-coupon-block-field .form-control {
    height: 46px !important;
    padding: 0 44px 0 14px !important;
    border: 1px solid var(--bk-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--bk-text) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#basket-root .basket-coupon-block-field .form-control:focus {
    border-color: var(--bk-accent) !important;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15) !important;
}

#basket-root .basket-coupon-block-coupon-btn {
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border: none !important;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--bk-accent) 0%, #1976d2 100%) !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#basket-root .basket-coupon-block-coupon-btn .svg,
#basket-root .basket-coupon-block-coupon-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

#basket-root .basket-coupon-block-coupon-btn use,
#basket-root .basket-coupon-block-coupon-btn path {
    fill: #fff !important;
}

#basket-root .basket-coupon-alert-section {
    margin-top: 10px;
}

#basket-root .basket-coupon-alert.text-success {
    color: var(--bk-ok) !important;
}

#basket-root .basket-coupon-alert.text-danger {
    color: var(--bk-danger) !important;
}

/* CTA buttons — same as checkout */
#basket-root .basket-checkout-block.basket-checkout-btn {
    margin: 0 0 10px;
}

#basket-root .basket-checkout-block.basket-checkout-btn:last-child {
    margin-bottom: 0;
}

#basket-root .basket-btn-checkout,
#basket-root .basket-checkout-section .btn-default.basket-btn-checkout {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 20px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--bk-accent) 0%, #1976d2 100%) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 24px rgba(21, 101, 192, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#basket-root .basket-btn-checkout:hover,
#basket-root .basket-checkout-section .btn-default.basket-btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(21, 101, 192, 0.38);
    color: #fff !important;
}

#basket-root .basket-btn-checkout.disabled,
#basket-root .basket-btn-checkout:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#basket-root .basket-checkout-section .oneclickbuy.btn,
#basket-root .basket-checkout-btn.ocb .oneclickbuy {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 1px solid var(--bk-border) !important;
    border-radius: 12px !important;
    background: var(--bk-surface) !important;
    color: var(--bk-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

#basket-root .basket-checkout-section .oneclickbuy.btn:hover {
    border-color: #90caf9 !important;
    background: var(--bk-accent-light) !important;
    color: var(--bk-accent) !important;
}

/* ——— Empty cart ——— */
.bx-sbb-empty-cart-container {
    margin: 8px 0 40px;
    padding: 48px 28px;
    text-align: center;
    background: var(--bk-surface);
    border: 1px solid var(--bk-border);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
}

.bx-sbb-empty-cart-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--bk-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bx-sbb-empty-cart-image::before {
    content: "";
    width: 42px;
    height: 36px;
    border: 3px solid var(--bk-accent);
    border-radius: 6px 6px 10px 10px;
    box-sizing: border-box;
    position: relative;
}

.bx-sbb-empty-cart-image::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid var(--bk-accent);
    border-left: none;
    border-bottom: none;
    border-radius: 3px;
    top: 28px;
    transform: rotate(45deg);
}

.bx-sbb-empty-cart-image img {
    display: none;
}

.bx-sbb-empty-cart-text {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bk-text);
}

.bx-sbb-empty-cart-desc {
    margin: 0 auto 20px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bk-muted);
    text-align: center;
}

.bx-sbb-empty-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bk-accent) 0%, #1976d2 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(21, 101, 192, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bx-sbb-empty-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(21, 101, 192, 0.36);
    color: #fff !important;
}

/* ——— Recommendations under basket ——— */
body:has(.basket-page) .catalog_block_template,
body:has(#basket-root) .wraps.goods-block,
body:has(.basket-page) .bigdata_recommended_products_items,
body:has(#basket-root) .recommended_products_items_wrap,
body:has(.basket-page) .title_block {
    margin-top: 8px;
}

body:has(.basket-page) .title_block,
body:has(#basket-root) + * .title_block {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: var(--bk-text, #0f172a) !important;
}

/* ——— Mobile ——— */
@media (max-width: 767px) {
    .basket-page__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .basket-stepper__track {
        flex-wrap: wrap;
        gap: 8px 0;
    }

    .basket-stepper__step:not(:last-child)::after {
        width: 16px;
        margin: 0 8px;
    }

    #basket-root .basket-items-list-item-picture {
        width: 76px;
        padding-left: 12px !important;
    }

    #basket-root .basket-item-block-image {
        width: 64px;
        height: 64px;
    }

    #basket-root .basket-items-list-item-wrapper > td,
    #basket-root tr.basket-items-list-item-wrapper > td {
        padding: 14px 10px !important;
    }

    #basket-root .basket-items-list-header {
        flex-wrap: wrap;
        padding: 12px 14px !important;
    }

    #basket-root .basket-checkout-section-left,
    #basket-root .basket-checkout-section-right {
        padding-left: 16px;
        padding-right: 16px;
    }

    #basket-root .basket-coupon-block-total-price-current,
    #basket-root [data-entity="basket-total-price"] {
        font-size: 22px !important;
    }
}

@media (max-width: 599px) {
    #basket-root .basket-items-list-item-amount-outer,
    #basket-root .basket-items-list-item-price {
        width: auto !important;
        min-width: 0 !important;
    }

    #basket-root .basket-item-amount,
    #basket-root .basket-items-list-item-amount-outer .basket-item-amount {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
