/* ADHOC Google Reviews: restrained, flat UI. Everything is scoped to .adhocgr. */
.adhocgr {
    --adhocgr-primary: #006b74;
    --adhocgr-stars: #f5ae30;
    --adhocgr-ink: #171d2b;
    --adhocgr-muted: #687181;
    --adhocgr-border: #e3e6ec;
    --adhocgr-surface: #fff;
    --adhocgr-subtle: #f6f7f9;
    color: var(--adhocgr-ink);
    font: inherit;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    background: transparent;
}
.adhocgr *, .adhocgr *::before, .adhocgr *::after { box-sizing: border-box; }
.adhocgr--dark {
    --adhocgr-ink: #f4f5f7;
    --adhocgr-muted: #b6becb;
    --adhocgr-border: #394459;
    --adhocgr-surface: #1a2434;
    --adhocgr-subtle: #222e41;
}
.adhocgr .adhocgr-heading {
    display: flex; justify-content: space-between; align-items: end;
    gap: 20px; margin: 0 0 22px; padding: 0;
}
.adhocgr .adhocgr-eyebrow {
    display: block; margin: 0 0 5px;
    color: var(--adhocgr-muted); font-size: 12px; font-weight: 500;
    letter-spacing: 0; text-transform: none;
}
.adhocgr .adhocgr-title {
    margin: 0 0 8px !important; padding: 0 !important;
    font: inherit !important; font-weight: 650 !important;
    color: var(--adhocgr-ink) !important;
    font-size: clamp(21px, 2.4vw, 28px) !important;
    letter-spacing: -.025em !important; line-height: 1.25 !important;
}
.adhocgr .adhocgr-rating-summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adhocgr .adhocgr-average { color: var(--adhocgr-ink); font-size: 17px; font-weight: 650; }
.adhocgr .adhocgr-average span { color: var(--adhocgr-muted); font-weight: 400; font-size: 13px; }
.adhocgr .adhocgr-count { font-size: 12px; color: var(--adhocgr-muted); }
.adhocgr .adhocgr-google-link {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--adhocgr-border);
    border-radius: 6px; background: var(--adhocgr-surface);
    color: var(--adhocgr-ink) !important;
    padding: 9px 12px; font-size: 12px; font-weight: 600;
    line-height: 1.3; text-decoration: none !important; white-space: nowrap;
}
.adhocgr .adhocgr-google-link:hover { border-color: var(--adhocgr-primary); color: var(--adhocgr-primary) !important; }
.adhocgr .adhocgr-body, .adhocgr .adhocgr-swiper { min-width: 0; overflow: hidden; }
.adhocgr .adhocgr-card {
    display: flex !important; flex-direction: column;
    min-width: 0; height: auto !important; min-height: 250px;
    margin: 0; padding: 20px;
    border: 1px solid var(--adhocgr-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: var(--adhocgr-surface) !important;
    color: var(--adhocgr-ink);
    text-align: left; line-height: 1.5;
    overflow: hidden; overflow-wrap: break-word; word-break: normal;
}
.adhocgr .adhocgr-card-head { display: flex; gap: 11px; align-items: center; margin: 0 0 17px; }
/* Avatar wrapper clips even if the theme overrides img border-radius. */
.adhocgr .adhocgr-avatar-frame {
    display: block !important; flex: 0 0 44px;
    width: 44px !important; height: 44px !important;
    min-width: 44px !important; min-height: 44px !important;
    overflow: hidden !important; border-radius: 50% !important;
    aspect-ratio: 1 / 1; background: #e9ecf2;
}
.adhocgr .adhocgr-avatar-frame .adhocgr-avatar,
.adhocgr .adhocgr-avatar-frame img.adhocgr-avatar {
    display: block !important; width: 44px !important; height: 44px !important;
    min-width: 44px !important; max-width: 44px !important;
    min-height: 44px !important; max-height: 44px !important;
    margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 50% !important;
    object-fit: cover !important; object-position: center;
    aspect-ratio: 1 / 1;
}
.adhocgr .adhocgr-avatar--initial {
    display: grid !important; place-items: center;
    background: color-mix(in srgb, var(--adhocgr-primary) 12%, var(--adhocgr-surface)); color: var(--adhocgr-primary);
    font-size: 16px; font-weight: 600;
}
.adhocgr .adhocgr-author-details { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.adhocgr .adhocgr-author { display: block; color: var(--adhocgr-ink); font-size: 15px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.adhocgr .adhocgr-date { font-size: 12px; color: var(--adhocgr-muted); line-height: 1.35; }
.adhocgr .adhocgr-google-source {
    display: grid; flex: 0 0 30px; place-items: center; align-self: flex-start;
    width: 30px; height: 30px; border: none; box-shadow: none;
    background: #fff; border-radius: 3px; text-decoration: none;
}
.adhocgr .adhocgr-google-source img {
    display: block !important; width: 22px !important; height: 22px !important;
    max-width: 22px !important; max-height: 22px !important;
    margin: 0 !important; padding: 0 !important;
    border-radius: 0 !important; object-fit: contain;
}
.adhocgr .adhocgr-rating-row { margin: 0 0 10px; }
.adhocgr .adhocgr-stars {
    display: inline-flex; align-items: center; gap: 1px;
    color: var(--adhocgr-stars); font-size: 17px; line-height: 1.2;
    letter-spacing: .5px; white-space: nowrap;
}
.adhocgr .adhocgr-stars-muted { color: #cfd4de; }
.adhocgr .adhocgr-review-text {
    min-width: 0; flex: 1; margin: 0; padding: 0;
    color: var(--adhocgr-ink); font-size: 15px; line-height: 1.65;
    overflow-wrap: anywhere; word-break: normal;
    font-family: inherit, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.adhocgr .adhocgr-review-text p,
.adhocgr .adhocgr-reply p {
    margin: 0 !important; padding: 0 !important;
    font-size: inherit !important; line-height: inherit !important;
    color: inherit !important; font-weight: 400;
    white-space: pre-wrap; unicode-bidi: plaintext;
}
/* Review expansion: unobtrusive link, with "read less" AFTER the additional text. */
.adhocgr .adhocgr-readmore { margin: 5px 0 0; padding: 0; }
.adhocgr .adhocgr-readmore summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    cursor: pointer;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--adhocgr-primary) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}
.adhocgr .adhocgr-readmore summary::-webkit-details-marker { display: none; }
.adhocgr .adhocgr-readmore summary::marker { content: ''; }
.adhocgr .adhocgr-readmore summary::after {
    content: '';
    display: block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin: -2px 1px 0 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.adhocgr .adhocgr-readmore summary:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.adhocgr .adhocgr-readmore summary:focus-visible {
    outline: 2px solid var(--adhocgr-primary);
    outline-offset: 3px;
}
.adhocgr .adhocgr-readmore[open] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
}
.adhocgr .adhocgr-readmore[open] .adhocgr-review-continuation {
    order: 0;
    margin: 0 0 3px !important;
}
.adhocgr .adhocgr-readmore[open] summary {
    order: 1;
    margin-top: 5px;
}
.adhocgr .adhocgr-readmore[open] summary::after {
    margin-top: 3px;
    transform: rotate(225deg);
}
.adhocgr .adhocgr-translation-notice {
    display: block; color: var(--adhocgr-muted); font-size: 11px;
    margin: 10px 0 0; font-weight: 400;
}
.adhocgr .adhocgr-reply {
    margin: 15px 0 0; padding: 11px 12px;
    border: none !important; border-left: none !important;
    border-radius: 5px; background: var(--adhocgr-subtle);
    color: var(--adhocgr-ink); font-size: 14px; line-height: 1.6;
}
.adhocgr .adhocgr-reply strong { display: block; color: var(--adhocgr-ink); font-size: 13px; margin: 0 0 5px; font-weight: 650; }
.adhocgr .adhocgr-card-footer {
    margin: 17px 0 0; padding: 12px 0 0;
    border-top: 1px solid var(--adhocgr-border);
    display: flex; align-items: center; justify-content: space-between; gap: 9px;
    font-size: 12px; color: var(--adhocgr-muted);
}
.adhocgr .adhocgr-card-footer a {
    color: var(--adhocgr-primary) !important;
    font-size: 12px; font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
.adhocgr .adhocgr-card-footer a:hover,
.adhocgr .adhocgr-card-footer a:focus-visible {
    color: var(--adhocgr-primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.adhocgr .adhocgr-card-footer a:focus-visible {
    outline: 2px solid var(--adhocgr-primary);
    outline-offset: 3px;
}
.adhocgr .adhocgr-controls { display: flex; gap: 14px; min-height: 38px; align-items: center; justify-content: space-between; margin: 16px 0 0; }
.adhocgr .adhocgr-pagination {
    display: flex; gap: 5px; align-items: center;
    position: static !important; transform: none !important;
    width: auto !important; text-align: left;
}
.adhocgr .adhocgr-pagination .swiper-pagination-bullet {
    width: 7px; height: 7px; background: var(--adhocgr-primary);
    opacity: .25; border-radius: 50%; margin: 0 3px !important;
}
.adhocgr .adhocgr-pagination .swiper-pagination-bullet-active { opacity: 1; }
.adhocgr .adhocgr-arrows { display: flex; gap: 7px; margin-left: auto; }
.adhocgr .adhocgr-arrows button {
    display: grid; place-items: center; appearance: none;
    border: 1px solid var(--adhocgr-border) !important;
    border-radius: 5px !important; box-shadow: none !important;
    background: var(--adhocgr-surface) !important; color: var(--adhocgr-ink) !important;
    width: 35px; height: 35px; padding: 0 !important;
    font-size: 24px; font-weight: 400; line-height: 1; cursor: pointer;
}
.adhocgr .adhocgr-arrows button:not(.swiper-button-disabled):hover { border-color: var(--adhocgr-primary) !important; color: var(--adhocgr-primary) !important; }
.adhocgr .adhocgr-arrows button.swiper-button-disabled { opacity: .35; cursor: default; }
.adhocgr .adhocgr-static-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adhocgr--list .adhocgr-static-grid { grid-template-columns: 1fr; }
.adhocgr--list .adhocgr-card { min-height: 0; }
.adhocgr .swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.adhocgr .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; }
.adhocgr-empty { padding: 14px; border: 1px solid #d9dee8; border-radius: 5px; background: #f7f8fa; color: #565f71; }
@media (max-width: 900px) { .adhocgr .adhocgr-static-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .adhocgr .adhocgr-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
    .adhocgr .adhocgr-static-grid { grid-template-columns: 1fr; }
    .adhocgr .adhocgr-card { min-height: 210px; padding: 17px; }
}

/* Only the remaining text expands: avoid duplicating the preview. */
.adhocgr .adhocgr-readmore .adhocgr-readmore-collapse { display: none; }
.adhocgr .adhocgr-readmore[open] .adhocgr-readmore-expand { display: none; }
.adhocgr .adhocgr-readmore[open] .adhocgr-readmore-collapse { display: inline; }
.adhocgr .adhocgr-review-text:has(.adhocgr-readmore[open]) .adhocgr-ellipsis { display: none; }
.adhocgr .adhocgr-review-continuation[hidden] { display: none !important; }
.adhocgr .adhocgr-review-inline-continuation { white-space: pre-wrap; unicode-bidi: plaintext; }
.adhocgr .adhocgr-review-inline-continuation[hidden] { display: none !important; }
.adhocgr .adhocgr-review-continuation { white-space: pre-wrap; unicode-bidi: plaintext; }
