#basket-root [hidden] {
    display: none !important;
}

/* Не показываем карточки другого режима до завершения JS-инициализации. */
#basket-root[data-basket-view="active"] [data-delayed="Y"],
#basket-root[data-basket-view="delayed"] [data-delayed="N"] {
    display: none !important;
}

.basket-view-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.basket-view-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #dce2e5;
    border-radius: 8px;
    text-decoration: none;
}

.basket-view-nav a.is-active {
    border-color: currentColor;
    font-weight: 600;
}

.basket-view-nav a span {
    min-width: 20px;
    text-align: center;
}

.basket-action-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.basket-delay-button {
    text-decoration: underline;
}

.basket-item-transfer {
    margin-top: 12px;
}

.basket-property {
    margin-top: 6px;
    color: #6f7478;
    font-size: 14px;
}

.basket-item-warning {
    margin-top: 8px;
    color: #b73c35;
    font-size: 14px;
}

.basket-coupons {
    margin: 20px 0;
}

.basket-coupons label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basket-coupons input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dce2e5;
    border-radius: 6px;
}

.basket-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.basket-coupon.danger {
    color: #b73c35;
}

.basket-coupon.muted {
    color: #398347;
}

#basket-root.basket-is-loading #basket-view-content {
    opacity: 0.65;
    pointer-events: none;
}

#basket-root button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

#basket-root .card-cart-product__counter-btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

#basket-root.basket-delayed-view .s-order__main {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
}

#basket-root .bx-sbb-empty-cart-container {
    padding: 40px 0;
    text-align: center;
}

#basket-root .bx-sbb-empty-cart-desc {
    margin-top: 16px;
}

#basket-root.basket-delayed-view .s-order__wrap {
    grid-template-columns: minmax(0, 1fr);
}

.card-cart-product__counter-btn[data-entity="basket-item-quantity-minus"]::after {
    display: none;
}