/* ========= Общий блок отзывов (обёртка) ========= */

.msb-comments-wrapper{
    max-width: 720px;
    margin: 24px auto;
    padding: 24px 20px 28px;
    background: #181818;
    color: #e8eaed;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}

.msb-comments-title{
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* ========= Блок сортировки ========= */

.msb-sort-bar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.msb-sort-label{
    font-size: 0.9rem;
    color: #9aa0a6;
}

.msb-sort-chips{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msb-sort-chip{
    border-radius: 999px;
    border: 1px solid #3c4043;
    background: #202124;
    color: #e8eaed;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.msb-sort-chip:hover{
    border-color: #5f6368;
    background: #292a2d;
}

.msb-sort-chip--active{
    background: #1a73e8;
    border-color: #1a73e8;
    color: #ffffff;
}

/* Разделитель между списком и формой */
.msb-divider{
    margin: 20px 0 16px;
    border-bottom: 1px solid #3c4043;
}

/* ========= Список отзывов ========= */

.msb-comments-list{
    border-top: 1px solid #3c4043;
}

.msb-comment-card{
    padding: 16px 0;
    border-bottom: 1px solid #3c4043;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========= Шапка карточки ========= */

.msb-comment-header{
    display: flex;
    align-items: center;
    gap: 10px;
}

.msb-comment-avatar img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.msb-comment-author-meta{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msb-comment-author-name{
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8eaed;
}

.msb-comment-subline{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #9aa0a6;
}

.msb-comment-sub-rating .msb-stars{
    font-size: 0.8rem;
    color: #fbbc04;
}

.msb-dot{
    opacity: 0.7;
}

/* ========= Доп. чипы (страна, услуга) ========= */

.msb-comment-extra{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.msb-comment-chip{
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #202124;
    border: 1px solid #3c4043;
    font-size: 0.78rem;
    color: #e8eaed;
}

/* ========= Текст отзыва ========= */

.msb-comment-content{
    margin-top: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e8eaed;
}

/* ========= Низ карточки (лайк / шэр) ========= */

.msb-comment-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.msb-icon-btn{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 0;
}

.msb-icon-btn:hover{
    color: #e8eaed;
}

.msb-icon-heart{
    font-size: 1rem;
}

.msb-icon-share{
    font-size: 0.95rem;
    transform: translateY(-1px);
}

.msb-like-count{
    font-size: 0.8rem;
}

/* ========= Звёзды ========= */

.msb-stars{
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ========= Форма отзыва ========= */

.msb-comment-form{
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msb-form-title{
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.msb-form-row{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.msb-form-row-compact .msb-form-field{
    flex: 1 1 0;
}

.msb-form-field{
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 100%;
}

.msb-form-field-full{
    flex-basis: 100%;
}

.msb-form-field label{
    font-size: 0.8rem;
    color: #9aa0a6;
}

.msb-comment-form input[type="text"],
.msb-comment-form input[type="email"],
.msb-comment-form select,
.msb-comment-form textarea{
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #3c4043;
    background: #202124;
    color: #e8eaed;
    font-size: 0.9rem;
    outline: none;
}

.msb-comment-form input::placeholder,
.msb-comment-form textarea::placeholder{
    color: #9aa0a6;
}

.msb-comment-form input:focus,
.msb-comment-form textarea:focus,
.msb-comment-form select:focus{
    border-color: #1a73e8;
}

.msb-rating-row{
    display: flex;
    align-items: center;
    gap: 6px;
}

.msb-rating-stars{
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.msb-rating-stars input{
    display: none;
}

.msb-rating-stars label{
    cursor: pointer;
    font-size: 1.2rem;
    color: #5f6368;
    transition: color 0.15s ease;
}

.msb-rating-stars input:checked ~ label,
.msb-rating-stars label:hover,
.msb-rating-stars label:hover ~ label{
    color: #fbbc04;
}

/* Кнопка отправки */

.msb-comment-form .submit{
    margin-top: 4px;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: #1a73e8;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
}

.msb-comment-form .submit:hover{
    background: #1765c1;
}

/* ========= Гриды отзывов для шорткодов ========= */

.msb-reviews-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.msb-top-reviews-grid .msb-review-card{
    border-left: 3px solid #1a73e8;
}

/* Карточки в сетках */

.msb-review-card{
    padding: 14px 16px;
    border-radius: 14px;
    background: #202124;
    border: 1px solid #3c4043;
}

.msb-review-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.msb-review-author{
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8eaed;
}

.msb-review-rating .msb-stars{
    font-size: 0.9rem;
    color: #fbbc04;
}

.msb-review-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.msb-review-country,
.msb-review-service{
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #181818;
    border: 1px solid #3c4043;
    font-size: 0.78rem;
    color: #e8eaed;
}

.msb-review-content{
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========= Адаптив ========= */

@media (max-width: 600px){
    .msb-comments-wrapper{
        margin: 16px auto;
        padding: 18px 14px 20px;
        border-radius: 14px;
    }

    .msb-comment-card{
        padding: 12px 0;
    }

    .msb-review-card{
        padding: 12px 12px;
    }
}
