/* Фон модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #21212c;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 722px;
    height: auto;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal-btn:hover {
    color: #f6a623;
}

.title-review {
    margin-bottom: 15px;
    font-size: 1.2vw;
}

.text-review {
    font-size: 0.8vw;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 1792px) {
    .title-review {
        font-size: 2vw;
    }

    .text-review {
        font-size: 1.2vw;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 1250px) {
    .title-review {
        font-size: 2.5vw;
    }

    .text-review {
        font-size: 1.5vw;
    }
}

@media (max-width: 1200px) {
    .title-review {
        font-size: 2.2vw;
    }

    .text-review {
        font-size: 1.2vw;
    }
}

@media (max-width: 991px) {
    .title-review {
        font-size: 3.5vw;
    }

    .text-review {
        font-size: 2.5vw;
    }
}

@media (max-width: 768px) {
    .title-review {
        font-size: 4vw;
    }

    .text-review {
        font-size: 3vw;
    }
}

@media (max-width: 480px) {
    .title-review {
        margin-bottom: 15px;
        font-size: 5vw;
    }

    .text-review {
        font-size: 4vw;
        margin: 0
    }

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

@media (max-width: 430px) {
    .title-review {
        margin-bottom: 15px;
        font-size: 4vw;
    }

    .text-review {
        font-size: 3vw;
        margin: 0
    }
}

@media (max-width: 396px) {
    .title-review {
        margin-bottom: 15px;
        font-size: 4vw;
    }

    .text-review {
        font-size: 2.5vw;
        margin: 0
    }

    .modal-title {
        font-size: 18px;
    }
}

.modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #fdfdfb;
    margin-bottom: 20px;
}

/* Общий стиль для модального окна */
.container-modal {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 722px;
    background: #252525;
    box-shadow: 4px 25px 25px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
}

/* Заголовок окна */
.container-modal h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
}

/* Секция с комментариями */
.review-comments-modal {
    background: #2B2B2B;
    box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* Единичный комментарий */
.single-review-comment-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Изображение пользователя */
.single-review-comment__image-modal {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #373737;
    border-radius: 50%;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-review-comment__image-modal img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Контент комментария */
.single-review-comment__content-modal {
    flex-grow: 1;
}

.review-time {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #AAAAAA;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-time i {
    color: #AAAAAA;
    font-size: 16px;
}

.rating-modal {
    display: flex;
    margin-bottom: 8px;
}

.rating-modal i {
    font-size: 14px;
    color: #f6a623;
    margin-right: 3px;
}

.rating-modal i.inactive {
    color: #555555;
}

.review-text-modal {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-align: justify;
}