.cart__total-wrapper {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 28%;
    max-width: 408px;
    display: flex;
    flex-direction: column;
}

.c-table__total-sum .title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--main-text-color);
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.c-table__total-sum .title .total-sum {
    flex: 1 0 auto;
    font-weight: 500;
    text-align: left;
    font-size: 22px;
}

.a-cart-head__tab-btns {
    border-bottom: 1px solid var(--border-color);
    height: fit-content;
}

.a-cart-head__search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--third-text-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}


.a-cart-head__search-clear:hover {
    color: #ff2f2f;
}

.a-cart-head__tab-btn {
    padding: 0 17px 16px;
    font-size: 13px;
    position: relative;
    color: var(--accent-color);
}

.a-cart-head__tab-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: all 0.2s;
}

.a-cart-head__tab-btn.active {
    color: var(--main-text-color);
}

.a-cart-head__tab-btn:hover::before,
.a-cart-head__tab-btn.active::before {
    width: 101%;
    left: -1px;
}
.a-cart-head__clear-cart {
    padding: 9px 23px 8px;
    border: 1px solid var(--border-color);
    border-radius: 101px;
    color: var(--third-text-color);
    transition: all 0.2s ease;
}

.a-cart-head__clear-cart:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.c-table__total .total-title {
    display: block;
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
}

.a-cart-head__left {
    display: flex;
}

.a-cart-head__search-container {
    margin-right: 15px;
    position: relative;
    display: none;
}

.a-cart-head__search-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--main-background-color);
    cursor: pointer;
    padding: 7px;
    transition: all 0.2s ease;
    margin-right: auto;
}

.a-cart-head__search-icon:hover {
    background: var(--accent-color);
    color: var(--secondary-text-color);
}

.a-cart-head__search-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .a-cart-head__search-icon {
        display: none;
    }
}

.a-cart-head__search-container_active {
    display: block;
}

