/* скрываем кнопку "Обновить корзину" */

.woocommerce-cart-form [name="update_cart"] {
    display: none;
}

/* блок итого */

.cart_totals {
    margin: 0px 0 35px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
    position: absolute;
    max-width: 300px;
    right: 0;
}

@media (max-width:1024px) {
    .cart_totals {
        max-width: 200px;
    }
}

.cart_totals .checkout-button {
    color: var(--white);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.cart_totals .order-total {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    border: solid 1px var(--gray);
    padding: 10px;
    border-radius: 3px;
    width: 100%;
}

.cart_totals .woocommerce-Price-amount {
    font-size: 30px;
}

@media (max-width: 767px) {
    .cart_totals {
        justify-content: space-between;
        column-gap: 5px;
        position: relative;
        max-width: 100%;
        margin-top: 15px;
    }

    .cart_totals .order-total div {
        width: fit-content;
    }

    .cart_totals .checkout-button {
        min-width: fit-content;
    }
}

.wc-proceed-to-checkout {
    width: 100%;
}
.wc-proceed-to-checkout a {
    width: 100%;
}

/* таблица корзины */

.woocommerce-cart-form {
    max-width: calc(100% - 350px);
}

@media (max-width:1024px) {
    .woocommerce-cart-form {
        max-width: calc(100% - 250px);
    }
}

@media (max-width: 767px) {
    .woocommerce-cart-form {
        max-width: 100%;
    }
}

.woocommerce-cart-form .shop_table thead {
    display: none;
}

.woocommerce-cart-form .shop_table tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns:160px auto 150px;
    grid-template-rows: repeat(5, auto);
    grid-template-areas:
    "img name price"
    "img name qty"
    "img name remove"
    "backorder backorder backorder"
    "upsells upsells upsells";
    column-gap: 25px;

    border: solid 1px var(--gray);
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-cart-form .shop_table td.product-backorder-upsells {
    grid-area: backorder;
    overflow: hidden;
    padding-bottom: 10px;
}

.woocommerce-cart-form .shop_table td.product-cart-upsells {
    grid-area: upsells;
    overflow: hidden;
}

.woocommerce-cart-form .shop_table td.product-price, td.product-subtotal {
    text-align: center;
}

.woocommerce-cart-form .shop_table td.plnt_product-remove {
    grid-area: remove;
    align-self: center;
    padding: 0;
    justify-self: end;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}

.woocommerce-cart-form .shop_table td.plnt_product-remove a:hover, td.plnt_product-remove a:active, td.plnt_product-remove a:focus  {
    text-decoration: none;
    color: var(--accent-color);
}

.woocommerce-cart-form .shop_table td.product-name, td.product-price, td.product-subtotal {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.woocommerce-cart-form .shop_table td.product-quantity {

    grid-area: qty;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
    align-self: center;
}

.woocommerce-cart-form .shop_table td.product-quantity .quantity {
    width: fit-content;
    border-radius: 5px;
    display: flex;
    border: 1px solid var(--gray);
    margin: 0;
    padding: 10px;
}

.woocommerce-cart-form .shop_table td.product-quantity .quantity div {
    border: none;
    background-color: var(--background);
    line-height: 1;
    border-radius: 5px;
    font-weight: 600;
    font-size: 25px;
    padding: 0 10px;
    text-align: center;
    margin: 0;
}

.woocommerce-cart-form .shop_table td.product-quantity .quantity div:hover {
    cursor: pointer;
}

.woocommerce-cart-form .shop_table td.product-quantity .quantity input {
    border: none;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    background-color: var(--background);
    padding: 0 10px;
    font-size: 16px;
    max-width: 50px;
}


.woocommerce-cart-form .shop_table td.product-price, th.product-price {
    display: none;
}

.woocommerce-cart-form .shop_table td.product-thumbnail {
    grid-area: img;
    align-self: center;
}
.woocommerce-cart-form .shop_table td.product-thumbnail img{
    border-radius: 25px;
}

.woocommerce-cart-form .shop_table td.product-name {
    grid-area: name;
    font-size: 16px;
    text-align: left;
    align-self: center;
    position: relative;
}

.woocommerce-cart-form .shop_table td.product-subtotal {
    grid-area: price;
    font-size: 20px;
    text-align: left;
    align-self: center;
    padding: 0;
    justify-self: end;
}

@media  (max-width: 767px) {
    .woocommerce-cart-form .shop_table tr.woocommerce-cart-form__cart-item {
        display: grid;
        grid-template-columns:80px auto 150px 20px;
        grid-template-rows: repeat(4, auto);
        grid-template-areas:
        "img name name name"
        "img price qty remove"
        "backorder backorder backorder backorder"
        "upsells upsells upsells upsells";

        column-gap: 7px;
        margin-top: 5px;
        row-gap: 10px;
        padding: 10px;
    }
    .woocommerce-cart-form .shop_table td.product-subtotal {
        justify-self: left;
        font-size: 22px;
    }
    .woocommerce-cart-form .shop_table td.product-quantity {
        justify-self: flex-start;
        margin-left: 0;
    }

    .woocommerce-cart-form .shop_table td.product-quantity .quantity {
            padding: 5px;
        }
    
    .woocommerce-cart-form .shop_table td.product-name {
        overflow-wrap: anywhere;
        font-size: 14px;
    }
    }

    @media  (max-width: 385px) {
        .woocommerce-cart-form .shop_table td.product-subtotal {
            font-size: 20px;
        }
    }

/*empty cart*/

.cart__empty-image {
    height: 190px;
    margin-bottom: 15px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-size: 24px;
    font-weight: 600;
}

.cart__catalog-buttons-wrap {
    display: flex;
    justify-content: space-between;
    column-gap: 20px;
    margin-top: 20px;
    max-width: 450px;
    margin-right: auto;
    margin-left: auto;
}

/* peresadka */

.cart__peresadka .quantity {
    display: none;
}

.cart__peresadka {
    display: flex;
    align-items: center;
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 500;
}

.cart__peresadka .button {
    padding: 0;
}

.cart__peresadka svg path{
    stroke: var(--gray-text);
}
.cart__peresadka:hover{
    color: var(--text);
}
.cart__peresadka:hover svg path{
    stroke: var(--text);
}

.cart__peresadka .add_to_cart_button, .cart__peresadka .product_type_simple {
    width: fit-content;
    color: inherit;
    background: none;
    border: none;
    padding: 10px 0;
    text-transform: none;
    text-align: left;
}
.cart__peresadka .add_to_cart_button:hover, .cart__peresadka .product_type_simple:hover  {
    background: none;
    border: none;
    box-shadow: none;
}


.woocommerce-cart-form__cart-item .cart__peresadka-added_mini {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    bottom: -15px;
    animation-name: cart__peresadka-added;
    animation-duration: 1.5s;
    opacity: 0;
    visibility: hidden;
}

.woocommerce-mini-cart .cart__peresadka-added_mini {
    position: absolute;
    right: 40px;
    height: 20px;
    width: 20px;
    border-radius: 20px;
    background-color: var(--accent-color);
    background-image: url(https://plantis-shop.ru/wp-content/themes/plantis_site/images/icons/check_white.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
    animation-name: cart__peresadka-added;
    animation-duration: 1.5s;
    opacity: 0;
    visibility: hidden;
}

@keyframes cart__peresadka-added {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  50% {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}


/* backorder */
.backorder-crossells__preview-wrap {
    display: flex;
    align-items: center;
    column-gap: 20px;
    font-size: 16px;
    font-weight: 600;
    border-top: solid 1px var(--gray);
    padding: 10px 5px 0px;
    margin-top: 10px;
}

@media  (max-width: 767px) {
    .backorder-crossells__preview-wrap {
        font-size: 14px;
    }
}

.backorder-crossells__preview {
    display: flex;
    column-gap: 7px;
    opacity: 100%;
    transition: all 0.6s;
}

.backorder-crossells__preview-img {
    width: 100px;
    height: 100px;
}

.backorder-crossells__preview-down {
    margin-left: auto;
    color: var(--gray-text);
    margin-right: 20px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.backorder-crossells__preview-down-close{
    display: none;
}

.product-backorder-upsells_active .backorder-crossells__preview-down-close{
    display: inline;
}
.product-backorder-upsells_active .backorder-crossells__preview-down-open{
    display: none;
}

.backorder-crossells__preview-arrow {
    position: absolute;
    font-family: swiper-icons;
    font-size: 12px;
    right: -15px;

    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    -moz-transition: -moz-transform 0.6s;
    -o-transition: -o-transform 0.6s;
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
}

.backorder-crossells__sliders-wrap {
    height: 0px;
    opacity: 0;
    transition: opacity 0.9s, height 0.8s 0.1s;
    padding: 0px 5px;
}

.backorder-crossells__sliders-wrap .swiper-wrapper {
    margin-bottom: 15px;
    margin-top: 25px;
    max-width: calc(100vw - 50px);
}

.backorder-crossells__sliders-wrap .swiper-wrapper img {
    border-radius: 25px;
}

.backorder-crossells__sliders-wrap .card__stockstatus {
    display: none;
}
.backorder-crossells__sliders-wrap .yith-wcwl-add-to-wishlist {
    display: none;
}
.backorder-crossells__sliders-wrap .woocommerce-product-details__short-description {
    display: none;
}
.backorder-crossells__sliders-wrap .woocommerce-loop-product__title {
    font-size: 16px;
    min-height: 53px;
}
.backorder-crossells__sliders-wrap .backorder-crossells__reg-price {
    font-size: 18px;
    font-weight: 400;
    color: red;
    text-decoration: line-through;
    margin-right: 10px;
}

.backorder-crossells__sliders-wrap .backorder-crossells__price {
    font-size: 20px;
    font-weight: 600;
}    

.backorder_replace_btn {
    width: 100%;
    padding: 5px 10px 4px;
    border-radius: 5px;
    background-color: var(--text);
    border: 2px solid var(--text);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
}

.backorder_replace_btn:hover{
    cursor: pointer;
}

.product-backorder-upsells_active .backorder-crossells__sliders-wrap {
    height: 400px;
    opacity: 100%;
    transition: height 0.9s, opacity 0.8s 0.1s;
}
.product-backorder-upsells_active .backorder-crossells__preview {
    opacity: 0;
}

.product-backorder-upsells_active .backorder-crossells__preview-arrow {

    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

/* cart upsells */

.cart-upsells__preview-wrap {
    display: flex;
    align-items: center;
    column-gap: 20px;
    font-size: 16px;
    font-weight: 600;
    border-top: solid 1px var(--gray);
    padding: 10px 5px 0px;
    margin-top: 10px;
}

@media  (max-width: 767px) {
    .cart-upsells__preview-wrap {
        font-size: 14px;
    }
}

.cart-upsells__preview-down {
    margin-left: auto;
    color: var(--gray-text);
    margin-right: 20px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-upsells__preview-down-close{
    display: none;
}

.product-cart-upsells_active .cart-upsells__preview-down-close{
    display: inline;
}
.product-cart-upsells_active .cart-upsells__preview-down-open{
    display: none;
}

.cart-upsells__preview-arrow {
    position: absolute;
    font-family: swiper-icons;
    font-size: 12px;
    right: -15px;

    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    -moz-transition: -moz-transform 0.6s;
    -o-transition: -o-transform 0.6s;
    -webkit-transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
}

.cart-upsells__sliders-wrap {
    height: 0px;
    opacity: 0;
    transition: opacity 0.9s, height 0.8s 0.1s;
    padding: 0px 5px;
}

.cart-upsells__sliders-wrap .swiper-wrapper {
    margin-bottom: 15px;
    margin-top: 25px;
    max-width: calc(100vw - 50px);
}

.cart-upsells__sliders-wrap .swiper-wrapper img {
    border-radius: 16px;
}

.cart-upsells__sliders-wrap .card__stockstatus {
    display: none;
}
.cart-upsells__sliders-wrap .yith-wcwl-add-to-wishlist {
    display: none;
}
.cart-upsells__sliders-wrap .woocommerce-product-details__short-description {
    display: none;
}
.cart-upsells__sliders-wrap .woocommerce-loop-product__title {
    font-size: 16px;
    min-height: 89px;
}
.cart-upsells__sliders-wrap .product .price {
    font-size: 20px;
    font-weight: 600;
}
.product-cart-upsells_active .cart-upsells__sliders-wrap {
    height: 460px;
    opacity: 100%;
    transition: height 0.9s, opacity 0.8s 0.1s;
}
.product-cart-upsells_active .cart-upsells__preview {
    opacity: 0;
}

.product-cart-upsells_active .cart-upsells__preview-arrow {

    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.product-cart-upsells .add_to_cart_button, .product-cart-upsells .product_type_simple {
    width: 100%;
    padding: 5px 10px 4px;
    border-radius: 5px;
    background-color: var(--text);
    border: 2px solid var(--text);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
}

.cart-upsells__sliders-wrap .added {
    width: 100%;
    padding: 5px 10px 4px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    border-width: 2px;
    background-color: var(--added-cart);
    border-color: var(--added-cart);
}

.product-cart-upsells_btn:hover{
    cursor: pointer;
}
/*--------------------------------------------------------------
# Mini cart
--------------------------------------------------------------*/

/* mini-cart */

.mini-cart__wrap {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 99999;
    visibility: hidden;
    background: transparent;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 200ms ease-out;
}

.mini-cart {
    background: var(--background);
    padding: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
}

.mini-cart__wrap .mini-cart {
    max-height: 485px;
}

.mini-cart__wrap .woocommerce-mini-cart {
    max-height: 300px;
    overflow-y: auto;
}

.header-cart:hover .mini-cart__wrap {
    visibility: visible;
    transform: translateY(0);
    opacity: 100%;
}

.woocommerce-mini-cart {
    margin-bottom: 25px;
    color: var(--text);
}

/* стили для скролла scroll */
 /* start custom scroll */
.woocommerce-mini-cart::-webkit-scrollbar {
	width: 4px;
}

.woocommerce-mini-cart::-webkit-scrollbar-track {
    background: transparent;  /* Скрыть трек */
}

.woocommerce-mini-cart::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.3); /* бледный по умолчанию */
    border-radius: 4px;
    transition: background-color 0.2s ease;  
}

.woocommerce-mini-cart:hover::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.7); /* ярче при скролле */
}

.woocommerce-mini-cart::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

/* end custom scroll */

.woocommerce-mini-cart-item {
    display: grid;
    grid-template-columns: 100px 150px auto;
    grid-template-rows: repeat(4,auto);
    grid-template-areas: 
    "image name remove"
    "image price x"
    "image status status"
    "peresadka peresadka peresadka";
    column-gap: 10px;
    margin-bottom: 10px;
}
.woocommerce-mini-cart-item .backorder_date-info {
    grid-area: status;
    font-size: 11px;
    width: fit-content;
    height: fit-content;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.woocommerce-mini-cart-item .remove {
    grid-area: remove;
    font-size: 24px;
    font-weight: 700;
    line-height: 0;
    padding-top: 7px;
    text-decoration: none;
}
.woocommerce-mini-cart-item .product {
    grid-area: image;
}

.woocommerce-mini-cart-item > img {
    grid-area: image;
}

.woocommerce-mini-cart-item .product-name {
    grid-area: name;
    font-size: 18px;
    font-weight: 600;
}

.woocommerce-mini-cart-item .quantity {
    grid-area: price;
}

.woocommerce-mini-cart-item .cart__peresadka {
    grid-area: peresadka;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
}
.woocommerce-mini-cart-item .cart__peresadka .button {
    padding: 0;
}

/* .woocommerce-mini-cart-item .cart__peresadka .quantity {
    display: none;
} */

.woocommerce-mini-cart-item .quantity .woocommerce-Price-amount  {
    font-size: 22px;
    font-weight: 700;
}

.woocommerce-mini-cart__total {
    color: var(--text);
}
.woocommerce-mini-cart__total span {
    font-size: 18px;
    font-weight: 600;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount {
    font-size: 24px;
    font-weight: 600;
}

.woocommerce-mini-cart__buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: column-reverse;
}

.woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    color: var(--accent-color);
}

.woocommerce-mini-cart__buttons .checkout {
    margin-bottom: 10px;
    color: var(--white);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
} 

/*--------------------------------------------------------------
# Side cart
--------------------------------------------------------------*/
/* @media (max-width:767px) {
    .side-cart__wrap {
        display: none;
    }
} */

.side-cart__wrap .popup {
    display: block;
}

.side-cart {
    position: fixed;
    max-width: 350px;
    right: -350px;
    top: 0;
    bottom: 0;
    background-color: var(--background);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    width: 90%;
    height: calc(var(--vh) - 1px);
    transition: right 0.5s;
    padding: 15px;
    color: var(--text);
}

.popup_active .side-cart {
    right: 0;
}

.side-cart__open-btn {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 99999;
    transition: right 0.5s;

    background-color: #85cd9b;
    border-color: #85cd9b;
    color: var(--accent-color);
    box-shadow: 0 1px 4px 0;
    border-radius: 50%;
    padding: 22px 22px 18px;
}

.side-cart__open-btn svg {
    width: 40px !important;
    height: 40px !important;
}

.side-cart__open-btn svg path{
    fill: var(--accent-color) !important;
    stroke: var(--accent-color) !important;
}

.side-cart__open-btn:active svg path, .side-cart__open-btn:focus svg path, .side-cart__open-btn:hover svg path {
    fill: var(--accent-color) !important;
    stroke: var(--accent-color) !important;
}

.side-cart__open-btn_active {
    right: 360px;
}

@media (max-width:1279px) {
    .side-cart__open-btn {
        /* bottom: 95px; */
        display: none;
    }
}

.side-cart__title {
    margin-bottom: 30px;
}

.side-cart .mini-cart {
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.side-cart .woocommerce-mini-cart__total {
    margin-top: auto;
}
.side-cart .woocommerce-mini-cart__buttons {
    margin-bottom: 20px;
}
.side-cart .woocommerce-mini-cart {
    max-height: calc(var(--vh) - 230px);
    overflow-y: auto;
    overflow-x: hidden;
}



.side-cart__open-btn .header__count {
    position: absolute;
    top: -10px;
    left: 0;
    background: var(--accent-color);
    border-radius: 50%;
    border-color: var(--accent-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    width: 26px;
    height: 26px;
    padding-top: 7px;
}