/* Простейшие стили для отзывов */
#myModal2 {
    top: 20px;
}


.review-task-wrapper {
    font-weight: 500;
    font-size: 14px;
}


.review-task-completed {
    color: #f85c70;
}


/* =========================================================
   ОТЗЫВЫ — КОЛИЧЕСТВО / ПОЛОЖИТЕЛЬНЫЕ / ОТРИЦАТЕЛЬНЫЕ
   ========================================================= */

.rating-counts {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
}


/* Общий стиль */
.rating-counts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


/* Иконки */
.rating-counts .review-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}


/* Положительные */
.rating-counts .positive {
    color: #2e7d32;
}


/* Цвет иконки Like */
.rating-counts .review-icon.like {
    filter: brightness(0) saturate(100%)
            invert(34%) sepia(89%) saturate(394%)
            hue-rotate(83deg) brightness(92%) contrast(88%);
}


/* Отрицательные */
.rating-counts .negative {
    color: #c62828;
}


/* Цвет иконки Dislike */
.rating-counts .review-icon.dislike {
    filter: brightness(0) saturate(100%)
            invert(26%) sepia(79%) saturate(3035%)
            hue-rotate(347deg) brightness(90%) contrast(96%);
}


/* =========================================================
   КОЛИЧЕСТВО ОТЗЫВОВ
   ========================================================= */

.reviews-e {
    color: #23478e;
    margin-top: 4px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}


.reviews-list {
    margin-top: 30px;
}


.review-item {
    margin-bottom: 15px;
    display: flex;
}


.review-user-avatar {
    margin-right: 10px;
}


.review-content {
    max-width: 800px;
    padding-left: 50px;
}


.review-item p {
    margin: 5px 0;
}


/* =========================================================
   ЗВЕЗДЫ
   ========================================================= */

.stars-container {
    font-size: 24px;
    cursor: pointer;
}


.star {
    color: #ccc;
    transition: color 0.2s;
}


.star.selected {
    color: #FFB400;
}


.star:hover {
    color: #FFB400;
}


/* =========================================================
   РЕЙТИНГ
   ========================================================= */

.rating-stars {
    font-size: 19px;
    color: #FFB400;
    letter-spacing: 1px;
    display: inline-block;
}


.numeric-rating {
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    min-width: 20px;
}


/* =========================================================
   ОБЩИЙ КОНТЕЙНЕР ФОРМЫ
   ========================================================= */

#myModal2 .plugin-review-form {
    margin: 0px auto;
}


.plugin-review-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}


/* Заголовок формы */
.plugin-review-form p {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #111827;
}


/* Поле ввода отзыва */
.plugin-review-form textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
}


#review_text {
    color: #646464;
}


/* Контейнер звезд */
.stars-container {
    display: flex;
    gap: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    margin: 10px 0;
}


/* Активные звезды */
.stars-container .star {
    transition: color 0.3s ease;
}


.stars-container .star.active {
    color: #ccc;
}


.stars-container .star:hover {
    color: #FFB400;
}


.stars-container .star:hover ~ .star {
    color: #ccc;
}


/* Кнопка отправки */
input[type="submit"] {
    background: #0a84ff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
    margin-top: 15px;
}


input[type="submit"]:hover {
    background: #005dd8;
}


/* Скрытый input для рейтинга */
input[type="hidden"] {
    display: none;
}


/* =========================================================
   СПИСОК ОТЗЫВОВ
   ========================================================= */

.reviews-list {
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
/* 	border: 1px solid rgba(var(--rtcl-primary-rgb),.2); */
}


/* Отдельный отзыв */
.review-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 30px 15px 30px;
    border-bottom: 1px solid #ddd;
}


.review-item:last-child {
    border-bottom: none;
}


/* Аватар пользователя */
.review-user-avatar {
    flex-shrink: 0;
    margin-right: 15px;
}


.review-user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffa488;
}


.star-reaw {
    font-size: 18px;
    color: #ffb400;
}


.reaw-s {
    font-weight: 500;
}


/* Контент отзыва */
.review-content {
    flex-grow: 1;
}


.review-content p {
    margin: 5px 0;
    font-size: 14px;
}


.review-content strong {
    color: #333;
    font-size: 16px;
}


/* Дата и время */
.review-content p:first-child {
    font-size: 14px;
    color: #646464;
}


/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #ff6600;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}


.pagination a:hover {
    background: #e65c00;
}


.pagination .current {
    background: #333;
}


/* =========================================================
   УВЕДОМЛЕНИЯ
   ========================================================= */

.review-left {
    margin: 20px auto;
    padding: 15px;
    background: #ebffec;
    border-radius: 8px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    color: #4cab20;
}