.a-cart-head__search-container input {
    padding: 11px 38px 10px 15px;
    width: 300px;
    background: var(--accent-background-color);
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.a-cart-head__container {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.c-table__total button span {
    position: relative;
    z-index: 3;
}

.a-cart-wrapper {
    background: var(--main-background-color);
    margin-right: 15px;
    width: 100%;
}

.a-cart__button-show {
    display: none;
}

.cart-wrapper {
    height: 100%;
}

.c-table__total {
    background: var(--main-background-color);
    padding: 40px 40px 20px;
    order: 1;
}

.cart-wrapper .c-carousel__title--left:hover{
    color: var(--main-text-color);
}

.c-table__total .checkout-form.mt-2 {
    display: flex;
    justify-content: flex-end;
}
.checkout-form.mt-2 .button {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--accent-color);
    color: var(--secondary-text-color);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
}
.c-table__total-sum {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.c-table__total-sum .title {
    margin-right: 5px;
}

.a-cart-page__form {
    flex: 1 1 auto;
}

.a-cart-page__container {
    display: flex;
    margin-bottom: 40px;
}

.c-table__total-decription {
    font-size: 14px;
    color: var(--main-text-color);
    font-weight: 400;
    text-align: left;
    width: 100%;
}

.a-cart__title {
    display: none;
}

.a-cart-page {
    padding-bottom: 50px;
    background: var(--accent-background-color);
    height: 100%;
}

.cart-item__wrapper {
    background: var(--main-background-color);
}

.cart-item__price-one-container {
    font-size: 13px;
    color: #BDC2D3;
    display: block;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
}

.cart__to-order {
    margin: 0 0 30px;
}


.cart-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.a-card-dropdown {
    -ms-flex: 1;
    flex: 1;
    margin: 0 20px 0 0;
}

.a-cart__dropdown .cart__old-price,
.a-cart__dropdown .cart__sale {
    display: none;
}

.cart-item__container {
    width: 100%;
    max-width: 280px;
    padding: 0;
    margin: 0 20px 0 0;
}

.cart-item__amount {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 99px;
    margin: 0 auto;
}

.cart-item__amount .amount {
    height: 42px;
}

.cart-item__code {
    display: block;
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    color: #BDC2D3;
}


.cart-item__price-container {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 210px;
    margin: 0 0 0 auto;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart__dropdown-content {
    display: none;
}

.cart__dropdown-content:last-of-type {
    border-bottom: none;
}

.cart__dropdown-content_active {
    display: block;
}

.cart__total {
    justify-content: space-between;
    display: flex;
    align-items: center;
    color: var(--main-text-color);
}

.a-cart__dropdown .alert-primary {
    display: none;
}

.a-cart__dropdown .alert-primary_active {
    display: block;
}

.cart__total-container {
    width: 100%;
    margin: 0 0 30px;
    line-height: 1.35;
    font-size: 18px;
    font-weight: 500;
}


.cart-item__buttons .cart-item__delete {
    font-size: 20px;
    color: #eb5757;
}

.cart-item__button-more {
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    color: #343434;
    transition: color 0.25s;
}

.cart-item__button-more svg {
    width: 4px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    fill: currentColor;
    fill-rule: evenodd;
}

.cart-item__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0px 0px 20px rgba(170, 189, 206, 0.25);
    border-radius: 5px;
    padding: 15px;
    min-width: 228px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.cart-item__dropdown._active {
    opacity: 1;
    visibility: visible;
}

.cart-item__dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
}

.cart-item__dropdown li {
    padding: 0 0 15px;
    margin: 0 0 15px;
    border-bottom: 1px solid #EFF3F4;
}

.checkout-form.mt-2 {
    order: 2;
    background: var(--main-background-color);
    padding: 0 40px 40px;
}



.cart-item__dropdown li:last-of-type {
    padding: 0;
    margin: 0;
    border: none;
}

.cart-item__dropdown button {
    text-decoration: none;
    color: var(--main-text-color);
    transition: color 0.25s;
    display: block;
}

.cart-item__dropdown button:hover {
    color: var(--accent-color);
}

.cart__checkout-buttons {
    padding: 20px 0 0;
    border-top: 1px solid #E8EBF4;
    display: flex;
}

.cart__footer .cart__total-price,
.cart__dropdown-content .js-cartPrice {
    color: var(--main-text-color);
    font-size: 15px;
    font-weight: 700;
}

.cart__footer-to-cart {
    margin-right: 10px;
}

.cart__footer-close {
    margin-left: 10px;
}

.cart__checkout-buttons .btn-primary,
.cart__checkout-buttons .btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.cart__checkout-buttons .mdi {
    font-size: 20px;
    margin-right: 5px;
}




.cart-item__title {
    display: block;
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--main-text-color);
}

.cart-item__title:hover {
    color: var(--accent-color);
}
.cart-item__dropdown .quickview__favorites {
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
}
.cart-item__dropdown .quickview__favorites svg {
    display: none;
}

.cart-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    background: var(--main-background-color);
    padding: 20px 20px 20px 20px;
    min-height: 140px;
    border-radius: 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item__price {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--main-text-color);
}

.cart__total {
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--main-text-color);
}

.cart-amount-wrapper {
    position: relative;
}
.cart-item__image {
    width: 6.25vw;
    height: 6.25vw;
    max-width: 120px;
    max-height: 120px;
    margin-right: 20px;
    border: none;
    display: block;
    min-width: 82px;
    min-height: 82px;
}

.cart-item__dropdown .quickview-text {
    margin-left: 0;
}

.c-order .a-cart-page__container {
    flex-direction: column;
    border-radius: 10px;
}

.order-page .a-cart-page {
    flex: 1 0 calc(45% - 10px);
    max-width: calc(45% - 10px);
    padding: 0;
}

.order-page .cart-item__image {
    width: 40px;
    height: 40px;
    padding: 5px;
    position: static;
    left: auto;
    top: auto;
    margin-right: 10px;
    flex: 1 0 40px;
    min-width: 40px;
    min-height: 40px;
}

