/* The home page's "Verified by satisfied guests" reviews (templates/partials/_home_reviews.html): grey cards in two staggered rows that scroll sideways,
   like Flatio's own section. Flatio's page CSS only knows an older class naming here, so it is styled in this file. */
.community-reviews { position: relative; }
.community-reviews__scroller { overflow-x: auto; overflow-y: hidden; padding: 4px 16px 18px; scrollbar-width: thin; scroll-behavior: smooth; }
.community-reviews__scroller:focus-visible { outline: 2px solid #1e1e1e; outline-offset: -2px; }
.community-reviews__grid { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 480px; row-gap: 30px; width: max-content; padding-right: 140px; }
.community-reviews__cell { width: 460px; }
.community-reviews__cell:nth-child(even) { transform: translateX(120px); }          /* the second row sits further right than the first */
.community-reviews__arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 26px; line-height: 1; color: #1e1e1e; cursor: pointer; }
.community-reviews__arrow--prev { left: 8px; }
.community-reviews__arrow--next { right: 8px; }
.community-reviews__arrow:hover { background: #f7f7f7; }

.community-reviews .community-referal-item { display: flex; gap: 14px; align-items: flex-start; box-sizing: border-box; height: 100%; min-height: 200px; position: relative;
    background: #f7f7f7; border: 0; border-radius: 3px; padding: 20px 16px 52px; }
.community-referal-item__avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #fdc400; color: #1e1e1e; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.community-referal-item__body { min-width: 0; flex: 1; }
.community-referal-item__label { margin-left: 6px; padding: 2px 6px; border: 1px solid #e5e5e5; border-radius: 4px; background: #fff; color: #565656; font-size: 11px; font-weight: 600; position: relative; top: -2px; }
.community-referal-item__stars { margin-top: 3px; }
.community-referal-item__text { margin: 12px 0 0; color: #1e1e1e; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.community-referal-item__date { position: absolute; left: 72px; right: 16px; bottom: 18px; margin: 0; color: #565656; font-size: 13px; }
@media (max-width: 600px) {
    .community-reviews__grid { grid-auto-columns: 300px; }
    .community-reviews__cell { width: 280px; }
    .community-reviews__cell:nth-child(even) { transform: translateX(40px); }
    .community-reviews__arrow { display: none; }
}
