/* Database-backed public reviews and media */

.reviews-page-lead > :first-child {
    margin-top: 0;
}

.reviews-page-lead > :last-child {
    margin-bottom: 0;
}

.review-media__image,
.review-media__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.review-media__video {
    position: relative;
    z-index: 3;
    background: #06142f;
}

.review-media__external {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
}

.review-media__external .ph-img {
    width: 100%;
    height: 100%;
}

.review-card.video:has(.review-media__video) {
    cursor: default;
}

.review-card .review-text.prosekit-content {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.review-card.video .review-text.prosekit-content {
    color: rgba(255, 255, 255, 0.85);
}

.review-card .review-text.prosekit-content > :first-child {
    margin-top: 0;
}

.review-card .review-text.prosekit-content > :last-child {
    margin-bottom: 0;
}

.review-card .review-text.prosekit-content p {
    margin: 0 0 10px;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.review-card .review-text.prosekit-content p:last-child {
    margin-bottom: 0;
}

.reviews-grid.is-loading {
    min-height: 220px;
    opacity: 0.48;
    pointer-events: none;
}

.reviews-load-more-wrap {
    min-height: 90px;
    padding-top: 40px;
    text-align: center;
}

.reviews-load-more-wrap [hidden] {
    display: none !important;
}

[data-reviews-load-more].is-loading {
    cursor: wait;
    opacity: 0.65;
    pointer-events: none;
}

.reviews-public-empty,
.reviews-public-message {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--slate);
    line-height: 1.5;
    text-align: center;
}

.reviews-public-empty[hidden],
.reviews-public-message[hidden] {
    display: none;
}

.reviews-public-message.is-error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #991b1b;
}

@media (max-width: 600px) {
    .reviews-load-more-wrap {
        padding-top: 28px;
    }

    .reviews-load-more-wrap .btn {
        width: 100%;
        justify-content: center;
    }
}