.review-danger {
    margin: 20px auto;
    padding: 15px;
    background: #fee6e8;
    border-radius: 8px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
    color: #842029;
}


/* =========================================================
   БЛОК РЕЙТИНГА / ОТЗЫВОВ
   ========================================================= */

.rating-reviews-wrapper-container {
    padding-left:0px;
}


.rating-reviews {
    font-size: 14px;
    font-weight: 600;
    color: #23478e;
    font-family: Nunito, sans-serif;
}


/*
 * Главная строка:
 * Сын-пикирлери 5   👍 4   👎 1
 */
.rating-reviews-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
}


/*
 * Блок лайк / дизлайк находится
 * в той же строке, что и количество отзывов
 */
.rating-reviews-wrapper .rating-counts {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

@media (max-width: 767px) {

    .rating-reviews-wrapper {
        justify-content: center;
        text-align: center;
    }

}

/* =========================================================
   СТАРЫЕ СТИЛИ РЕЙТИНГА
   Оставляем для других мест сайта
   ========================================================= */

.rating-stars-rewive {
    margin-left: 5px;
    font-size: 22px;
    color: #FFB400;
    margin-top: 3px;
}


.rating-e {
    font-size: 19px;
    color: #222;
    font-weight: 500;
    margin-top: 7px;
}


.rtcl-icon.rtcl-icon-calendar-1 {
    color: #888;
    margin-right: 4px;
}


/* =========================================================
   LOAD MORE
   ========================================================= */

#load_more_reviews {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background: #6fc727;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
}


#load_more_reviews:hover {
    background: #5ab82e;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 767px) {

    .rating-reviews-wrapper-container {
        padding-left: 8px;
    }

    .rating-reviews-wrapper {
        gap: 10px;
    }

    .rating-reviews-wrapper .rating-counts {
        gap: 10px;
    }

    .reviews-e {
        font-size: 14px;
    }

    .rating-counts {
        font-size: 14px;
		font-weight: 500;
    }

    .rating-counts .review-icon {
        width: 19px;
        height: 19px;
    }
}


/* =========================================================
   НОВЫЙ БЛОК ОТЗЫВОВ
   ========================================================= */

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px 15px;
    border-bottom: 1px solid #ddd;
}


.review-avatar-column {
    flex: 0 0 auto;
}


.review-info-column {
    flex: 0 0 auto;
}


.review-content-column {
    flex: 1 1 auto;
}


.review-avatar-column img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffa488;
}


.review-info-column p {
    margin: 0;
    font-size: 14px;
    color: #333;
}


.star-reaw {
    font-size: 18px;
    color: #ffb400;
}


.reaw-s {
    font-weight: 500;
}


.review-content-column p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}


.review-text-block {
    font-size: 14px;
}


.review-content-column strong {
    font-size: 16px;
    color: #333;
}


.review-info-column i.rtcl-icon-calendar-1 {
    color: #888;
    margin-right: 4px;
}


.review-author-info {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}


.review-user-role {
    font-size: 12px;
    color: #6fc727;
    margin-top: 10px;
    line-height: 1;
    font-weight: 500;
}


/* =========================================================
   ДЕСКТОПНАЯ ВЕРСИЯ
   ========================================================= */

@media (min-width: 768px) {

    .review-item {
        flex-direction: row;
    }


    /* убираем контейнер */
    .review-top-row {
        display: contents;
    }


    .review-info-column {
        min-width: 180px;
        padding: 8px 12px;
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }


    .review-content-column {
        margin-left: 30px;
    }


    .review-info-column p {
        line-height: 1.3;
    }


    .review-user-role {
        font-size: 12px;
        margin-top: 15px;
    }
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ ОТЗЫВОВ
   ========================================================= */

@media (max-width: 767px) {

    .review-item {
        flex-direction: column;
        padding: 15px 10px;
    }


    .review-top-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }


    .review-avatar-column img {
        width: 50px;
        height: 50px;
    }


    .review-content-column {
        margin-top: 8px;
    }
}


/* =========================================================
   СООБЩЕНИЯ
   ========================================================= */

.rrp-notice {
    margin-bottom: 18px;
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f0f9ff;
    color: #065f46;
    border: 1px solid #a7f3d0;
}


.rrp-notice.error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}


.rrp-notice.success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}


/* =========================================================
   LOGIN ALERT
   ========================================================= */

.login-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}


.login-alert-modal {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}


#login-alert-close {
    margin-top: 15px;
    padding: 8px 20px;
    background: #6fc727;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


#login-alert-close:hover {
    background: #5ab82e;
}