/*.profile__right{*/
/*    margin-top: -71px;*/
/*}*/
/*.profile__form-main{*/
/*    padding-top: 37px;*/
/*}*/
.profile{
    padding: 0 0 40px 0;
}
.profile__left-wrapper{
    height: max-content;
    position: sticky;
    gap: 40px;
    display: flex;
    flex-direction: column;
    top: 100px;
}
.profile__category{
    position: static;
}
.profile__category-link{
    display: flex;
    align-items: center;
    justify-content: left;
     gap: 8px;
}
.profile__form-notification{
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Montserrat-medium',sans-serif;
    font-size: 12px;
    text-align: center;
    display: none;
    margin-bottom: 37px;
    margin-top: -71px;
}
.popup-profile-error{
    margin-top: 32px;
}



.profile__form-notification.success{
    display: block;
    background: #c0e7ac;
    color: #1F1F1F;
}
.profile__form-notification.error{
    display: block;
    background: #ff8181;
    color: #FFFFFF;
}
.profile__category-link svg{
    width: 19px;
    height: 19px;
}
.profile__category-link svg path{
    transition: all .2s;
}

.profile__category-item:hover .profile__category-link svg path{
    stroke: #B3B3B3;
}
.profile__category-item:hover .profile__category-link svg circle{
    stroke: #B3B3B3;
}
.profile__category-item.active .profile__category-link svg path{
    stroke: #1F1F1F;
}
.profile__category-item.active:hover .profile__category-link svg circle{
    stroke: #1F1F1F;
}
.profile__category-item.active .profile__category-link{
    color: #1F1F1F;
}

