/* ==================================================
   Shared Review Lists / Cards / Feedback
================================================== */

.title-detail-rating-message {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
}

.title-detail-rating-message.is-success {
    color: #8ce6b8;
}

.title-detail-rating-message.is-error {
    color: #ff9d64;
}

.title-detail-reviews-panel {
    margin-top: 14px;
}

.title-detail-reviews-list {
    display: grid;
    gap: 12px;
}

.title-detail-empty-review-card {
    width: 100%;
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: #171315;
    color: rgba(246, 235, 223, 0.7);
    font: inherit;
    line-height: 1.7;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.title-detail-empty-review-card strong {
    color: #fff7ed;
    font-size: 13px;
    font-weight: 900;
}

.title-detail-empty-review-card span {
    color: rgba(246, 235, 223, 0.58);
    font-size: 12px;
    font-weight: 800;
}

.title-detail-empty-review-card.is-clickable {
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.title-detail-empty-review-card.is-clickable:hover,
.title-detail-empty-review-card.is-clickable:focus-visible {
    border-color: rgba(244, 196, 48, 0.22);
    background: #1d1719;
    transform: translateY(-1px);
}

.title-detail-review-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "avatar body";
    direction: rtl;
    align-items: start;
    gap: 14px;
    min-height: 86px;
    padding: 14px 14px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    background: #171315;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.title-reviews-page-shell .title-detail-review-card.is-full-review-card {
    display: block;
    min-height: 0;
    padding: 18px 16px 20px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.title-detail-review-rating {
    position: absolute;
    top: 16px;
    left: 16px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff8ef;
    direction: ltr;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    justify-self: end;
}

.title-detail-review-rating::before {
    content: "★";
    color: #f4b24a;
    font-size: 11px;
    line-height: 1;
}

.title-reviews-page-shell .title-detail-review-card.is-full-review-card .title-detail-review-rating {
    position: static;
    inset: auto;
    align-self: start;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff8ef;
    direction: ltr;
    justify-self: auto;
}

.title-reviews-page-shell .title-detail-full-review-rating {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-start: 16px;
    z-index: 1;
}

.title-detail-review-body {
    grid-area: body;
    min-width: 0;
    display: grid;
    gap: 5px;
    padding-left: 58px;
    text-align: right;
}

.title-reviews-page-shell .title-detail-review-card.is-full-review-card .title-detail-review-body {
    padding-left: 0;
    margin-top: 12px;
}

.title-detail-review-avatar {
    grid-area: avatar;
    align-self: start;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    border: 1px solid rgba(242, 90, 0, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(135deg, rgba(242, 90, 0, 0.32), rgba(255, 255, 255, 0.05));
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    justify-self: start;
    overflow: hidden;
    transform: translateY(-3px);
}

.title-reviews-page-shell .title-detail-review-card.is-full-review-card .title-detail-review-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}

.title-detail-review-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.title-detail-review-avatar:is(a) {
    color: inherit;
    text-decoration: none;
}

.title-detail-review-avatar:is(a):hover,
.title-detail-review-avatar:is(a):focus-visible {
    border-color: rgba(242, 90, 0, 0.48);
    outline: 0;
}

.title-detail-review-author {
    display: grid;
    gap: 2px;
}

.title-detail-review-author h3 {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
}

.title-detail-review-author h3 a {
    color: inherit;
    text-decoration: none;
}

.title-detail-review-author h3 a:hover,
.title-detail-review-author h3 a:focus-visible {
    color: #f25a00;
    outline: 0;
}

.title-reviews-page-shell .title-detail-full-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.title-reviews-page-shell .title-detail-full-review-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-detail-review-author-date {
    color: #8e8178;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.title-detail-review-body p {
    margin: 0;
    color: #d0c6bd;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    max-width: 100%;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.title-detail-review-card.is-featured-review-card .title-detail-review-body p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.title-reviews-page-shell .title-detail-review-card.is-full-review-card .title-detail-review-body p {
    display: block;
    overflow: visible;
    color: #d1c7c0;
    font-size: 13px;
    line-height: 1.75;
    -webkit-line-clamp: unset;
}


@media (min-width: 768px) {
    .title-detail-reviews-list {
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .title-reviews-page-shell .title-detail-reviews-list {
        grid-template-columns: 1fr;
    }

    .title-detail-review-card {
        min-height: 100px;
        padding: 16px 18px;
    }
}
