
.tm-review-stars {
    color: #f59e0b;
    font-size: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tm-review-premium-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f9fafb);
}

.tm-review-score-card {
    text-align: center;
}

.tm-review-score-card > * {
    display: block;
}

.tm-review-big-score {
    margin-bottom: 5px;
    color: #081521;
    font-size: 54px;
    line-height: 1;
}

.tm-review-score-card > span:last-child {
    margin-top: 7px;
    color: #6b7280;
    font-size: 13px;
}

.tm-review-distribution {
    display: grid;
    gap: 7px;
}

.tm-review-distribution a {
    display: grid;
    grid-template-columns: 46px minmax(120px, 1fr) 28px;
    gap: 10px;
    align-items: center;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
}

.tm-review-bar {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
}

.tm-review-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f59e0b;
}

.tm-review-notice,
.tm-review-error {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 4px solid #16a34a;
    border-radius: 9px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 700;
}

.tm-review-error {
    border-left-color: #FF7A00;
    background: #fef2f2;
    color: #991b1b;
}

.tm-review-toolbar {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0;
}

.tm-review-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-review-filter-chips a {
    padding: 8px 11px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.tm-review-filter-chips a.is-active {
    border-color: #FF7A00;
    background: #fef2f2;
    color: #FF7A00;
}

.tm-review-toolbar form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tm-review-toolbar select {
    min-height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    padding: 0 10px;
}

.tm-review-list {
    display: grid;
    gap: 16px;
}

.tm-review-item {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
}

.tm-review-item-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.tm-review-person {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tm-review-avatar {
    display: inline-flex;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #374151;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
}

.tm-reviewer-name,
.tm-reviewer-business-link {
    color: #081521;
    text-decoration: none;
    font-weight: 800;
}

.tm-reviewer-name:hover,
.tm-reviewer-business-link:hover {
    color: #FF7A00;
}

.tm-review-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.tm-review-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,122,0,0.12);
    color: #FF7A00;
    font-size: 11px;
    font-weight: 800;
}

.tm-review-badge-verified {
    background: #ecfdf5;
    color: #166534;
}

.tm-review-rating-date {
    text-align: right;
}

.tm-review-rating-date > span:last-child {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.tm-review-item h3 {
    margin: 16px 0 7px;
    color: #081521;
    font-size: 18px;
}

.tm-review-item p {
    line-height: 1.7;
}

.tm-review-owner-reply {
    margin-top: 16px;
    padding: 15px;
    border-left: 4px solid #FF7A00;
    border-radius: 9px;
    background: #fef2f2;
}

.tm-review-owner-reply p {
    margin-bottom: 0;
}

.tm-review-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f1f3;
}

.tm-review-actions a,
.tm-review-actions span {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.tm-review-actions a:hover {
    color: #FF7A00;
}

.tm-review-form-wrap {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}

.tm-review-form-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.tm-review-form-heading h3 {
    margin: 0 0 5px;
}

.tm-review-form-heading p {
    margin: 0;
    color: #6b7280;
}

.tm-review-close-form {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-size: 24px;
}

.tm-star-selector-wrap {
    margin-bottom: 20px;
}

.tm-star-selector-wrap > label {
    display: block;
    margin-bottom: 8px;
    color: #081521;
    font-weight: 800;
}

.tm-star-selector {
    display: inline-flex;
    gap: 4px;
}

.tm-star-selector button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #f59e0b;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    transition: transform .15s ease;
}

.tm-star-selector button:hover,
.tm-star-selector button.is-active {
    transform: scale(1.08);
}

.tm-star-rating-label {
    display: inline-block;
    margin-left: 12px;
    color: #6b7280;
    font-weight: 700;
}

.tm-star-rating-label.is-error {
    color: #FF7A00;
}

.tm-review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.tm-review-form-full {
    grid-column: 1 / -1;
}

.tm-review-form-wrap label,
.tm-review-item label {
    display: block;
    margin-bottom: 7px;
    color: #081521;
    font-weight: 700;
}

.tm-review-form-wrap input,
.tm-review-form-wrap textarea,
.tm-review-item textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
}

.tm-review-verification-note {
    display: flex;
    gap: 5px;
    flex-direction: column;
    margin: 18px 0;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,122,0,0.12);
    color: #FF8F26;
}

.tm-review-empty,
.tm-reviewer-empty {
    padding: 28px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    text-align: center;
}

.tm-review-empty strong,
.tm-review-empty span {
    display: block;
}

.tm-review-empty span {
    margin-top: 5px;
    color: #6b7280;
}

.tm-profile-rating-line,
.tm-result-rating,
.tm-provider-review-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tm-profile-rating-line {
    margin-top: 10px;
    color: #fff;
}

.tm-profile-rating-line span {
    color: rgba(255,255,255,.78);
}

.tm-result-rating {
    margin: -4px 0 12px;
}

.tm-provider-review-summary {
    margin: 12px 0 18px;
}

/* Reviewer public profile */
.tm-reviewer-page,
.tm-review-verify-page {
    min-height: 70vh;
    padding: 56px 16px 76px;
    background: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
}

.tm-reviewer-container,
.tm-review-verify-card {
    width: min(980px, 100%);
    margin: 0 auto;
}

.tm-reviewer-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #374151, #081521);
    color: #fff;
}

.tm-reviewer-avatar-large {
    display: flex;
    width: 92px;
    height: 92px;
    min-width: 92px;
    border-radius: 50%;
    background: #fff;
    color: #FF7A00;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 900;
}

.tm-reviewer-kicker {
    margin: 0;
    color: #FF8F26;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.tm-reviewer-hero h1 {
    margin: 6px 0 9px;
    color: #fff;
}

.tm-reviewer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-reviewer-badges span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 700;
}

.tm-reviewer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.tm-reviewer-stats > div {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

.tm-reviewer-stats strong,
.tm-reviewer-stats span {
    display: block;
}

.tm-reviewer-stats strong {
    color: #FF7A00;
    font-size: 28px;
}

.tm-reviewer-stats span {
    margin-top: 5px;
    color: #6b7280;
}

.tm-reviewer-reviews {
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.tm-review-verify-card {
    max-width: 620px;
    padding: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

@media (max-width: 850px) {
    .tm-review-premium-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tm-review-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .tm-review-form-grid {
        grid-template-columns: 1fr;
    }

    .tm-review-form-full {
        grid-column: auto;
    }

    .tm-review-item-top,
    .tm-reviewer-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-review-rating-date {
        text-align: left;
    }

    .tm-reviewer-stats {
        grid-template-columns: 1fr;
    }
}


.tm-verified-actions {
    align-items: center;
    flex-wrap: wrap;
}

.tm-trust-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.tm-trust-action:hover,
.tm-trust-action:focus {
    color: #FF7A00;
}

.tm-report-form {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.tm-report-form label {
    display: block;
    margin-bottom: 12px;
    color: #081521;
    font-weight: 700;
}

.tm-report-form select,
.tm-report-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
}

.tm-verified-member-gate {
    text-align: left;
}

.tm-verified-member-gate p {
    margin: 7px 0 13px;
    color: #6b7280;
}

@media (max-width: 650px) {
    .tm-verified-actions {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-trust-action {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }
}