.profile__title{
    font-family: 'Montserrat-medium', sans-serif;
    font-size: 24px;
    margin-bottom: 32px;
}
.profile__addresses{
    display: flex;
    flex-direction: column;
    gap: 32px;

}
.profile__address-block{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.profile__address-actions{
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.profile__address-btn{
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}
.profile__address-btn-add{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 5px 0 ;
}

.profile__form-block-parameters.open{
    margin-bottom: 32px;
}

.profile__form-btn{
    margin-top: 80px;
    width: 100%;
}

.profile__category-item:nth-child(5){
    border-bottom: none;
}
.profile__category-item:last-child{
    background-color: #F4F4F4;
    border-radius: 8px;
}
.profile__category-item-six{
    transition: all .2s;
    background-color: #F4F4F4;
    border-radius: 8px;
}
.profile__category-item-six:hover{
    background-color: #B3B3B3;
    color: white;
}
.profile__category-item-six .profile__category-link{
    transition: all .2s;
}
.profile__category-item-six:hover .profile__category-link{
    color:#FFF;
}


.bonus-card{
    position: relative;
    padding: 19px 25px 19px 17px;
    border-radius: 8px;
    width: 361px;
    height: 189px;
    background-color: #1F1F1F;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
}
.bonus-card__top{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.bonus-card__name{
    font-size: 16px;
    max-width: 125px;
    line-height: 140%;
}
.bonus-card-wrapper{
    display: flex;
    gap: 25px;
}
.bonus-card__percent{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bonus-card__percent-name{
    font-size: 10px;
    color: #B3B3B3;
}
.bonus-card__percent-amount{
    font-size: 20px;
}
.bonus-card__bottom{
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #B3B3B3;
}
.bonus-card__logo{
    position: absolute;
    bottom: 19px;
    right: 13px;
}
.profile__right{
    display: flex;
    flex-direction: column;
}
.address-popup__content{
    width: 447px;
    height: calc(100vh - 57px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE 10+ */
}
.address-popup__content::-webkit-scrollbar {
    display: none;
}
.address-popup__btn{
    margin-bottom: 20px;
}
.popup-address-button-close{
    position: absolute;
    top: 4px;
    right: 0;
}
.address-popup__form{
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.address-popup__form-wrapper{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.profile-orders__info-tags{
    display: flex;
    gap: 8px;
}
.profile-orders__tag{
    padding: 14px 12px;
    font-size: 14px;
    color: #1F1F1F;
    border-radius: 8px;
    background-color: #FFFFFF;
}
.orders__tag-waiting{
    background-color: #FFFFFF;
    color: #FF8C8C;
}
.check-status-nopayment{
    color: #FF8C8C;
}
.check-status-payment{
    color: #95B684;
}
.orders__tag-transit{
    color: #FFFFFF;
    background-color: #FFB580;
}
.orders__tag-return{
    color: #FFFFFF;
    background-color: #FF8A80;
}
.orders__tag-delivered{
    color: #FFFFFF;
    background-color: #9CCF82;
}
.profile__title-wrapper{
    display: flex;
    gap: 6px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.profile__orders-amount{
    font-size: 12px;
    color: #B3B3B3;
    padding-bottom: 5px;
}
.orders__title{
    margin-bottom: 0;
}
.profile-orders__list{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
.profile-orders__item{

    background-color: #F4F4F4;
    border-radius: 8px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.profile-orders__info{
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;

    position: relative;
}
.profile-orders__payment-button {
    width: 255px;
}
.profile-orders__payment-button .btn-black {
    width: 100%
}
.profile-orders__info-left{
    display: flex;
    gap: 35px;
}
.profile-orders__info-name-wrapper{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-orders__info-name{
    font-family: 'Montserrat-medium',sans-serif;
    font-size: 20px;
}
.profile-orders__info-date{
    font-size: 14px;
    color: #5B5B5B;
}
.profile-orders__info-link{
    position: absolute;
    top: 9px;
    right: 0;
    font-size: 15px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.profile-orders__info-link svg path{
    transition:  .2s;
}
.profile-orders__info-link:hover svg path{
    fill: #5B5B5B;
}
.profile-orders__info-link:hover{
    color: #5B5B5B;
}

.profile-orders__images{
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.profile-orders__img{
    border-radius: 8px;
    width: 147px;
    height: 205px;
}
.profile-orders__images-more{
    max-width: 59px;
    font-size: 10px;
    color: #5B5B5B;
    align-self: center;
}
.profile-orders__button{
    margin-bottom: 32px;
}
.orders__pagination{
    align-self: center;
    margin-top: 0;
}
.order-detail__info{
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}
.order-detail__top{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.order-detail__bottom{
    display: flex;
    gap: 83px;
    justify-content: space-between;
    width: 100%;
}
.order-detail__client{
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
}
.order-detail__client-wrapper{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.order-detail__client-address{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.order-detail__check{
    border-radius: 6px;
    padding: 24px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 273px;
    flex: 0 0 auto;
}
.order-detail__check-status{
    font-family: 'Montserrat-medium',sans-serif;
    font-size: 14px;
}
.order-detail__check-info-wrapper{
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}
.order-detail__check-info{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.order-detail__check-info-bonus{
    border-radius: 8px;
    padding: 4px 8px;
    width: 57px;
    color: #ffffff;
    display: flex;
    align-items: center;

    font-size: 14px;
}
.order-detail__check-info-bonus.bonus-plus{
    background-color: #95B684;
}
.order-detail__check-info-bonus.bonus-minus{
    background-color: #FF9090;
}
.order-detail__check-total{
    display: flex;
    justify-content: space-between;

    font-family: 'Montserrat-medium',sans-serif;
    font-size: 14px;
}

.order-detail__product__sizes{
    font-size: 10px;
    color: #B3B3B3;
    margin-top: 8px;
}
.order-detail__products{
    display: flex;
    flex-direction: row;
    row-gap: 32px;
    column-gap:8px;
    flex-wrap: wrap ;
    /*justify-content: center;*/
}
.order-detail__product{
    width: 24%;
}

.order-detail__product .product__name{
    font-size: 12px;
}
.order-detail__product .product__price{
    font-size: 12px;
}
.order-detail-prev-link{
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-detail__orders-list{
    margin-bottom: 0;
}
.bonus-card__right{
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 926px;
}
.bonus-card__info-block{
    display: flex;
    flex-direction: column;
    /*gap: 32px;*/
}

.bonus-card__info-text-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 140%;
    text-transform: none;

}
.bonus-card__info-text{
    position: relative;
    padding-left: 14px;
}

.bonus-card__info-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 3px;
    height: 3px;

    background-color: black;
    border-radius: 50%;
}

.bonus-card__table{
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 130%;
    text-align: center;
    max-width: 643px;
}
.bonus-card__table-row{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.bonus-card__table-row-title{
    border-bottom: 1px solid #F4F4F4;
    color: #5B5B5B;
}
.bonus-card__table-coll{
    padding: 15px;
}
.bonus-card__table-row .bonus-card__table-coll{
    border-right: 1px solid #F4F4F4;
}
.bonus-card__table-row .bonus-card__table-coll:last-child{
    border-right: none;
}

.faq-items__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-items__list-item {
    cursor: pointer;
    padding: 27px;
    border-radius: 8px;
    background: #F1F1F1;
}
.faq-items__list-item-question {
    font-size: 18px;
    color: #1F1F1F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.faq-items__list-item-text {
    margin-top: 16px;

    color: #1F1F1F;

    font-size: 16px;
    line-height: 140%;
    text-transform: none;
}
.faq-items__list-item-question  span{
    max-width: 781px;
}
.faq-items__list-item-question  svg{
    transition: .3s;
}
.faq-items__list-item-text {
    display: none;
}
.faq-items__list-item svg {
    transition: transform 0.3s ease;
}

.faq-items__list-item.active-faq svg {
    transform: rotate(180deg);
}


    @media screen and (max-width: 1378px){
    .profile-orders__img{
        width: 75px;
        height: 105px;
    }
    .profile-orders__info-left{
        gap: 20px;
    }

}

@media screen and (max-width: 1198px){
    .profile__category{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin-right: -20px;
        margin-left: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .profile__category-item{
        flex: 0 0 auto;
    }
    .profile__category-item:nth-child(1){
        order: 3;
    }
    .profile__category-item:nth-child(2){
        order: 2;
    }
    .profile__category-item:nth-child(3){
        order: 4;
    }
    .profile__category-item:nth-child(4){
        order: 5;
    }
    .profile__category-item:nth-child(5){
        order: 1;
    }
    .profile__category-item:nth-child(6) {
        order: 6;
        background-color: transparent;
        align-self: center;
    }

    .profile__category-link{
        padding: 19px 12px;
        font-size: 10px;
    }
    .profile__category-link svg{
        width: 13px;
        height: 13px;
    }
    .contacts__category-item:not(:last-child){
        border-bottom:none;
        background-color: #F4F4F4 ;
        border-radius: 8px;
    }
    .profile__category-item:last-child{
       border: 1px solid #5B5B5B;
    }
    .profile__category-item.active{
       background-color: #DBDBDB;
    }
    .profile__body{
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
        padding-top: 24px;
        gap: 40px;
    }
    .profile__title{
        font-size: 18px;
        margin-bottom: 24px;
    }

    .profile__addresses{
        font-size: 14px;
    }
    .profile__address-btn-add{
        margin-top: 8px;
        padding: 15px 0;
        font-size: 12px;
    }
    .profile__form-btn{
        margin-top: 40px;
    }
    .profile__address{
        line-height: 130%;
    }

    .profile__address-actions{
        gap: 0;
    }
    .bonus-card{
        display: none;
    }
    .bonus-card-page{
        display: flex;
    }
    .address-popup__content{
        width: unset;
        height: 100%;
    }
    .popup-address-button-close{
        width: 32px;
        height: 32px;
        top: 0;
    }
    .popup-address-button-close svg{
        width: 13px;
        height: 13px;
    }
    .address-popup__form-wrapper{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 1fr);
        column-gap: 32px;
        row-gap: 24px;
    }
    .profile__form-notification{
        margin-top: 5px;
        text-align: center;
    }
    .orders__title{
        margin-bottom: 0;
    }
}

@media screen and (max-width:998px){
    .profile-orders__item{
        padding: 20px;
        gap: 20px;
    }
    .profile-orders__info-name{
        font-size: 14px;
    }
    .profile-orders__info-date{
        font-size: 12px;
    }
    .profile-orders__tag{
        font-size: 10px;
        padding: 12px;
    }
    .profile-orders__info-link{
        font-size: 12px;
    }
    .profile__title-wrapper{
        display: none;
    }
    .order-detail__client{
        font-size: 12px;
    }
    .order-detail__title-wrapper{
        display: block;
    }
    .order-detail-prev-link{
        font-size: 12px;
    }
    .order-detail__item{
        gap: 32px;
        padding: 40px 20px;
        border-radius: 0;
    }
    .order-detail__orders-list{
        margin-right: -20px;
        margin-left: -20px;
    }
    .bonus-card__body{
        gap: 48px;
    }
    .bonus-card__title{
        margin-bottom: 12px;
    }
    .bonus-card__info-text-list{
        font-size: 14px;
        gap: 14px;
    }
    .bonus-card__right{
        gap: 48px;
    }
    .bonus-card__table{
        margin-top: 10px;
        font-size: 12px;
    }
    .faq-items__list-item-question{
        font-size: 14px;
        line-height: 14px;
    }
    .faq-items__list-item{
        padding: 24px;
    }
    .faq-items__list-item-question svg{
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
    }
    .faq-items__list-item-text{
        font-size: 14px;
    }
    .bonus-card{
        width: 335px;
        padding: 19px;
    }
    .bonus-card__name{
        font-size: 14px;
    }
    .bonus-card__percent-name{
        font-size: 10px;
    }
    .bonus-card__logo{
        width: 68px;
        height: 15px;
    }  }

@media screen and (max-width:866px){
    .order-detail__product{
        width: 24%;
    }
    .order-detail__products{
        column-gap: 10px;
    }
}

@media screen and (max-width:828px){
    .order-detail__product{
        width: 24%;
    }
    .order-detail__products{
        column-gap: 6px;
    }
}
@media screen and (max-width: 640px){
    .profile-orders__info-left{
        flex-direction: column;
    }
    .profile-orders__info{
        align-items: flex-start;
    }
    .order-detail__product{
        width: 48%;
    }
    .order-detail__products{
        column-gap: 5px;
        justify-content: space-between;
        row-gap: 15px;
    }
}
@media screen and (max-width: 572px) {
    .profile__body{
        padding-top: 12px;
    }
    .address-popup__form-wrapper{
        display: grid;
        grid-template-columns: 1fr;
    }
    .order-detail__top{
        flex-direction: column;
        gap: 12px;
    }
    .order-detail__info{
        gap: 24px;
    }
    .order-detail__bottom{
        flex-direction: column;
        gap: 24px;
    }
    .order-detail__check{
        width: 100%;
    }
    .order-detail__item{
        padding: 20px;
    }
    .bonus-card__body{
        gap: 40px;
    }
    .bonus-card__table-row{
        grid-template-columns: 1fr 1fr 1.5fr;
    }
    .bonus-card__table-coll{
        padding: 10px 5px;
    }
    .bonus-card__info-block-table{
        margin-top: 40px;
    }
}