.basket-header-hover {
    max-width: calc(100vw - 30px);
}

.cart-discount-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.cart-discount-row + .cart-discount-row {
    border-top: 1px solid #f1dbe3;
}

.cart-discount-label {
    flex: 1;
    min-width: 0;
}

.cart-discount-kind,
.cart-discount-name {
    display: block;
}

.cart-discount-kind {
    margin-bottom: 4px;
    color: #6b6266;
    font-size: 12px;
}

.cart-discount-name {
    color: #181818;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cart-discount-amount {
    flex-shrink: 0;
    color: #e01b59;
    font-size: 18px;
    white-space: nowrap;
}

.cart-discount-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #181818;
}

.cart-discount-remove:hover,
.cart-discount-remove:focus {
    color: #e01b59;
    text-decoration: none;
}

.cart-item-wrap table .cart-discount-item {
    background: #fff7fa;
}

.cart-item-wrap table .cart-discount-item > td {
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom-color: #f1dbe3;
}

.cart-item-wrap table .cart-discount-item-label {
    padding-left: 20px;
    padding-right: 20px;
}

.cart-item-wrap table .cart-discount-item-price {
    white-space: nowrap;
}

.basket-preview-summary {
    margin-bottom: 20px;
}

.basket-preview-subtotal,
.basket-preview-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.basket-preview-subtotal {
    color: #6b6266;
    font-size: 13px;
}

.basket-preview-subtotal > :last-child,
.basket-preview-total strong {
    flex-shrink: 0;
    white-space: nowrap;
}

.basket-preview-discounts {
    margin-bottom: 14px;
    border-bottom: 1px solid #e7e7e7;
}

.basket-preview-total {
    color: #181818;
    font-weight: 600;
}

.basket-preview-total strong {
    font-size: 22px;
}

.basket-preview-total-note {
    margin-top: 4px;
    color: #6b6266;
    font-size: 12px;
}

.cart-bottom-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px 40px;
}

.cart-bottom-list .discount-wrap {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
}

.cart-bottom-list .discount {
    min-width: 0;
    width: 100%;
    max-width: 440px;
}

.cart-bottom-list .cart-all-price {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
}

.cart-bottom-list .cart-all-price-left,
.cart-bottom-list .cart-all-price-right {
    float: none;
    width: auto;
    margin: 0;
    padding-right: 0;
    text-align: left;
}

.cart-bottom-list .cart-all-price-right {
    white-space: nowrap;
}

@media (max-width: 991px) {
    .cart-bottom-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-bottom-list .cart-all-price {
        width: 100%;
        justify-content: space-between;
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 767px) {
    .cart-discount-row {
        gap: 12px;
    }

    .cart-main .cart-item-wrap table .cart-discount-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 12px;
        border-color: #f1dbe3;
    }

    .cart-main .cart-item-wrap table .cart-discount-item > td {
        float: none;
        width: auto !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .cart-main .cart-item-wrap table .cart-discount-item-label {
        flex: 1;
        min-width: 0;
    }

    .cart-main .cart-item-wrap table .cart-discount-item-actions:empty {
        display: none;
    }

    .basket-preview-discounts .cart-discount-name {
        font-size: 13px;
    }

    .basket-preview-discounts .cart-discount-amount {
        font-size: 16px;
    }
}
