.tm-reviews-preview { padding: 192px 0 80px; background: #fff; }
.tm-reviews-eyebrow { color: #2d718f; font-size: 12px; font-weight: 700; letter-spacing: .13em; margin: 0 0 14px; }
.tm-reviews-preview h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; margin: 0 0 16px; color: #193c4b; }
.tm-reviews-intro { color: #5d6970; font-size: 17px; margin-bottom: 36px; }
.tm-reviews-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f5f5f7; padding: 12px 20px; border-radius: 18px; margin-bottom: 12px; }
.tm-reviews-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #202327; text-decoration: none !important; }
.tm-reviews-rating:hover { color: #202327; }
.tm-reviews-score { font-size: 24px; line-height: 1; }
.tm-reviews-stars { position: relative; display: inline-block; font-family: Arial, sans-serif; font-size: 23px; line-height: 1; letter-spacing: 1px; color: #d5d7db; white-space: nowrap; }
.tm-reviews-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #fbbc04; }
.tm-reviews-total { display: inline-flex; gap: 7px; align-items: center; font-size: 15px; }
.tm-reviews-total img { display: inline-block; width: 72px; height: 24px; object-fit: contain; }
.tm-reviews-write { background: #0874f9; color: #fff !important; border-radius: 30px; padding: 9px 18px; font-size: 14px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.tm-reviews-write:hover { background: #005bc8; }
.tm-google-reviews a:focus-visible { outline: 3px solid #1c566e; outline-offset: 4px; }
.tm-google-reviews .ti-widget.ti-goog { font-family: inherit !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-widget-container { margin: 0 !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-review-item > .ti-inner { background: #f5f5f7 !important; border: 0 !important; border-radius: 18px !important; box-shadow: none !important; padding: 18px !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-name { font-size: 15px !important; font-weight: 700 !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-date { font-size: 13px !important; color: #6b7177 !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-review-content { font-size: 15px !important; line-height: 1.45 !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-read-more { font-size: 14px !important; color: #075fc7 !important; }
.tm-reviews-all { margin: 10px 0 0; text-align: center; font-size: 14px; }
.tm-reviews-all a { color: #20637e; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 991px) {
    .tm-reviews-preview { padding-top: 48px; }
}
@media (max-width: 767px) {
    .tm-reviews-preview { padding: 40px 0 56px; }
    .tm-reviews-summary { flex-direction: column; align-items: stretch; padding: 14px 16px; gap: 12px; border-radius: 20px; }
    .tm-reviews-rating { justify-content: center; }
    .tm-reviews-total { flex-basis: 100%; justify-content: center; }
    .tm-reviews-write { text-align: center; }
    .tm-reviews-intro { font-size: 15px; margin-bottom: 28px; }
    .tm-google-reviews .ti-widget.ti-goog .ti-review-item > .ti-inner { padding: 18px !important; border-radius: 20px !important; }
}

/* Keep the shared section comfortable on laptop screens. */
.tm-reviews-heading { margin-top: 24px; padding-bottom: 12px; }
.tm-google-reviews .ti-widget.ti-goog .ti-profile-img,
.tm-google-reviews .ti-widget.ti-goog .ti-profile-img img { width: 32px !important; height: 32px !important; min-width: 32px !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-review-header { margin-bottom: 10px !important; }
.tm-google-reviews .ti-widget.ti-goog .ti-stars { margin-bottom: 8px !important; }
/* Progressive fallback: readable HTML and native scrolling before enhancement. */
.tm-reviews-pending pre.ti-widget { margin: 0; white-space: normal; font: inherit; overflow: visible; }
.tm-reviews-pending .ti-widget.ti-goog { opacity: 1 !important; height: auto !important; overflow: visible !important; }
.tm-reviews-pending .ti-reviews-container-wrapper { display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory; transform: none !important; }
.tm-reviews-pending .ti-review-item { flex: 0 0 33.333% !important; min-width: 0; scroll-snap-align: start; }
.tm-reviews-pending .ti-review-content { max-height: 87px; overflow-y: auto !important; }
.tm-reviews-pending .ti-controls, .tm-reviews-pending .ti-controls-line, .tm-reviews-pending .ti-read-more { display: none !important; }
@media (max-width: 767px) {
    .tm-reviews-pending .ti-review-item { flex-basis: 100% !important; }
}
