body.moon__theme .remodal input,
body.moon__theme .remodal select {
    color: #000;
}

body.moon__theme .remodal select option {
    background-color: #fff;
}

.remodal-wrapper {
    padding: 0 0 0 50px;
    background-color: rgb(23, 23, 23, 0.85);
    overflow: hidden;
}

.remodal-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.remodal {
    max-width: 400px;
    margin-left: auto;
    padding: 0 30px;
    min-height: 100vh;
    height: 100%;
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    color: #000;

    position: fixed;
    right: 0;
    transform: translateX(100%);
    transition: 0.3s linear;
    opacity: 1;
}

.remodal::-webkit-scrollbar {
    width: 0;
}


.remodal.remodal-is-closed,
.remodal.remodal-is-closing {
    transform: translateX(100%);
    transition: 0.3s linear;
}

.remodal.remodal-is-opened,
.remodal.remodal-is-opening {
    transform: translateX(0%);
}

.remodal.remodal-is-opened,
.remodal.remodal-is-opening {
    -webkit-animation-name: none;
    animation-name: none;
}

.remodal.remodal-is-closing {
    -webkit-animation-name: none;
    animation-name: none;
}



.payment__form {
    min-height: max-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding-block: 30px;
}

.shopping__card-form {
    min-height: 0;
}

.payment__header {
    display: flex;
    flex-direction: column;
}

.modal__logo {
    width: 125px;
    height: 30px;
}

.payment__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.payment__title {
    font-weight: 600;
    font-size: 20px;
}

.payment__description {
    margin-top: 20px;
    font-weight: 500;
    font-size: 14px;
}

.payment__description b {
    font-weight: 600;
}

.payment__action {
    margin-top: auto;
}

.payment__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.payment__total-label {
    font-weight: 400;
    font-size: 16px;
}

.payment__total-price {
    font-weight: 600;
    font-size: 20px;
}

.payment__total-price .numb__pcs {
    font-size: 16px;
}

.payment__btns {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}


.payment__control-box {
    margin-top: auto;
    margin-bottom: 50px;
}

.remodal .catalog__filter-select {
    margin-top: 0;
}

.modal__form-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.remodal__form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remodal__form-label {
    font-weight: 500;
    font-size: 12px;
}

.form__input-group {
    position: relative;
    width: 100%;
}

.form__group-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #00000017;
    padding: 10px 12px;

    font-family: "Montserrat", serif;
    font-weight: 400;
    font-size: 13px;
}

.form__group-input.wallet__input {
    padding-right: 40px;
}

.modal__inp-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    max-width: max-content;
    max-height: max-content;
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: pointer;
}

.modal__inp-icon .copy__icon {
    width: 17px;
    height: 17px;
}

.count__number-btns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 3px;
}

.inp__value-count {
    pointer-events: visible;
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.form__group-input::-webkit-inner-spin-button {
    appearance: none;
}

.form__group-input::placeholder {
    font-weight: 400;
}

.form__group-input.inp__value-number {
    text-align: center;
    font-weight: 600;
}

.remodal__form-group .checkbox__text {
    font-weight: 500;
}

.remodal__form-group .link {
    color: #3E7DF1 !important;
    text-decoration: underline;
    text-underline-offset: 1px;
    text-decoration-thickness: 1px;
}


.modal__shopping-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-right: -18px;
    padding-right: 12px;
    max-height: 765px;
}

.modal__shopping-content::-webkit-scrollbar {
    width: 4px;
    background-color: #00000017;
    border-radius: 9em;
}

.modal__shopping-content::-webkit-scrollbar-thumb {
    border-radius: 9em;
    background-color: #3E7DF1;
}

.shopping__item {
    display: flex;
    gap: 20px;
    border: 1px solid #00000017;
    padding: 10px 15px 15px 15px;
    border-radius: 10px;
}

.shopping__item-box {
    width: 100%;
}

