/* Custom Reviews — Main Zone (full screen).
 * Mirrors the Google Reviews main-zone visual language but with the
 * author photo rendered INLINE before the author name. Separate
 * `cr-*` class prefix so changes here never affect Google Reviews.
 *
 * Layout: 20% top (photo + author) / 60% mid (text + stars) / 20% bot.
 */

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

.cr-main-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    text-align: center;
    background-color: var(--accent, #3498db);
    color: #fff;
    padding: 4cqmin;
    width: 100%;
    height: 100%;
    word-break: break-word;
    box-sizing: border-box;
    box-shadow:
         2.5cqmin  2.5cqmin 0 color-mix(in srgb, var(--accent, #3498db), black 25%),
        -2.5cqmin -2.5cqmin 0 color-mix(in srgb, var(--accent, #3498db), white 25%);
}

.cr-main-top {
    flex: 0 0 20%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5%;
    min-height: 0;
    overflow: hidden;
}
.cr-main-mid {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2cqmin;
    min-height: 0;
    overflow: hidden;
    padding: 2.5% 1cqmin 0 1cqmin;
}
.cr-main-mid-text {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cr-main-bot {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

/* Avatar — kept inline in the row, sized in cqmin so it scales with
 * the zone. `margin: 0 !important` overrides the global
 * `.slide-text img { margin: 0.5em auto }` rule that would otherwise
 * push the photo and author apart with auto margins. */
.cr-main-avatar {
    height: 100% !important;
    width: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 0.4cqmin solid rgba(255, 255, 255, 0.6);
    box-shadow: rgba(0, 0, 0, 0.2) 0 0.3cqmin 0.6cqmin;
    box-sizing: border-box;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
}
.cr-main-avatar-initial {
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8cqmin;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-style: normal;
    line-height: 1;
}

.cr-main-quote {
    position: absolute;
    top: 1.5cqmin;
    left: 3cqmin;
    font-size: 24cqmin;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    opacity: 0.28;
    line-height: 1;
    pointer-events: none;
}

.cr-main-author-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4cqmin;
    min-width: 0;
    text-align: start;
}
.cr-main-author {
    font-size: 6cqmin;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.cr-main-author-title {
    font-size: 3.2cqmin;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    opacity: 0.75;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.cr-main-stars {
    margin-top: 2.5%;
    margin-bottom: 2.5%;
    font-size: 7cqmin;
    color: #FBBC04;
    letter-spacing: 0.2em;
    line-height: 1;
    -webkit-text-stroke: 0.4cqmin var(--text, #000);
    text-shadow:
        rgba(0, 0, 0, 0.16) 0 0.3cqmin 0.6cqmin,
        rgba(0, 0, 0, 0.23) 0 0.3cqmin 0.6cqmin;
}
.cr-main-text {
    font-size: 3cqmin;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    line-height: 1.4;
    opacity: 0.95;
    max-width: 100%;
}
.cr-main-biz {
    font-size: 3cqmin;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
