.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.modal-button {
    padding: 12px 24px;
    background-color: #90f452;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
}


.remodal {
    position: relative;
    max-width: 500px;
    background: #fff;
    color: #040000;
    border-radius: 15px;
    padding: 20px;
}



.remodal[data-modal-buy-method="product"] .remodal-header-fly-goods {
    display: block;
}

.remodal[data-modal-buy-method="product"] .modal-body__payment-topic {
    display: block;
}

.remodal[data-modal-buy-method="cart"] .remodal-header-fly-goods {
    display: none;
}

.remodal[data-modal-buy-method="cart"] .remodal-header-fly-cart {
    display: block;
}



[data-theme="dark"] .remodal {
    background: #282828;
    color: #fff;
}

.remodal-close {
  z-index: 1;
  left: auto;
  right: 5px;
  top: 5px;
  color: #fff;
}
.remodal-close:hover {
  color: #c40b0b;
}

.modal__section-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}
.modal__section-rows-item {
    flex:1 0;
    min-width: 40%;
}
.modal__section-rows-item.display-none {
    display: none !important;
}

@media (max-width: 420px) {
    .modal__section-rows {
        flex-direction: column;
    }
}

.modal__body-basket {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.modal__body-product-close {
    width: 11px;
    height: 11px;
    position: absolute;
    right: 10px;
    top: 4px;
    z-index: 1;
}

.modal__body-basket {
    max-height: 339px;
    overflow-y: auto;
    padding-right: 6px;
}


.modal__body-basket::-webkit-scrollbar {
    width: 4px;
}

.modal__body-basket::-webkit-scrollbar-track {
    background: transparent;
}

.modal__body-basket::-webkit-scrollbar-thumb {
    background-color: #F39B2B;
    border-radius: 15px;
    opacity: 1;
}

.modal__body-basket::-webkit-scrollbar-thumb:hover {
    background-color: #e08a25;
}

.modal__body-basket {
    scrollbar-width: thin;
    scrollbar-color: #F39B2B transparent;
}

.basket-btn {
    position: fixed;
    display: flex;
    align-items: center;
    width: 57px;
    height: 57px;
    border-top-left-radius: 35px;
    border-top-right-radius: 23px;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 41px;
    background-color: #000000;
    right: 27px;
    bottom: 54px;
    z-index: 1;
}

.basket-icon {
    position: absolute;
    top: 13px;
    left: 13px;
}

.basket-value {
    position: absolute;
    top: -7px;
    right: -7px;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 40px;
    background-color: #E4BA85;
    border-top-left-radius: 35px;
    border-top-right-radius: 23px;
    border-bottom-right-radius: 41px;
    border-bottom-left-radius: 25px;
}

.modal__header-btn {
    appearance: none;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #D9D9D9;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal__header-btn:hover {
    background-color: #eeeeee;
}


.remodal-header-fly-cart {
    display: none;
}

.modal-body__payment-topic {
    display: none;
}

.remodal[data-modal-buy-method="product"] .remodal-header-fly-goods {
    display: block;
}

.remodal[data-modal-buy-method="product"] .modal-body__payment-topic {
    display: block;
}

.remodal[data-modal-buy-method="cart"] .remodal-header-fly-goods {
    display: none;
}

.remodal[data-modal-buy-method="cart"] .remodal-header-fly-cart {
    display: block;
}

.remodal[data-modal-buy-method="cart"] .form {
    margin-top: 0 !important;
}



/*
    Shop cart
 */
#body .b-overlay {
    padding: 30px 20px;
    overflow: hidden;
    overflow-y: auto;
    z-index: 7777 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.5);
}

#body .b-popup {
    display: none;
}

#body .b-popup__edit {
    position: absolute;
    top: 2px;
    left: auto;
    right: 5px;
    display: block;
    overflow: visible;
    width: 35px;
    font-size: 0;
    height: 35px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
    text-decoration: none;
    color: #000;
    border: 0;
    outline: 0;
    background: transparent;
}
#body .b-popup__edit:hover {
    color: #c40b0b;
    opacity: 1;
}
[data-theme="dark"] #body .b-popup__edit {
    color: #fff;
}
[data-theme="dark"] #body .b-popup__edit:hover {
    color: #c40b0b;
}

#body .b-popup__edit::before {
    font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
    font-size: 25px;
    line-height: 35px;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 35px;
    content: "\00d7";
    text-align: center;
}


#body .b-popup__edit:hover {
    opacity: 0.6;
}

#body .b-overlay .b-popup {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    max-width: 472px;
    padding: 15px;
    color: #212529;
    position: relative;
    margin: 0 !important;
    box-shadow: none;
    background-color: #fff;
    border-radius: 15px;
    transform: none !important;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
}

[data-theme="dark"] #body .b-overlay .b-popup {
    color: #fff;
    background: #282828;
}


#body .b-overlay.modifications-cart .b-popup {
    width: 100%;
    max-width: 500px;
}

#body .b-overlay.modifications-cart .modal-content__cover {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

@media (max-width: 610px) {
    #body .b-overlay.modifications-cart .b-popup {
        padding: 15px;
    }
}


@media (max-width: 420px) {
    #body .b-overlay .b-popup {
        padding: 16px;
    }
}

#body .b-popup__head {
    flex: none;
    margin: 0;
}

#body .b-popup__title {
    display: none;
}


#body .b-popup__body {
    flex: none;
    padding: 0;
    background: 0;
    border-radius: 0;
}

#body .b-basket {
    max-height: 238px;
    margin: 0;
    overflow: hidden;
    overflow-y: auto !important;
}

#body .b-popup-custom .b-basket-total {
    display: none;
}

#body .b-popup-custom .b-btn.itemcartpay {
    display: none;
}


