.ozon-reviews {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #001a34;
    margin: 20px 0;
}

.ozon-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- КАРТОЧКА ОТЗЫВА ---------- */
.review-card {
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow .2s ease;
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 26, 52, .08);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
    user-select: none;
    letter-spacing: .5px;
    /* background задаётся inline из PHP */
}
.review-card__meta {
    flex: 1;
    min-width: 0;
}

.review-card__author {
    font-weight: 600;
    font-size: 15px;
    color: #001a34;
}

.review-card__date {
    font-size: 13px;
    color: #8b95a5;
    margin-top: 2px;
}

.review-card__rating {
    color: #ffa726;
    font-size: 14px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.review-card__text {
    font-size: 15px;
    line-height: 1.5;
    color: #001a34;
    margin-bottom: 12px;
    white-space: pre-line;
}

/* ---------- МЕДИА ---------- */
.review-card__media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.media-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    cursor: pointer;
    transition: transform .15s ease;
}

.media-thumb:hover {
    transform: scale(1.03);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb--video {
    background: #001a34;
    color: #fff;
}

.play-icon {
    font-size: 20px;
    opacity: .9;
}

/* ---------- КНОПКА "ПОКАЗАТЬ ЕЩЁ" ---------- */
.ozon-reviews__more {
    display: block;
    margin: 20px auto 0;
    padding: 12px 32px;
    background: #fff;
    border: 1px solid #005bff;
    color: #005bff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ozon-reviews__more:hover {
    background: #005bff;
    color: #fff;
}

/* Скрываем карточки, которые ещё не показаны */
.review-card.is-hidden {
    display: none;
}

/* ---------- POPUP ---------- */
.ozon-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ozon-popup.is-open {
    display: flex;
}

.ozon-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 26, 52, .7);
    cursor: pointer;
}

.ozon-popup__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ozon-popup__body img,
.ozon-popup__body video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    display: block;
}

.ozon-popup__body iframe {
    width: 90vw;
    height: 80vh;
    max-width: 1200px;
    border: 0;
    border-radius: 8px;
}

.ozon-popup__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
}

.media-thumb--video {
    background: linear-gradient(135deg, #001a34 0%, #003a70 100%);
    color: #fff;
}

.media-thumb--video .play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(2px);
}

.ozon-popup__body video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    background: #000;
    display: block;
}

.product-detail .tabs-container .tabs .tab.is-blinking {
    animation: tabBlink 1.2s ease-in-out 5;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    padding: 16px 20px 16px 20px;
    margin-top: -16px;
}

@keyframes tabBlink {
    0%, 100% {
        background-color: transparent;
        color: inherit;
        box-shadow: 0 0 0 0 rgba(26, 59, 102, 0);
    }
    50% {
        background-color: #1a3b66;
        color: #ffffff;
        box-shadow: 0 0 0 8px rgba(26, 59, 102, .35);
    }
}
/* ---------- МОБИЛЬНАЯ АДАПТАЦИЯ ---------- */
@media (max-width: 600px) {
    .review-card {
        padding: 16px;
    }
    .media-thumb {
        width: 72px;
        height: 72px;
    }
    .ozon-popup__close {
        top: -36px;
        font-size: 28px;
    }
}