.shopping__item-detail {
    font-weight: 500;
    font-size: 14px;

    display: block;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shopping__item-quantity {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

.shopping__item-quantity .remodal__form-label {
    color: #00000073;
}

.delete__shop-item-btn {
    flex: none;
    display: flex;
}

.delete__shop-item-btn .icon {
    width: 11px;
    height: 11px;
}


/* @media (max-width: 1440px) {
} */

@media (max-width: 1024px) {

    .payment__info {
        margin-top: 20px;
        gap: 10px;
    }

    .payment__title {
        font-size: 16px;
    }

    .payment__description {
        font-size: 12px;
    }

    .payment__total-label {
        font-size: 14px;
    }

    .payment__total-price {
        font-size: 16px;
    }

    .payment__total-price .numb__pcs {
        font-size: 12px;
    }

    .payment__btns {
        margin-top: 20px;
    }



    .shopping__item-detail {
        font-size: 12px;
    }

    .shopping__item-quantity {
        gap: 20px;
    }
}


@media (max-width: 768px) {
    .remodal {
        padding-inline: 20px;
    }

    .modal__shopping-content {
        margin-right: 0;
    }
}


@media (max-width: 420px) {
    .payment__btns {
        flex-direction: column;
    }

    .payment__btns .btn {
        width: 100%;
    }
}



.remodal-header-fly-goods,
.remodal-header-fly-cart {
    display: none;
}


.remodal[data-modal-buy-method="product"] .remodal-header-fly-goods {
    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;
}








/* Поле количество */
.box__quantity {
    width: 100%;
    max-width: 100%;
    height: 38px;
    padding: 0;
    position: relative;
    margin: 0 auto;
    border-radius: 10px;
}

.box__quantity-button {
    width: 32px;
    height: 32px;
    position: absolute;
    z-index: 9;
    top: 50%;
    bottom: 0;
    transform: translateY(-50%);
    border-radius: 10px;
    background: no-repeat center center url(images/svg/prev-btn.svg);
    transition: background-color 0.3s ease;
}
.box__quantity-button:hover {
    background-color: #e5e8ed;
}

.box__quantity-button.button--minus {
    left: 3px;
}

.box__quantity-button.button--minus::after,
.box__quantity-button.button--plus::after {
    width: auto !important;
    height: auto !important;
    content: ' ' !important;
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    background: #fff !important;
    transition: opacity 0.3s ease;
    opacity: 0;
    border-radius: 10px;
}

.box__quantity-button.button--plus {
    right: 3px;
    background: no-repeat center center url(images/svg/next-btn.svg);
}

.box__quantity-button:hover::after,
.box__quantity-button:hover::before {
    opacity: 0.32;
}

.box__quantity-button:active::after,
.box__quantity-button:active::before {
    opacity: 0.15;
}

.box__quantity-sufix {
    width: 50%;
    min-width: 50%;
    padding: 0 2px 0 0;
    font-weight: 500;
    font-size: 30px;
    color: #02141f;
    text-align: left;
}

.box__quantity-input {
    width: 100%;
    border-radius: 10px;
    background-color: #fff;
    padding: 5px 20px;
    height: 38px;
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 13px;
    color: #264653;
    border: 1px solid #00000017;
    position: relative;
    z-index: 7;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -moz-appearance: textfield;
    opacity: 0;
}
.box__quantity-input span {
    font-weight: 600;
    margin: 0 5px 0 0;
    color: #000;
}
.box__quantity-input.input--suffix {
    display: flex;
    align-items: center;
    gap: 5px;
}

.box__quantity-input::-webkit-outer-spin-button,
.box__quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.box__quantity-input:focus {
    opacity: 1;
}

input.box__quantity-input:focus + div.box__quantity-input {
    opacity: 0;
}

div.box__quantity-input {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    font-weight: 600;
    color: #000;
    z-index: 5;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 1;
    pointer-events: none;
}






/*
    Shop cart
 */
#body .b-overlay {
    padding: 0;
    overflow: hidden;
    overflow-y: auto;
    z-index: 7777 !important;
    display: flex;
    align-items: normal;
    justify-content: flex-end;
    flex-wrap: wrap;
}
#body .b-popup {
    display: none !important;
    font-family: "Montserrat", serif;
}
#body .b-overlay .b-popup {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 400px;
    padding: 28px 30px 25px 30px;
    position: relative;
    margin: 0 !important;
    box-shadow: none;
    background-color: #fff;
    border-radius: 0;
    transform: none !important;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transition: transform 0.3s linear;
    transform: translateX(0) !important;
}

#body .b-overlay .b-popup {
    display: flex !important;
}
#body .b-overlay .b-popup.b-over-hide {
    transform: translateX(100%) !important;
}


@media (max-width: 420px) {
    #body .b-overlay .b-popup {
        padding: 16px;
    }
}
#body .b-popup__title,
.cart-prev-product-head-title {
    flex: 1 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0 0 15px 0;
    text-align: left;
    font-weight: 600;
    font-size: 20px;
    color: #000;
    text-transform: none;
}
.cart-prev-product-head-title {
    margin-top: 40px;
}

#body .b-popup .b-popup__head {
    flex: none;
    display: none;
}

.cart-prev-product-body {
    flex: 1 0;
    display: flex;
    flex-direction: column;
}

#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-products {
    flex: 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #000;
}

.cart-prev-product-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
}

.cart-prev-product-item-right {
    display: flex;
    align-items: center;
    margin-top: 2px;
}
@media (max-width: 500px) {
    .cart-prev-product-item-right {
        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 {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.24;
    color: #00000073;
}
.cart-prev-product-item-qty > span,
.cart-prev-product-item-price > span {
    color: inherit;
}

.cart-prev-product-item-remove-btn {
    width: 11px;
    height: 11px;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 15px;
    bottom: 0;
    border: 0;
    outline: none;

    cursor: pointer;

    border-radius: 0;
    background: 0;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline:none;
}
.cart-prev-product-item-remove-btn-icon::after {
    width: auto;
    height: auto;
    content: ' ';
    display: block;
    position: absolute;
    left: -5px;
    right: -5px;
    top: -5px;
    bottom: -5px;
    background: red;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-prev-product-item-remove-btn-icon {
    width: 11px;
    height: 11px;
    position: relative;
    background: no-repeat 0 0 url(images/svg/close.svg);
    background-size: 100% 100%;
}
.cart-prev-product-item-remove-btn:hover .cart-prev-product-item-remove-btn-icon::after {
    opacity: 0.3;
}
@media (max-width: 500px) {
    .cart-prev-product-item-remove-btn {

    }
}

.cart-prev-product-item {
    position: relative;
    border: 1px solid #00000017;
    padding: 10px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 10px;
}
.cart-prev-product-item + .cart-prev-product-item {
    margin-top: 10px;
}


.cart-prev-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 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 {
    flex: 1 0;
    font-weight: 400;
    font-size: 16px;
}
.cart-prev-total-value {
    font-weight: 600;
    font-size: 20px;
}

.b-popup .info-b-basket {
    height: auto;
    padding: 8px 10px;
    margin: 20px 0 0 0;
    border-radius: 20px;
    background-color: #fffbcc;
    border-color: #fffbcc;
}


.cart-prev-checkouts {
    flex: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}
.cart-prev-checkouts-center {
    justify-content: center;
}

.cart-prev-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.cart-prev-box-btn {
    flex: none;
}
@media (max-width: 500px) {
    .cart-prev-bottom {
        gap: 10px;
        flex-direction: column;
        align-items: normal;
    }
    .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;
}

