#return-of-goods {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 97%;
    max-width: 920px;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    padding: clamp(15px, 3vw, 25px);
    border-radius: 10px;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
    font-size: 16px;
    box-shadow: 0px 14px 35px 0px rgba(190, 190, 190, 0.25); 
    z-index: 1000;
}
#return-of-goods.active {
    display: flex !important;
    flex-direction: column;
}

#return-of-goods.active + .modal-overlay {
    display: block;
}
#return-of-goods .modal-close {
    top: 17px;
    right: 17px;
}
.return-of-goods__title {
    margin-top: 4px;
    margin-bottom: 20px;
    color: #000;
    font-family: Neris;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 900;
    line-height: normal; 
}

#return-of-goods form {
    width: 100%;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    overflow-y: auto;
}

.return-of-goods__list {
    counter-reset: item;
    list-style: none;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.return-of-goods__item {
    padding: 13px clamp(10px, 3vw, 24px);
    display: flex;
    column-gap: 7px;
    border-radius: 5px;
    background: #F8F8F8;
}
.return-of-goods__item::before {
    margin-top: 28px;
    counter-increment: item;
    content: counter(item) ".";
    flex: 0 0 26px;
    color: #000;
    font-family: Neris;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 900;
    line-height: normal; 
}
.return-of-goods__item .item__wrapper {
    flex: auto;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}
.return-of-goods__item .form-grid {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    column-gap: clamp(10px, 2.5vw, 17px);
}

#return-of-goods .form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 6px;
}
#return-of-goods .form-group label {
    color: #000;
    font-family: Neris;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
}
#return-of-goods .form-group input,
#return-of-goods .form-group select,
#return-of-goods .form-group textarea {
    padding: 7px 10px;
    width: 100%;
    border-radius: 5px;
    border: 0;
    background: #E0E0E0;
    color: #000;
    font-family: Neris;
    font-size: 14px;
    font-weight: 300;
    line-height: normal; 
}
#return-of-goods .form-group select {
    cursor: pointer;
}
#return-of-goods .form-group textarea {
    resize: none;
    height: 66px;
}

#return-of-goods .buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
}

@media screen and (max-width: 768px) {
    .return-of-goods__item .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    #return-of-goods .field-name-product {
        grid-row: 1;
        grid-column: 1/-1;
    }
    #return-of-goods .field-article-product {
        grid-row: 2;
    }
    #return-of-goods .field-count-product {
        grid-row: 2;
    }
}

@media screen and (max-width:414px) {
    #return-of-goods .buttons {
        flex-direction: column;
    }
}