/* Google Reviews — Main Zone (full screen).
 * Designed to mirror Google's native review card:
 *   - White card, dark text
 *   - Header row: avatar + author + (stars · relative time)
 *   - Body: review text (auto-fit via inline JS)
 *   - Footer: business name in muted gray, separated by hairline
 */

.gr-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gr-main-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: start;
    background-color: #ffffff;
    color: #202124;
    padding: 5cqmin;
    width: 100%;
    height: calc(80% - 9.75cqmin);
    margin-top: 9.75cqmin;
    word-break: break-word;
    box-sizing: border-box;
    border-top: 2.5cqmin solid #4285F4;
    border-right: 2.5cqmin solid #EA4335;
    border-bottom: 2.5cqmin solid #FBBC04;
    border-left: 2.5cqmin solid #34A853;
}

.gr-main-google-badge {
    position: absolute;
    top: -1.25cqmin;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12cqmin;
    height: 12cqmin;
    border-radius: 50%;
    background: #fff;
    border: 2.5cqmin solid #4285F4;
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0.2cqmin 0.6cqmin rgba(0, 0, 0, 0.12);
}
.gr-main-google-badge img {
    width: 65% !important;
    height: 65% !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}

.gr-main-header {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5cqmin;
    padding-bottom: 3cqmin;
}

.gr-main-avatar {
    display: block !important;
    width: 12cqmin !important;
    height: 12cqmin !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
}
.gr-main-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.5cqmin;
    font-weight: 500;
    font-family: 'Roboto', 'Google Sans', sans-serif;
    color: #fff;
    line-height: 1;
}

.gr-main-author-block {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    gap: 0.5cqmin;
}
.gr-main-rating-block {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    margin-inline-start: auto;
}
.gr-main-author {
    font-size: 5.5cqmin;
    font-weight: 500;
    font-family: 'Roboto', 'Google Sans', sans-serif;
    color: #202124;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.gr-main-stars {
    color: #FBBC04;
    font-size: 4.5cqmin;
    letter-spacing: 0.05em;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
}
.gr-main-time {
    color: #5F6368;
    font-size: 2.6cqmin;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
}

.gr-main-mid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}
.gr-main-mid-text {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}
/* Text font-size is set inline by the per-zone fit script in display.html;
 * this CSS just provides the base typography + a fallback. */
.gr-main-text {
    font-size: 3cqmin;
    font-family: 'Roboto', sans-serif;
    color: #202124;
    line-height: 1.5;
    text-align: start;
    max-width: 100%;
}

.gr-main-bot {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 2.5cqmin;
    margin-top: 2.5cqmin;
    border-top: 1px solid #DADCE0;
}
.gr-main-biz {
    font-size: 3cqmin;
    color: #5F6368;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