/*
Shop cart add
 */
.cart-prev-outer {
    flex: none;
    display: flex;
    flex-direction: column;
}


.cart-prev-products::-webkit-scrollbar {
    width: 4px;
}

.cart-prev-products::-webkit-scrollbar-track {
    background: #f6f6f6;
}

.cart-prev-products::-webkit-scrollbar-thumb {
    background-color: #90f452;
    border-radius: 15px;
    opacity: 1;
}

.cart-prev-products::-webkit-scrollbar-thumb:hover {
    background-color: #f0f8e4;
}

.cart-prev-products {
    flex: none;
    padding-right: 6px;
    margin-top: 10px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 262px;
}

.cart-prev-product-item-name {
    font-family: 'Montserrat', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #212529;
    overflow-wrap: break-word;
}


.cart-prev-product-item-right {
    min-height: 27px;
    padding: 3px 15px;
    margin: 0 -15px -15px -15px;
    display: flex;
    align-items: center;
    margin-top: 4px;
    background: rgba(237, 237, 237, 0.1);
    border-radius: 0 0 10px 10px;
}

@media (max-width: 400px) {
    .cart-prev-product-item-right {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 5px;
    }
}

.cart-prev-product-item-suminfo {
    flex: 1 0;
    display: flex;
    align-items: center;
    gap: 5px 30px;
    flex-wrap: wrap;
}

.cart-prev-product-item-qty,
.cart-prev-product-item-price {
    display: flex;
    align-items: center;
    gap: 1px 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.24;
    color: #95A0AA;
}

.cart-prev-product-item-qty > span,
.cart-prev-product-item-price > span {
    color: inherit;
}

.cart-prev-product-item-price-value {
    font-weight: 600;
}


.cart-prev-product-item-qty-input {
    width: 40px;
    height: 20px;
    display: inline-block;
    vertical-align: top;
    font-weight: bold;
    font-size: 11px;
    text-align: center;
    color: #000;
    border: 1px solid #d9d8d8;
    background: #e5e5e5;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color 0.3s ease;
}

.cart-prev-product-item-qty-input:hover,
.cart-prev-product-item-qty-input:focus {
    border-color: #888;
}

[data-theme="dark"] .cart-prev-product-item-qty-input {
    border: 1px solid #252424;
    background: #252424;
    color: #fff;
}
[data-theme="dark"] .cart-prev-product-item-qty-input:hover,
[data-theme="dark"] .cart-prev-product-item-qty-input:focus {
    border: 1px solid #3a3939;
    background: #333232;
}

.cart-prev-product-item-remove-btn {
    width: 19px;
    height: 19px;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    border: 0;
    outline: none;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #E2322C;
    border-radius: 5px;
    transition: background-color 0.3s ease;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.cart-prev-product-item-remove-btn:hover {
    background: #ff7772;
}

.cart-prev-product-item-remove-btn::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    color: #fff;
    font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
    font-size: 20px;
    line-height: 35px;
    content: "\00d7" !important;
}


.cart-prev-product-item {
    position: relative;
    padding: 15px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    background-color: #F4F4F4;
    border-radius: 10px;
}

.cart-prev-product-item + .cart-prev-product-item {
    margin-top: 10px;
}


[data-theme="dark"] .cart-prev-product-item {
    background-color: #333;
}
[data-theme="dark"] .cart-prev-product-item-name {
    color: #fff;
}


.cart-prev-bottom {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 0 0;
}

.cart-prev-total {
    flex: 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

.cart-prev-total-label {

}


.b-popup .info-b-basket {
    height: auto;
    padding: 8px 10px;
    position: relative;
    margin: 15px -15px -15px;
    font-weight: bold;
    color: #000;
    border-radius: 0 0 13px 13px;
    border-top: 2px solid #90f452;
    background-color: #90f452cc;
    box-shadow: none;
}


.cart-prev-checkouts {
    width: 100%;
}

.cart-prev-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cart-prev-box-btn {
    flex: none;
}

@media (max-width: 400px) {
    .cart-prev-bottom {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-prev-box-btn {
        width: 100%;
    }
}

.modifications-cart .b-basket,
.modifications-cart .b-basket-total,
.modifications-cart .b-btn.itemcartpay {
    display: none !important;
}

.cart-prev-empty {
    padding: 5px 10px;
    font-weight: bold;
    font-size: 16px;
    color: #ccc;
    text-align: center;
}

span.counter_cartlequebutton:empty {
    display: none !important;
}

span.product-badge:empty {
    display: none;
}



/* Float cart */
#body a.cartlequebutton {
    width: 64px;
    height: 64px;
    justify-content: center;
    padding: 0;
    position: fixed;
    display: flex;
    align-items: center;
    z-index: 1000;
    right: 0;
    bottom: 20px;
    background: #90f452;
    border-radius: 20px 0 0 20px;
    transition: background-color 0.3s ease;
}
#body a.cartlequebutton:hover {
    background: #a2ff65;
}
#body a.cartlequebutton:active {
    background: #90f452;
}
#body a.cartlequebutton::after {
    width: 32px;
    height: 32px;
    content: ' ';
    display: inline-block;
    vertical-align: top;
    margin: 0 !important;
    background: no-repeat center center url(img/cart-shopping.png);
    background-size: 100% 100%;
}
#body a.cartlequebutton .counter_cartlequebutton {
    right: auto;
    left: -5px;
}
@media (max-width: 492px) {
    #body a.cartlequebutton {
        width: 30px;
        height: 30px;
    }
    #body a.cartlequebutton::after {
        width: 16px;
        height: 16px;
    }
    #body a.cartlequebutton > span {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

span.header__cart-count.customCartAmount:empty {
    display: none;
}

