.testimonial-container:has(.tbgr) > .testimonial-item,
.testimonial-content:has(.tbgr) { min-width: 0; }
.testimonial-content:has(.tbgr) { width: 100%; box-sizing: border-box; }
.tbgr { --amber: #ffbd4a; color: #fff; text-align: left; font: 1rem/1.45 Inter, Arial, sans-serif; min-width: 0; scroll-margin-top: 6rem; }
.tbgr *, .tbgr *::before { box-sizing: border-box; }
.tbgr h3.tbgr-title { margin: 0 0 .8rem; color: #fff; font: 600 clamp(1.7rem,3vw,2.35rem)/1.1 Oswald, sans-serif; text-transform: uppercase; }
.tbgr-title span { color: var(--amber); font-family: Slackey, sans-serif; }
.tbgr-score { display: flex; align-items: baseline; gap: .35rem .75rem; flex-wrap: wrap; }
.tbgr-number { font: 600 2.6rem/1.1 Oswald, sans-serif; }
.tbgr-number small { font: 400 1.3rem/1 Inter, sans-serif; }
.tbgr-total, .tbgr .tbgr-caption, .tbgr-bottom { font: 400 .875rem/1.5 Inter, sans-serif; }
.tbgr-total span, .tbgr-stars { color: var(--amber); }
.tbgr .tbgr-caption { margin: .6rem 0 1rem; color: #eee; }
.tbgr ol.tbgr-row { list-style: none; padding: .15rem 0 .4rem; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; }
.tbgr-row > li { padding: .7rem 0 .3rem; border-top: 2px solid var(--amber); display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
.tbgr-stars { font-size: .9rem; letter-spacing: .07em; }
.tbgr blockquote { border: 0; margin: .45rem 0 .7rem; padding: 0; font: 500 clamp(1rem,1.25vw,1.2rem)/1.4 Inter, sans-serif; color: #fff; overflow-wrap: anywhere; }
.tbgr a, .tbgr a:visited { color: var(--amber); text-decoration: underline; text-underline-offset: .2em; }
.tbgr a:hover { color: #fff; }
.tbgr .tbgr-author { margin-top: auto; font: 500 .875rem/1.45 Inter, sans-serif; }
.tbgr-bottom { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .9rem; }
.tbgr-bottom span { color: #ddd; font-size: .8rem; }
.tbgr a:focus-visible, .tbgr-row:focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (max-width: 680px) {
  .tbgr ol.tbgr-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; overscroll-behavior-x: contain; padding-bottom: .65rem; }
}

.tbgr { width: 100%; container-type: inline-size; }
.tbgr-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title action" "invite invite";
    align-items: center;
    gap: .4rem 1rem;
    margin-bottom: 1rem;
}
.tbgr .tbgr-header .tbgr-title { grid-area: title; margin: 0; }
#google-reviews .tbgr-header > .tbgr-invite { grid-area: invite; justify-self: stretch; width: 100%; max-width: none !important; margin: 0; color: #eee; font: 400 .875rem/1.5 Inter, Arial, sans-serif; }
.tbgr a.tbgr-write, .tbgr a.tbgr-write:visited {
    grid-area: action;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .5rem .85rem;
    border: 1px solid var(--amber);
    background: var(--amber);
    color: #000;
    font: 600 .875rem/1.3 Inter, Arial, sans-serif;
    text-align: center;
    text-decoration: none;
}
.tbgr a.tbgr-write:hover, .tbgr a.tbgr-write:focus-visible { background: #000; color: var(--amber); }
@container (max-width: 32rem) {
    .tbgr-header { grid-template-columns: 1fr; grid-template-areas: "title" "invite" "action"; }
    .tbgr a.tbgr-write { justify-self: start; margin-top: .35rem; }
}
