/* Text review cards: reference layout, Balkon VLG colours and real site data. */
#reviews.review-showcase {
    padding-top: 32px;
    padding-bottom: 32px;
    color: #25272a;
}
.review-showcase .review-showcase-heading {
    margin: 0 0 44px;
    color: #25272a;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}
.review-showcase-heading > span {
    position: relative;
    display: inline-block;
    color: #3a5bae;
}
.review-showcase-heading > span::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: #3a5bae;
    content: "";
    transform: rotate(-1deg);
}
.review-showcase-heart { margin-left: 6px; vertical-align: -3px; }
.review-showcase-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.review-showcase-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 4px;
    color: #25272a;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
}
.review-showcase-source.is-current { background: #eee; }
.review-showcase-source > svg { color: #3a5bae; }
.review-showcase-source:hover { background: #e8edf8; color: #3a5bae; text-decoration: none; }
.review-showcase-yandex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fc3f1d;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.review-showcase-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 32px;
}
.review-showcase-rating { display: flex; align-items: center; gap: 16px; }
.review-showcase-rating > strong { font-size: 50px; font-weight: 600; line-height: 1; }
.review-showcase-rating small { display: block; margin-top: 4px; color: #68717e; font-size: 11px; line-height: 16px; }
.review-showcase-stars { display: flex; gap: 1px; width: max-content; color: #ffbf00; }
.review-showcase-stars > svg { flex: 0 0 18px; }
.review-showcase-average { position: relative; width: 94px; height: 18px; }
.review-showcase-stars-base, .review-showcase-stars-fill { display: flex; gap: 1px; }
.review-showcase-stars-base { color: #ddd; }
.review-showcase-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; }
.review-showcase-stars-base > svg, .review-showcase-stars-fill > svg { flex: 0 0 18px; }
.review-showcase-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 4px #0003;
    color: #25272a;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}
.review-showcase-write:hover { border-color: #3a5bae; color: #3a5bae; text-decoration: none; }
.review-showcase-grid {
    display: grid;
    grid-template-columns: repeat(var(--review-columns, 4), minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    scroll-margin-top: 140px;
}
.review-showcase-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 6px #0003;
    font-size: 14px;
    line-height: 1.4;
}
.review-showcase-card-header { display: flex; align-items: center; gap: 10px; min-height: 60px; margin-bottom: 9px; }
.review-showcase-avatar {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #edf1fb;
    color: #3a5bae;
    font-size: 20px;
    font-weight: 700;
}
.review-showcase-author { min-width: 0; }
.review-showcase .review-showcase-author h3 { margin: 0 0 6px; color: #25272a; font-size: 14px; font-weight: 700; line-height: 20px; overflow-wrap: anywhere; }
.review-showcase-author time { display: block; margin-top: 4px; color: #25272a; font-size: 12px; line-height: 17px; }
.review-showcase-message { min-height: 190px; padding: 10px; border-radius: 10px; background: #f5f5f5; overflow-wrap: anywhere; }
.review-showcase-message p { margin: 0; color: #25272a; font-size: 14px; line-height: 1.4; }
.review-showcase-details summary { display: flex; flex-direction: column; min-height: 170px; list-style: none; cursor: pointer; }
.review-showcase-details summary::-webkit-details-marker { display: none; }
.review-showcase-preview { display: -webkit-box; margin-bottom: 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.review-showcase-toggle { display: block; margin-top: auto; color: #3a5bae; font-size: 12px; font-weight: 600; text-decoration: underline; }
.review-showcase-collapse { display: none; }
.review-showcase-details[open] summary { min-height: 0; margin-bottom: 10px; }
.review-showcase-details[open] .review-showcase-preview, .review-showcase-details[open] .review-showcase-read { display: none; }
.review-showcase-details[open] .review-showcase-collapse { display: inline; }
.review-showcase-full { white-space: normal; }
.review-showcase-card-footer { display: flex; align-items: center; gap: 5px; margin: 18px 0 2px; color: #3a5bae; font-size: 11px; line-height: 18px; }
.review-showcase-card-footer a { color: #25272a; text-decoration: none; }
.review-showcase-card-footer a:hover { color: #3a5bae; text-decoration: underline; }
.review-showcase-all { margin-top: 48px; text-align: center; }
.review-showcase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 236px;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 10px;
    background: #3a5bae;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}
.review-showcase-button:hover { background: #2c4689; color: #fff; text-decoration: none; }
.review-showcase a:focus-visible, .review-showcase summary:focus-visible { outline: 3px solid #f7941d; outline-offset: 3px; }
.review-showcase-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1199.98px) {
    .review-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    #reviews.review-showcase { padding-top: 24px; padding-bottom: 24px; }
    .review-showcase .review-showcase-heading { margin-bottom: 28px; font-size: 28px; line-height: 1.3; }
    .review-showcase-heart { width: 26px; height: 26px; }
    .review-showcase-sources { gap: 8px; margin-bottom: 24px; }
    .review-showcase-source { padding: 8px 10px; font-size: 14px; }
    .review-showcase-overview { flex-wrap: wrap; margin-bottom: 24px; }
    .review-showcase-rating > strong { font-size: 44px; }
    .review-showcase-grid { gap: 16px; }
    .review-showcase-all { margin-top: 28px; }
}
@media (max-width: 575.98px) {
    .review-showcase-grid { grid-template-columns: minmax(0, 1fr); }
    .review-showcase-source { gap: 6px; padding: 8px; font-size: 12px; }
    .review-showcase-overview { align-items: center; gap: 12px; }
    .review-showcase-rating { gap: 12px; }
    .review-showcase-rating small { max-width: 120px; font-size: 10px; line-height: 14px; }
    .review-showcase-write { padding: 8px 14px; }
    .review-showcase-message { min-height: 0; }
    .review-showcase-details summary { min-height: 0; }
    .review-showcase-toggle { margin-top: 12px; }
}