.order-page .cart-item__title {
    font-size: 14px;
}

.order-page .cart-item__code {
    font-size: 12px;
}

.order-page .cart-item__price-container {
    width: auto;
    font-size: 14px;
}

.c-order .a-cart__button-show {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    cursor: pointer;
}

.order-page .a-cart-wrapper {
    margin-right: 0;
}
.c-order .a-cart-wrapper .mdi-chevron-down {
    transition: all 0.3s ease;
}
.c-order .a-cart-wrapper._active .mdi-chevron-down {
    transform: rotate(180deg);
}
.order-page .cart-item {
    padding: 20px 20px 70px 20px;
}

.order-page .a-card-dropdown {
    margin-right: 0;
}

.order-page .cart-item__amount {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: calc(100% - 40px);
    margin: 0 20px;
}

.order-page .a-cart-head__search-clear {
    top: 10px;
    transform: none;
}

.order-page .cart__total-wrapper {
    width: 100%;
}

.order-page .a-cart-page__back-btn {
    margin-top: 20px;
    background: #ccc;
}

.order-page .c-table__total {
    border-radius: 10px;
}

.empty-cart-block {
    width: 100%;
    padding: 100px 10px;
    background: #fff;
    border-radius: 10px;
}
.empty-cart__container {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.empty-cart__img {
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--main-background-color);
    margin-bottom: 50px;
}

.empty-cart__link {
    color: var(--link-color);
    border-bottom: 1px solid #E3EEFF;
}
.empty-cart__link:hover {
    opacity: 0.7;
}

.empty-cart-block__text {
    display: block;
    margin: 0 0 30px;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 500;
}

.empty-cart__img img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.c-order .a-cart-page {
    padding-bottom: 0;
}

@media (max-width: 1270px) {
    .a-cart-page__container {
        flex-direction: column;
    }
    .cart__total-wrapper {
        width: 100%;
        max-width: none;
        margin-top: 15px;
    }
    .checkout-form.mt-2 .button {
        width: fit-content;
        margin: 0 auto;
    }
    .checkout-form.mt-2 {
        display: flex;
        justify-content: center;
    }
    .a-card-dropdown {
        margin-right: 0;
    }
    .a-cart-wrapper {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    .c-order .a-cart-wrapper {
        border: none;
    }
}

@media (max-width: 768px) {
    .a-cart-head__search-container {
        margin-right: 0;
    }
    .c-order .a-cart__wrapper {
        display: none;
    }
    .cart__total-wrapper {
        margin-top: 0;
    }
    .a-cart-page .block-wrapper,
    .a-cart-page {
        background: var(--main-background-color);
    }
    .a-cart-head__container {
        flex-direction: column;
        align-items: center;
    }
    .a-cart-head__left {
        margin-bottom: 20px;
    }
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-item__buttons {
        position: absolute;
        right: 10px;
        top: 10px;
    }
    .cart-item__price-container,
    .cart-item__image,
    .cart-item__container {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .cart-item {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .cart-item__code {
        display: none;
    }
    .checkout-form.mt-2 .button {
        width: 100%;
    }
    .checkout-form.mt-2 {
        padding: 0 20px;

    }
    .cart-item__title {
        width: calc(100% - 7vw);
        font-size: 14px;
        font-weight: 400;
        text-align: left;
        padding-left: 10px;
    }
    .cart-item__amount {
        margin: 0 10px 0 0;
    }
    .cart-item__price-container {
        justify-content: flex-start;
        text-align: left;
    }
    .cart-item__buttons .cart-item__delete {
        color: var(--third-text-color);
    }
    .cart-item__buttons .cart-item__delete:hover {
        color: #eb5757;
    }
    .a-cart-head__clear-cart {
        display: none;
    }
    .c-table__total {
        padding: 40px 20px 20px;
    }
}

@media (max-width: 430px) {
    .a-cart-head__search-container {
        display: none;
    }
}