.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.modal-button {
    padding: 12px 24px;
    background-color: #F39B2B;
    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: 0;
    overflow: hidden;
}

.remodal-close {
  z-index: 1;
  left: auto;
  right: 5px;
  top: 5px;
  color: #fff;
}
.remodal-close:hover {
  color: #c40b0b;
}

.modal-content {
    display: flex;
    align-items: stretch;
    flex-direction: unset;
}


.modal-content__item {
    width: 100%;
    padding: 15px;
    text-align: left;
}

.modal__header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0 17px 0;
    flex-wrap: wrap;
}

.modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0 0;
    margin-top: auto;
}
@media all and (max-width: 492px) {
    .modal__footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .modal__footer-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

.modal__instruction {
    width: auto;
    padding: 8px 20px;
    margin: 20px -15px -15px;
    font-size: 12px;
    color: #fff;
    background-color: #E2332C;
    border-radius: 0 0 13px 13px;
}

.modal-header {
    min-height: 50px;
    margin: -15px -15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: #0D54EE;
    border-radius: 14px 14px 0 0;
}

.modal-header__logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 20px;
}
.modal-header__logo::before {
    width: 28px;
    height: 28px;
    content: ' ';
    display: block;
    margin-right: 12px;
    background: no-repeat 0 0 url(img/modal-header-cube.svg);
    background-size: 100% 100%;
}
.modal-header__logo::after {
    width: 10px;
    height: 41px;
    content: ' ';
    display: block;
    background: no-repeat 0 0 url(img/modal-header-line.svg);
    background-size: 100% 100%;
}

.modal-title {
    font-weight: 700;
    font-size: 20px;
}

@media all and (max-width: 422px) {
    .modal-header__logo {
        font-size: 14px;
    }
    .modal-header__logo::before {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
    .modal-header__logo::after {
        width: 8px;
        height: 32px;
    }
    .modal-title {
        font-size: 14px;
    }
}

.modal-content__item,
.modal__section {
    display: flex;
    flex-direction: column;
}

.modal__section {
    gap: 10px;
    width: 100%;
}

.modal__section-row {
    display: flex;
    align-items: center;
    gap: 21px;
}

@media (max-width: 420px) {
    .modal__section-row {
        flex-direction: column;
    }
}

.modal__section-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 21px;
}
.modal__section-details-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

@media (max-width: 420px) {
    .modal__section-details {
        flex-direction: column;
    }
}

.modal__section .product__title {
    margin: 0;
    padding: 0;
    font-weight: 500;
}

.modal__section-dscr {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.3);
}

.modal__section-first {
    margin-bottom: 6px;
}

.modal__form-check {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-weight: 400;
    font-size: 12px;
    flex: 1 0;
}

.form-check-input:focus,
.modal__check-input {
    box-shadow: none;
    border-color: #B4BCC4;
}

.modal__check-input {
    margin: 0;
    width: 19px;
    height: 19px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #B4BCC4;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: relative;
}

.modal__check-input:checked {
    background-color: #F6F8FA;
    border-color: #B4BCC4;
}

.modal__check-input:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 3px;
    width: 12px;
    height: 12px;
    background-image: url('img/modal-checkbox.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal__footer-price {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.modal__footer-price span {
    font-weight: 700;
    font-size: 24px;
}

.modal__footer-btn {
    min-width: 200px;
    margin: 0;
    background-color: #3267ED;
    color: white;
    padding: 12px 15px 11px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}
.modal__footer-btn:hover {
    opacity: 0.84;
}
.modal__footer-btn.modal__footer-btn--center {
    margin: 0 auto;
}



.modal__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content__cover-logo {
    width: 100%;
    max-width: 227px;
    height: auto;
}

.modal-content__cover-logo img {
    width: 100%;
    object-fit: contain;
    vertical-align: top;
}

.modal__body-value {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    color: #020714;
}

.text-start {
    justify-content: flex-start;
    text-align: left;
}

.text-center {
    justify-content: center;
    text-align: center;
}

.text-end {
    justify-content: end;
    text-align: right;
}

a.modal__payment-link {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 0;
    text-decoration-skip-ink: auto;
    color: #0A51F5;
    transition: color 0.3s ease;
}

a.modal__payment-link:hover {
    color: #467af6;
}



.modal__body-product {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 15px 31px 15px 15px;
    border-radius: 15px;
    background-color: #F5F5F5;
    position: relative;
    justify-content: space-between;
    min-height: 107px;
}

.modal__body-product-name {
    font-weight: 500;
    height: 44px;
}

.modal__body-product-info {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 35px;
    font-size: 12px;
    color: #878787;
}

.modal__body-product-value span {
    font-weight: 600;
}

.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: 8px;
    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: #fff;
    border: 0;
    outline: 0;
    background: transparent;
}
#body .b-popup__edit:hover {
    color: #c40b0b;
    opacity: 1;
}

#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;
}


#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;
}

/* Scrollbar */
#body .b-overlay::-webkit-scrollbar {
    width: 10px;
}

#body .b-overlay::-webkit-scrollbar-track {
    background: #f1f4f8;
    border-radius: 34px;
}

#body .b-overlay::-webkit-scrollbar-track {
    background: #dedee5;
}

#body .b-overlay::-webkit-scrollbar-thumb {
    background-color: #404de8;
    border-radius: 34px;
    transition: background 0.3s ease;
}

#body .b-overlay::-webkit-scrollbar-thumb:hover {
    background: #5c67ee;
}

/*
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: #f4f4f4;
}

.cart-prev-products::-webkit-scrollbar-thumb {
    background-color: #3468ed;
    border-radius: 15px;
    opacity: 1;
}

.cart-prev-products::-webkit-scrollbar-thumb:hover {
    background-color: #4a7dff;
}

.cart-prev-products {
    flex: none;
    padding-right: 6px;
    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: #EDEDED;
    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;
}

.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;
}

.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 {

}

.cart-prev-total-value {
    font-size: 24px;
    font-weight: 700;
}

.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 #f39b2b;
    background-color: rgb(243 155 43 / 69%);
    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: 160px;
    background: #3266ED;
    border-radius: 20px 0 0 20px;
    transition: background-color 0.3s ease;
}
#body a.cartlequebutton:hover {
    background: #3f6fee;
}
#body a.cartlequebutton:active {
    background: #355cce;
}
#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.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;
}

