.fame-reviews { max-width: 100%; margin: 0px 0 8px; color: #1e293b; }
.fame-reviews *, .fame-reviews *::before, .fame-reviews *::after { box-sizing: border-box; }

.fame-reviews-title { font-size: 20px; font-weight: 700; color: #0f2033; margin: 0 0 16px; }
.fame-reviews-subtitle { font-size: 17px; font-weight: 700; color: #0f2033; margin: 26px 0 14px; }

/* ---- Reviews list ---- */
.fame-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 23px;
}
.fame-rv-empty { color: #7a869a; font-size: 14.5px; padding: 18px 4px; margin: 0; }

.fame-rv-item {
    display: flex;
    width: 100%;
    position: relative;
}
.fame-rv-item.fame-has-shadow::before {
    z-index: 0;
}
.fame-rv-item-wrpin {
    background-color: #F7F8F9;
    box-shadow: 2px 2px 25px rgba(8, 20, 102, 0.08);
    border-radius: 10px;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    padding: 30px;
    position: relative;
}
.fame-rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fame-rv-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #dbe4f0;
    color: #3f5573;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.fame-rv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fame-rv-name {
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    color: #121F3E;
}
.fame-rv-date {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #0063E3;
}
.fame-rv-stars { letter-spacing: 1px; margin-left: 4px; }
.fame-rv-star { color: #d9dee8; font-size: 15px; }
.fame-rv-star.is-on { color: #f6b100; }
.fame-rv-stars .fame-rv-star { color: #d9dee8; }
.fame-rv-stars .fame-rv-star.is-on { color: #f6b100; }
.fame-rv-score { font-weight: 700; color: #16233b; font-size: 14px; }
.fame-rv-text {
    margin: 0;
    width: 100%;
    line-height: 1.7;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #656D7F;
}

.fame-rv-actions {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 20px;
}
.fame-rv-vote, .fame-rv-replybtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: #656D7F;
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
}
.fame-rv-vote svg, .fame-rv-replybtn svg {
    color: #121F3E;
}
.fame-rv-vote:hover, .fame-rv-replybtn:hover { color: #2f6fed; }
.fame-rv-like.is-active { color: #2f6fed; }
.fame-rv-dislike.is-active { color: #e0455a; }

.fame-rv-reply { width: 100%; margin: 12px 0 0 34px; padding: 12px 16px; background: #eef3ff; border-radius: 12px; border: 1px solid #e0e9fb; }
.fame-rv-reply-head { display: flex; align-items: center; gap: 8px; }
.fame-rv-reply-name { font-weight: 700; font-size: 13.5px; color: #16233b; }
.fame-rv-reply-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #2f6fed; padding: 2px 7px; border-radius: 999px; }
.fame-rv-reply-text { margin: 6px 0 0; font-size: 13.5px; color: #55627a; line-height: 1.6; }

.fame-rv-replybox { margin: 12px 0 0 34px; display: flex; width: 100%; gap: 8px; align-items: flex-start; flex-wrap:wrap; }
.fame-rv-reply-input { flex: 1 1 auto; width: 100%; outline: none; border: 1px solid #d9e2ef; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; resize: vertical; font-family: inherit; }
.fame-rv-reply-send { flex: 0 0 auto; border: 0; cursor: pointer; background: #2f6fed; color: #fff; font-weight: 600; font-size: 13px; padding: 8px 16px; border-radius: 10px; }

/* ---- Leave a review form ---- */
.fame-rv-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fame-rv-card { background: #f5f7fb; border: 1px solid #eef1f7; border-radius: 14px; padding: 20px 22px; }
.fame-rv-items-card { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.fame-rv-overall-card { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }

.fame-rv-item-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.fame-rv-item-label { font-size: 14.5px; color: #2b3a52; font-weight: 500; }
.fame-rv-item-desc { font-size: 12.5px; color: #8a94a6; min-width: 78px; text-align: right; }
.fame-rv-stars-input { white-space: nowrap; }
.fame-rv-star-btn { background: none; border: 0; cursor: pointer; padding: 0 1px; font-size: 19px; line-height: 1; color: #d4d9e3; transition: color .12s, transform .12s; }
.fame-rv-star-btn.is-on { color: #f6b100; }
/* Hover preview (jobpro-style): the hovered star AND every star before it light
   up while pointing; the row restores its real value on mouse leave. .is-hover
   wins over .is-on so hovering a LOWER star visibly previews the downgrade. */
.fame-rv-star-btn.is-hover { color: #ffc728; }
.fame-rv-stars-input:hover .fame-rv-star-btn:not(.is-hover) { color: #d4d9e3; }
.fame-rv-star-btn:hover { transform: scale(1.12); }
.fame-rv-star-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 3px; }

.fame-rv-overall-label { font-size: 14px; color: #55627a; }
.fame-rv-overall-num { font-size: 38px; font-weight: 800; color: #2563eb; line-height: 1.1; }
.fame-rv-overall-stars { letter-spacing: 2px; }
.fame-rv-overall-stars .fame-rv-star { font-size: 17px; color: #d9dee8; }
.fame-rv-overall-stars .fame-rv-star.is-on { color: #f6b100; }
/* Overall stars: same hover preview + the number previews the value it sets. */
.fame-rv-overall-stars .fame-rv-star.is-hover { color: #ffc728; }
.fame-rv-overall-stars:hover .fame-rv-star:not(.is-hover) { color: #d9dee8; }
.fame-rv-overall-star-btn { background: none; border: 0; cursor: pointer; padding: 0; line-height: 1; transition: transform .12s; }
.fame-rv-overall-star-btn:hover { transform: scale(1.12); }
.fame-rv-overall-star-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 3px; }
/* Clickable overall stars — set every item rating to N. */
.fame-rv-overall-star-btn { background: none; border: 0; padding: 0 1px; cursor: pointer; line-height: 1; transition: color .12s; }
.fame-rv-overall-star-btn:hover,
.fame-rv-overall-star-btn:focus-visible { color: #f6b100; outline: none; }

.fame-rv-fields { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.fame-rv-input { flex: 1 1 240px; min-width: 0; border: 1px solid #e2e8f2; border-radius: 12px; padding: 13px 16px; font-size: 14.5px; background: #fff; font-family: inherit; }
.fame-rv-input:focus { outline: none; border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, .12); }

.fame-rv-textarea-wrap { position: relative; margin-bottom: 16px; }
.fame-rv-textarea { width: 100%; min-height: 92px; border: 1px solid #e2e8f2; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; background: #fff; resize: vertical; font-family: inherit; }
.fame-rv-textarea:focus { outline: none; border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47, 111, 237, .12); }
.fame-rv-counter { display: block; text-align: right; font-size: 12px; color: #9aa4b5; margin-top: 6px; }

.fame-rv-submit-row { display: flex; align-items: center; gap: 16px; }
.fame-rv-submit {
    cursor: pointer;
    background-color: #ffffff;
    color: #121F3E;
    padding: 6px 20px 6px 6px;
    border-radius: 100px;
    transition: background .15s, opacity .15s;
    border: 1px solid #121F3E;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
/* The fame-icon font is a COLR/CPAL colour font and U+F057 (contact-us-fill) is
   its one colour glyph — baked to palette entry 0 (#777777). A colour glyph is
   painted from the font's own palette, so plain `color` is ignored. Overriding
   palette entry 0 is what actually makes it white. `color` stays as the fallback
   for browsers without font-palette support. */
@font-palette-values --fame-icon-white {
    font-family: "fame-icon";
    override-colors: 0 #ffffff;
}
.fame-rv-submit-icon {
    display: inline-flex;
    width: 60px;
    height: 40px;
    background-color: #1877F2;
    border-radius: 100px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-palette: --fame-icon-white;
}
.fame-rv-submit-aricn {
    color: #121F3E;
    font-size: 14px;
}
.fame-rv-submit:hover {
    background-color: #EAF4FF;
}
.fame-rv-submit[disabled] { opacity: .6; cursor: default; }
.fame-rv-status { font-size: 13.5px; font-weight: 500; }
.fame-rv-status.is-ok { color: #146c43; }
.fame-rv-status.is-err { color: #b02a37; }

/* ---- Guest login modal ---- */
.fame-rv-loginmodal { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fame-rv-loginmodal[hidden] { display: none; }
.fame-rv-loginmodal-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 51, .55); }
.fame-rv-loginmodal-box { position: relative; background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 420px; box-shadow: 0 24px 70px rgba(8, 20, 102, .3); z-index: 1; max-height: 90vh; overflow: auto; }
.fame-rv-loginmodal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: #8a94a6; cursor: pointer; }
.fame-rv-loginmodal-title { font-weight: 700; color: #16233b; margin: 0 0 14px; font-size: 16px; }

@media (max-width: 575px) {
    .fame-rv-item-row { grid-template-columns: 1fr auto; }
    .fame-rv-item-desc { display: none; }
    .fame-rv-actions { gap: 14px; }
}
