
.block-scroll{
    /*display: grid;*/
    /*grid-template-columns: minmax(auto, 376px) 1fr;*/

    display: flex;
    gap: 2rem;
}
.block-product{
    width: 25rem;
}
.pop_credit_class_ul{
    list-style-type: none;
    display: grid
;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 40px;
}
.pop_credit_class_ul li {
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #0a001f ;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    padding: 16px;
    background-color:#56cdd9;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 16px 0 rgba(35, 35, 35, 0);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.pop_credit_class_ul li:has(input:checked) {
    box-shadow: 0 4px 16px 0 rgba(35, 35, 35, 0.25);
    background: linear-gradient(90deg, #060b91 0%, #006cef 100%);
    color:white;
}
.pop_credit_class_ul li:hover{
    color:  white;
    transition: 0.3s;
}
.pop_credit_class_ul label{
    cursor: pointer;
}
.pop_credit_class_ul label[data-zero]::before{
    content: attr(data-zero);
    position: absolute;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    color: black;
    border-radius: 4px;
    padding: 8px;
    background: #ffd23a;
    top: -17px;
    left: 20%;
    transform: translateX(-20%);
    width: max-content;
}
.quantity.popQuantity{
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
}
.quantity.popQuantity input{
    font-weight: 700;
    font-size: 16px;
    border: unset;
    width: 40px;
    text-align: center;
    padding: 0;
    color: #000;
    background-color: transparent;
}

.popup__credit .decrement,.increment{
    border: 1px solid #d9d9d9;
    background-color: transparent;
    border-radius: 32px;
    padding: 16px;
    font-size: 30px;
    width: 48px;
    height: 48px;
    display: flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.popup__credit .block-price{
    display: flex;
    flex-direction: column;
}
.popup__credit .item-price{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    padding:  0 2rem 0 0;
}
.popup__credit .item-price .price{
    font-weight: 700;
}
.popup__credit .block-price ul{
    padding: 0;
}
.popup__credit .pop_credit_class_ul {
    padding: 0;
}

.popup__credit .credit-form-wrapper  {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
}

.popup__credit .credit-form-wrapper .uk-form-controls  {
    width: calc(100% / 3);
}

.popup__credit .btn-submit  {
    border-radius: 50px;
    padding: 16px 32px;
    background-color: #232323;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    color: #fff;
    margin: 30px auto 0;
    height: unset;
    border: unset;
    max-width: 30%;
}
.popup__credit .uk-form-controls input {
    border: 1px solid #a4a4a5;
    border-radius: 150px;
    padding: 14px 16px;
    background-color: transparent;
    width: 100%;
}
.popup__credit .uk-form-controls  label {
    position: relative;
    left: -3rem;
}

.popup__credit .block-agreement {
    display: flex;
    flex-direction: column;
}


.month_btns_y{
    display: flex;
    flex-direction: column;
}
.month_btns_y input{
    z-index: -1;
    top: 50%;
    left: 50%;
    position: absolute;
}
.popup__credit .price-month{
    margin-top: 30px;
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
}
.popup__credit .price-month{
    color: #232323;
    text-transform: lowercase;
    opacity: 0.6;
}
.popup__credit .price-month >span:first-child{
    color: #ed0000;
}
.popup__credit .text-info{
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.25;
    color: #232323 !important;

}
.popup__credit .prod-name{
    font-weight: 700;
}

#popup__credit{
    max-width: 90%;
}

#popup__credit .popup__body {
    max-width: 100%;
    max-height: 80rem ;
    overflow: scroll
}

#popup__credit_success {
    max-width: 80%;
}
#popup__credit_success .popup__body{
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
#popup__credit_success .popup__body p{
    max-width: 40%;
    display: flex;
    align-self: center;
    text-align: center;
}

#popup__credit_success .popup__title{
    display: flex;
    align-self: center;
    text-align: center;
}

#popup__credit_success{
    margin: auto;
}
@media (max-width: 1400px) {
    .block-product{
        min-width: 23rem;
    }
    .popup__credit .btn-submit  {
        max-width: 20rem;
    }
    .popup__credit .credit-form-wrapper{
        gap: 0.5rem;
    }
    #popup__credit_success .popup__body p{
        max-width: 75%;
    }
}
@media (max-width: 1200px) {
    .block-product{
        min-width: 20rem;
    }
    .popup__credit .btn-submit  {
        max-width: 20rem;
    }
    .popup__credit .credit-form-wrapper{
        gap: 0.5rem;
    }
    .popup__credit .price-month{
        font-size: 38px;
    }
}
@media (max-width: 1024px) {
    #popup__credit{
        max-width: 100%;
        /*top: -22rem;*/
        height: 100vh;
    }
    .popup__credit .btn-submit  {
        max-width: 20rem;
    }

    .popup__credit .credit-form-wrapper .uk-form-controls  {
        gap: 1rem;
    }
    .block-product{
        min-width: 18rem;
    }
    .popup__credit .credit-form-wrapper{
        gap: 1rem;
    }
    #popup__credit_success .popup__body p{
        max-width: 75%;
    }

}

@media (max-width: 992px) {
    .block-scroll{
     gap: 1rem;
    }
    .popup__credit .btn-submit  {
        max-width: 20rem;
    }

    .pop_credit_class_ul{
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1.3rem;
    }
    #popup__credit_success .popup__body p{
        max-width: 65%;
    }
}

@media (max-width: 767px) {
    .block-product{
        min-width: 16rem;
    }
    .popup__credit .price-month{
        font-size: 24px;
    }
    .popup__credit .credit-form-wrapper{
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }
    .popup__credit .credit-form-wrapper .uk-form-controls {
        width: 100%
    }
}

@media (max-width: 668px) {
    .block-scroll {
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }
    .block-product{
        width: 100%;
    }
    .block-product .img{
        display: flex;
        justify-content: center;
    }
}


@media (max-width: 412px) {
    .fancybox__content{
        padding: 16px;
    }
}

@media (max-width: 400px) {
    .pop_credit_class_ul {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}




