/* WP Review Widgets — front-end layouts */

.gre,
.gre *,
.gre *::before,
.gre *::after {
    box-sizing: border-box;
}

.gre {
    --gre-star: #f5b301;
    --gre-accent: #e23b4a;
    --gre-card: #ffffff;
    --gre-text: #3c4043;
    --gre-name: #202124;
    --gre-muted: #5f6368;
    --gre-gap: 22px;
    /* Same Google “G” as RichPlugins --rpi-logo-g */
    --gre-logo-g: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M482.56 261.36c0-16.73-1.5-32.83-4.29-48.27H256v91.29h127.01c-5.47 29.5-22.1 54.49-47.09 71.23v59.21h76.27c44.63-41.09 70.37-101.59 70.37-173.46z' fill='%234285f4'/%3E%3Cpath d='M256 492c63.72 0 117.14-21.13 156.19-57.18l-76.27-59.21c-21.13 14.16-48.17 22.53-79.92 22.53-61.47 0-113.49-41.51-132.05-97.3H45.1v61.15c38.83 77.13 118.64 130.01 210.9 130.01z' fill='%2334a853'/%3E%3Cpath d='M123.95 300.84c-4.72-14.16-7.4-29.29-7.4-44.84s2.68-30.68 7.4-44.84V150.01H45.1C29.12 181.87 20 217.92 20 256c0 38.08 9.12 74.13 25.1 105.99l78.85-61.15z' fill='%23fbbc05'/%3E%3Cpath d='M256 113.86c34.65 0 65.76 11.91 90.22 35.29l67.69-67.69C373.03 43.39 319.61 20 256 20c-92.25 0-172.07 52.89-210.9 130.01l78.85 61.15c18.56-55.78 70.59-97.3 132.05-97.3z' fill='%23ea4335'/%3E%3C/svg%3E");
    color: var(--gre-text);
    font-family: inherit;
    line-height: 1.45;
}

.gre a {
    color: inherit;
    text-decoration: none;
}

.gre button {
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.gre-mark {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.gre-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gre-mark--bubble {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.gre-mark--bubble svg {
    width: 24px;
    height: 24px;
}

.gre-mark--tiny {
    width: 14px;
    height: 14px;
}

/*
 * Stars — same mask glyphs + geometry as RichPlugins .rpi-stars
 * (cdn.reviewsplugin.com/assets/css/stars.css). --gre-rating is 0–5.
 */
.gre-stars,
.gre-stars--mask {
    /* Exact RichPlugins filled star mask (thicker / chunkier silhouette) */
    --gre-star-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.7881 3.21068C11.2364 2.13274 12.7635 2.13273 13.2118 3.21068L15.2938 8.2164L20.6979 8.64964C21.8616 8.74293 22.3335 10.1952 21.4469 10.9547L17.3295 14.4817L18.5874 19.7551C18.8583 20.8908 17.6229 21.7883 16.6266 21.1798L11.9999 18.3538L7.37329 21.1798C6.37697 21.7883 5.14158 20.8908 5.41246 19.7551L6.67038 14.4817L2.55303 10.9547C1.66639 10.1952 2.13826 8.74293 3.302 8.64964L8.70609 8.2164L10.7881 3.21068Z'/%3E%3C/svg%3E");
    --gre-star-empty: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
    --gre-star-size: 16px;
    --gre-star-gap: 2px;
    --gre-stars-w: calc(5 * (var(--gre-star-size) + var(--gre-star-gap)));
    --gre-bg-size: var(--gre-star-size);
    --gre-bg-size-x: calc(var(--gre-bg-size) + var(--gre-star-gap));
    --gre-fill: calc((var(--gre-rating, 0) / 5) * 100%);
    position: relative !important;
    display: inline-block !important;
    width: var(--gre-stars-w) !important;
    height: var(--gre-star-size) !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    flex: 0 0 auto;
}

.gre-stars--mask::before,
.gre-stars--mask::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: var(--gre-stars-w) !important;
    height: var(--gre-star-size) !important;
    transform: translateY(-50%) !important;
    background-color: var(--gre-star, #fb8e28) !important;
    -webkit-mask-repeat: repeat-x !important;
    -webkit-mask-position: left center !important;
    -webkit-mask-size: var(--gre-bg-size-x) var(--gre-bg-size) !important;
    mask-repeat: repeat-x !important;
    mask-position: left center !important;
    mask-size: var(--gre-bg-size-x) var(--gre-bg-size) !important;
}

/* Empty / outline track (Rich ::before uses --empty) */
.gre-stars--mask::before {
    -webkit-mask-image: var(--gre-star-empty) !important;
    mask-image: var(--gre-star-empty) !important;
    background-color: #ccc !important;
}

/* Filled stars (Rich ::after uses --mask + clip-path) */
.gre-stars--mask::after {
    -webkit-mask-image: var(--gre-star-mask) !important;
    mask-image: var(--gre-star-mask) !important;
    background-color: var(--gre-star, #fb8e28) !important;
    clip-path: inset(0 calc(100% - var(--gre-fill)) 0 0) !important;
}

/* Legacy per-star SVG (kept harmless if old markup is cached) */
.gre-star {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    font-size: 16px;
}

.gre-star svg {
    display: block;
    width: 1em;
    height: 1em;
}

.gre-star-bg {
    fill: #e4e5e7;
}

.gre-star-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--gre-fill, 0%);
    overflow: hidden;
}

.gre-star-fill svg {
    fill: var(--gre-star);
}

.gre-rating-num {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gre-score-line,
.gre-fab-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gre-based {
    color: var(--gre-muted);
    font-size: 14px;
}

/* Static: inline bar, banner */

.gre--align-center {
    display: flex;
    justify-content: center;
}

.gre--static-inline,
.gre--static-banner {
    color: inherit;
}

/*
 * Inline bar — vertical middle align; element gaps halved vs Peekwise.
 * 36px G · 7px · 21px/700 label · 10px sep 10px · score · 5px · 22px stars
 * Star-to-star gap unchanged (--gre-star-gap: 3px).
 */
.gre-summary--inline,
.gre-summary--inline:link,
.gre-summary--inline:visited,
.gre-summary--inline:hover,
.gre-summary--inline:focus,
.gre-summary--inline:active {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    max-width: 100%;
    height: 38px;
    margin: 0;
    padding: 0;
    color: var(--gre-text, #202124) !important;
    font-family: inherit;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle;
    opacity: 1 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    cursor: pointer;
}

.gre-summary--inline:focus-visible {
    outline: 2px solid var(--gre-accent, #4fce6a);
    outline-offset: 3px;
}

.gre-summary--inline .gre-mark {
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    margin: 0 7px 0 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.gre-summary--inline .gre-mark svg {
    display: block;
    width: 36px;
    height: 36px;
}

.gre-inline-label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 22px;
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    line-height: 22px !important;
    color: inherit !important;
}

.gre-inline-sep {
    display: inline-block !important;
    width: 2px;
    height: 18px;
    margin: 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: currentColor !important;
    opacity: 1 !important;
    flex: 0 0 2px;
    align-self: center !important;
}

.gre-summary--inline .gre-score-line {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 22px !important;
    line-height: 1 !important;
}

.gre-summary--inline .gre-rating-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 22px !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    color: inherit !important;
    letter-spacing: -0.01em !important;
    line-height: 22px !important;
}

.gre-summary--inline .gre-inline-count {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 22px !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    color: inherit !important;
    letter-spacing: -0.01em !important;
    line-height: 22px !important;
    opacity: 1 !important;
}

.gre-summary--inline .gre-stars,
.gre-summary--inline .gre-stars--mask {
    --gre-star-size: 22px;
    --gre-star-gap: 3px;
    display: inline-block !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    vertical-align: middle !important;
}

/* Keep star glyphs flush in the 22px box (no translateY optical shift) */
.gre-summary--inline .gre-stars--mask::before,
.gre-summary--inline .gre-stars--mask::after {
    top: 0 !important;
    transform: none !important;
    height: 100% !important;
}

@media (max-width: 520px) {
    .gre-summary--inline,
    .gre-summary--inline:hover,
    .gre-summary--inline:focus,
    .gre-summary--inline:active {
        height: 32px;
    }

    .gre-summary--inline .gre-mark {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        margin-right: 5px !important;
    }

    .gre-summary--inline .gre-mark svg {
        width: 28px;
        height: 28px;
    }

    .gre-inline-label,
    .gre-summary--inline .gre-rating-num,
    .gre-summary--inline .gre-inline-count {
        height: 18px !important;
        font-size: 16px !important;
        line-height: 18px !important;
    }

    .gre-inline-sep {
        height: 14px;
        margin: 0 6px !important;
    }

    .gre-summary--inline .gre-score-line {
        height: 18px !important;
        gap: 4px !important;
    }

    .gre-summary--inline .gre-stars,
    .gre-summary--inline .gre-stars--mask {
        --gre-star-size: 18px;
        --gre-star-gap: 2px;
    }
}

/*
 * Banner — match jbedigital.com.au RichPlugins embed badge exactly:
 * 44px G, 8px gap, 18px/600 score, 16px stars @ 5px gap, 13px based.
 * Tones: coloured (ink + gold stars), flat white, flat black.
 */
.gre-summary--banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 44px;
    color: var(--gre-banner-ink, inherit);
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    line-height: normal;
    vertical-align: middle;
}

.gre-summary--banner .gre-mark,
.gre-summary--banner .gre-logo-mono {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.gre-summary--banner .gre-mark svg,
.gre-summary--banner .gre-logo-mono svg {
    display: block;
    width: 44px;
    height: 44px;
}

.gre-mark--mono {
    color: currentColor;
}

.gre-mark--mono svg path {
    fill: currentColor !important;
}

.gre-mark--white {
    color: #ffffff !important;
}

.gre-mark--black {
    color: #000000 !important;
}

.gre-summary--inline .gre-mark--mono,
.gre-summary--banner .gre-mark--mono {
    /* Keep mono G from inheriting Text colour when white/black is chosen */
    color: inherit;
}

.gre-summary--inline .gre-mark--white,
.gre-summary--banner .gre-mark--white {
    color: #ffffff !important;
}

.gre-summary--inline .gre-mark--black,
.gre-summary--banner .gre-mark--black {
    color: #000000 !important;
}

.gre-banner-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 3px;
}

.gre-summary--banner .gre-score-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 25px;
    line-height: 1;
}

.gre-summary--banner .gre-rating-num {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    color: inherit;
    line-height: normal;
    margin: 4px 0 0;
}

.gre-summary--banner .gre-stars,
.gre-summary--banner .gre-stars--mask {
    --gre-star-size: 16px;
    --gre-star-gap: 2px;
}

.gre-summary--banner .gre-based {
    display: block;
    margin: 0;
    color: inherit;
    opacity: 1;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
}

/* Flat white / black: logo, score, and “Based on…” share one ink.
 * Stars always use --gre-star from the Stars colour setting. */
.gre--banner-tone-white,
.gre--banner-tone-white .gre-summary--banner {
    --gre-banner-ink: #ffffff;
    color: #ffffff;
}

.gre--banner-tone-black,
.gre--banner-tone-black .gre-summary--banner {
    --gre-banner-ink: #000000;
    color: #000000;
}

.gre--banner-tone-white .gre-stars--mask,
.gre--banner-tone-black .gre-stars--mask {
    color: var(--gre-star, #fb8e28);
}


/* Review cards, shared by grid, carousel, and the slide-out list */

.gre-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 240px;
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
    color: var(--gre-text);
    border-radius: 20px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.gre-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gre-card-heading {
    display: block;
    margin: 0 0 10px;
    color: var(--gre-name, #202124);
    font-size: calc(var(--gre-name-size, 14px) * 1.5);
    font-weight: 700;
    line-height: 1.3;
}

.gre-card-text {
    flex: 0 1 auto;
    min-height: 0;
    max-height: var(--gre-text-max, 150px);
    overflow: auto;
    padding-right: 8px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: #c5c8c6 transparent;
}

.gre-card-text::-webkit-scrollbar {
    width: 8px;
}

.gre-card-text::-webkit-scrollbar-thumb {
    background: #c5c8c6;
    border-radius: 8px;
}

.gre-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--gre-name);
    font-size: var(--gre-name-size, 14px);
    font-weight: 700;
}

.gre-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.gre-review-name,
.gre-review-heading {
    display: block;
    color: var(--gre-name);
    font-weight: 700;
    font-size: inherit;
}

.gre-card-author a:hover {
    text-decoration: underline;
}

.gre-author-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.gre-date,
.gre-author-line {
    display: block;
    margin-top: 2px;
    color: var(--gre-muted);
    font-size: 12px;
    font-weight: 400;
}

.gre--grid {
    container-type: inline-size;
}

.gre-grid {
    display: grid;
    grid-template-columns: repeat(var(--gre-cols, 3), minmax(0, 1fr));
    gap: var(--gre-gap);
}

.gre-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
    width: 100%;
}

.gre-more {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 28px;
    border: 1px solid rgba(60, 64, 67, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #202124;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.gre-more:hover,
.gre-more:focus {
    border-color: var(--gre-accent, #e23b4a);
    color: var(--gre-accent, #e23b4a);
    outline: none;
}

.gre-more:focus-visible {
    outline: 2px solid var(--gre-accent, #e23b4a);
    outline-offset: 2px;
}

.gre-more.is-loading {
    opacity: 0.65;
    cursor: wait;
    pointer-events: none;
}

.gre-more[hidden] {
    display: none !important;
}

@container (max-width: 620px) {
    .gre--grid .gre-grid {
        grid-template-columns: repeat(var(--gre-cols-mobile, 1), minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gre--grid .gre-grid {
        grid-template-columns: repeat(var(--gre-cols-mobile, 1), minmax(0, 1fr));
    }
}

/* Carousel — no separator line */

.gre--carousel {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

.gre-carousel {
    position: relative;
    /* Room for nav arrows outside the clipped viewport */
    padding: 8px 52px 12px;
    border: 0;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

.gre-viewport {
    /* Clip the sliding track, but pad enough that card shadows stay soft */
    overflow: hidden;
    touch-action: pan-y;
    border: 0;
    box-shadow: none;
    /* Card shadow is 0 10px 28px — need ≥28px all sides so blur is not hard-cut */
    padding: 32px 36px 40px;
    margin: 0 -8px;
    box-sizing: border-box;
    /* Soft-fade peeking prev/next slides instead of a hard clip line */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 56px,
        #000 calc(100% - 56px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 56px,
        #000 calc(100% - 56px),
        transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

@media (max-width: 640px) {
    .gre-viewport {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 28px,
            #000 calc(100% - 28px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 28px,
            #000 calc(100% - 28px),
            transparent 100%
        );
    }
}

.gre-track {
    display: flex;
    align-items: stretch;
    gap: var(--gre-gap);
    transition: transform 0.45s ease;
    border: 0;
    box-shadow: none;
}

.gre--carousel .gre-card {
    flex: 0 0 auto;
    align-self: stretch;
    height: auto;
    /* Keep shadow fully inside the padded viewport */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Same scrollable text area as grid — long testimonials stay inside the card */
.gre--carousel .gre-card-text {
    flex: 1 1 auto;
    max-height: var(--gre-text-max, 150px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c5c8c6 transparent;
}

/* Beat theme button styles that turn arrows into black rectangles over cards */
.gre--carousel .gre-nav,
.gre .gre-nav {
    position: absolute !important;
    top: 50% !important;
    z-index: 3;
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(60, 64, 67, 0.12) !important;
    border-radius: 50% !important;
    background: #fff !important;
    background-image: none !important;
    color: #3c4043 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14) !important;
    transform: translateY(-50%) !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer;
}

.gre--carousel .gre-nav svg,
.gre .gre-nav svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
}

.gre--carousel .gre-nav--prev,
.gre .gre-nav--prev {
    left: 0 !important;
    right: auto !important;
}

.gre--carousel .gre-nav--next,
.gre .gre-nav--next {
    right: 0 !important;
    left: auto !important;
}

.gre--carousel .gre-nav:hover,
.gre--carousel .gre-nav:focus,
.gre .gre-nav:hover,
.gre .gre-nav:focus {
    background: #fff !important;
    color: #111 !important;
    border-color: rgba(60, 64, 67, 0.22) !important;
}

.gre--carousel .gre-nav:disabled,
.gre--carousel .gre-nav[hidden],
.gre .gre-nav:disabled,
.gre .gre-nav[hidden] {
    opacity: 0.35;
    cursor: default;
}

.gre-nav:focus-visible,
.gre-fab:focus-visible,
.gre-panel-close:focus-visible {
    outline: 2px solid var(--gre-accent);
    outline-offset: 2px;
}

/*
 * Floating badge — six selectable layouts (stripe default).
 * Div[role=button] avoids theme <button> chrome. Fixed 30px from side + bottom.
 */

.gre--floating {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
}

div.gre-fab,
.gre-fab {
    position: fixed !important;
    z-index: 99991;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 60px);
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
    background-image: none !important;
    color: #202124 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18) !important;
    filter: none !important;
    outline: none !important;
    cursor: pointer;
    overflow: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

div.gre-fab:hover,
div.gre-fab:focus,
div.gre-fab:active,
.gre-fab:hover,
.gre-fab:focus,
.gre-fab:active {
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22) !important;
    color: #202124 !important;
    outline: none;
}

.gre-fab:focus-visible {
    outline: 2px solid var(--gre-accent, #4fce6a) !important;
    outline-offset: 3px;
}

.gre-fab__body {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 10px 14px;
    background: transparent !important;
    color: inherit !important;
}

.gre-fab__rule {
    display: block !important;
    width: 1px;
    align-self: stretch;
    flex: 0 0 1px;
    margin: 4px 0;
    background: #dadce0 !important;
}

.gre-fab__line {
    display: none !important;
}

.gre--pos-right .gre-fab,
.gre--pos-bottom-right .gre-fab {
    right: 30px !important;
    bottom: 30px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.gre--pos-left .gre-fab,
.gre--pos-bottom-left .gre-fab {
    left: 30px !important;
    bottom: 30px !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

.gre-fab .gre-mark {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.gre-fab .gre-mark svg {
    display: block;
    width: 40px;
    height: 40px;
}

.gre-fab-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    color: inherit;
}

.gre-fab-title {
    display: none;
}

.gre-fab .gre-fab-line,
.gre-fab-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    line-height: 1;
}

.gre-fab .gre-rating-num {
    margin: 0;
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
}

.gre-fab .gre-stars,
.gre-fab .gre-stars--mask {
    --gre-star-size: 18px;
    --gre-star-gap: 2px;
}

.gre-fab .gre-fab-line {
    height: 24px;
}

.gre-fab .gre-based {
    display: block;
    margin: 0;
    color: #70757a;
    opacity: 1;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    white-space: nowrap;
}

.gre-fab-label {
    display: none;
}

/* 1) Clean white (default) */
.gre-fab--clean {
    overflow: hidden !important;
}

/* 2) Google stripe — thicker bottom bar, clipped to rounded card corners */
.gre-fab--stripe,
div.gre-fab.gre-fab--stripe {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding-bottom: 0 !important;
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
    background-image: none !important;
    box-shadow:
        0 0 0 1px #e0e0e0,
        0 4px 18px rgba(0, 0, 0, 0.18) !important;
}

div.gre-fab.gre-fab--stripe:hover,
div.gre-fab.gre-fab--stripe:focus,
div.gre-fab.gre-fab--stripe:active,
.gre-fab--stripe:hover,
.gre-fab--stripe:focus,
.gre-fab--stripe:active {
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow:
        0 0 0 1px #e0e0e0,
        0 6px 22px rgba(0, 0, 0, 0.22) !important;
}

/* Paint the Google colour bar as the last flex child so overflow:hidden rounds it */
.gre-fab--stripe::after,
div.gre-fab.gre-fab--stripe::after {
    content: "" !important;
    display: block !important;
    box-sizing: border-box !important;
    flex: 0 0 10px !important;
    width: 100% !important;
    height: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background-image: linear-gradient(
        to right,
        #4285f4 0 25%,
        #ea4335 0 50%,
        #fbbc05 0 75%,
        #34a853 0 100%
    ) !important;
    background-color: transparent !important;
    pointer-events: none !important;
}

/* 3) Speech bubble */
.gre-fab--bubble,
div.gre-fab.gre-fab--bubble {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.gre-fab--bubble:hover,
.gre-fab--bubble:focus,
.gre-fab--bubble:active,
div.gre-fab.gre-fab--bubble:hover,
div.gre-fab.gre-fab--bubble:focus,
div.gre-fab.gre-fab--bubble:active {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.gre-fab__shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
}

.gre-fab__bubble {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4285f4 0%, #ea4335 32%, #fbbc05 66%, #34a853 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.gre-fab__bubble .gre-fab__body {
    border-radius: 16px;
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
}

.gre-fab__tail {
    position: relative;
    z-index: 2;
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
    width: auto;
    height: 12px;
    margin: -2px 0 0;
    padding: 0;
    line-height: 0;
    background: transparent !important;
    border: 0 !important;
    overflow: visible;
    pointer-events: none;
}

.gre-fab__tail-svg {
    display: block !important;
    width: 22px !important;
    height: 12px !important;
    overflow: visible;
}

.gre-fab__tail-stroke {
    fill: #ea4335 !important;
}

.gre-fab__tail-fill {
    fill: #ffffff !important;
}

/* 4) Reviews tab */
.gre-fab--tab {
    overflow: visible !important;
    border: 1.5px solid #a8c7fa !important;
    border-radius: 16px !important;
    padding-top: 14px !important;
    box-shadow: 0 4px 18px rgba(66, 133, 244, 0.18) !important;
}

.gre-fab__reviews-tab {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #a8c7fa;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.12);
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.3;
    color: #3c4043;
}

.gre-fab__google-word {
    display: inline-flex;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gre-fab__google-word i {
    font-style: normal;
}

.gre-fab__google-word i:nth-child(1) { color: #4285f4; }
.gre-fab__google-word i:nth-child(2) { color: #ea4335; }
.gre-fab__google-word i:nth-child(3) { color: #fbbc05; }
.gre-fab__google-word i:nth-child(4) { color: #4285f4; }
.gre-fab__google-word i:nth-child(5) { color: #34a853; }
.gre-fab__google-word i:nth-child(6) { color: #ea4335; }

.gre-fab__reviews-word {
    font-weight: 600;
    color: #3c4043;
}

/* 5) Verified — match reference: soft white card, thin green border, shield on corner */
.gre-fab--verified,
div.gre-fab.gre-fab--verified {
    overflow: visible !important;
    border: 1.5px solid #34a853 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

div.gre-fab.gre-fab--verified:hover,
div.gre-fab.gre-fab--verified:focus,
div.gre-fab.gre-fab--verified:active,
.gre-fab--verified:hover,
.gre-fab--verified:focus,
.gre-fab--verified:active {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1.5px solid #34a853 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
}

.gre-fab--verified .gre-fab__body {
    gap: 8px;
    padding: 10px 14px 10px 12px;
}

.gre-fab--verified .gre-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.gre-fab--verified .gre-mark svg {
    width: 42px;
    height: 42px;
}

.gre-fab--verified .gre-fab__rule {
    margin: 6px 0;
    background: #e0e0e0 !important;
}

.gre-fab--verified .gre-rating-num {
    color: #202124;
    font-size: 22px;
    font-weight: 700;
}

.gre-fab--verified .gre-stars,
.gre-fab--verified .gre-stars--mask {
    --gre-star-size: 18px;
    --gre-star-gap: 2px;
}

.gre-fab--verified .gre-based {
    color: #70757a;
    font-size: 13px;
}

.gre-fab__verified {
    position: absolute;
    top: -16px;
    right: -2px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    line-height: 0;
    pointer-events: none;
}

.gre-fab__verified-icon,
.gre-fab__verified svg {
    display: block;
    width: 30px !important;
    height: 34px !important;
    overflow: visible;
}

/* 6) Google chip */
.gre-fab--chip {
    overflow: visible !important;
    border-radius: 16px !important;
    padding-top: 8px !important;
}

.gre-fab__chip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px 2px 3px;
    border-radius: 999px;
    background: #e8f5e9;
    box-shadow: 0 2px 6px rgba(52, 168, 83, 0.18);
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
    color: #202124;
}

.gre-fab__chip-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #34a853;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
    flex: 0 0 18px;
}

.gre-fab__chip-check svg {
    display: block;
    width: 14px;
    height: 14px;
    overflow: visible;
}

.gre-fab__chip-text strong {
    font-weight: 700;
}

.gre-scrim {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(32, 16, 18, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gre--floating.is-open .gre-scrim {
    opacity: 1;
    pointer-events: auto;
}

.gre-panel {
    position: fixed;
    top: 0;
    z-index: 99992;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    height: 100%;
    background: #f6f3f3;
    color: #202124;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.35s ease;
}

.gre--pos-right .gre-panel,
.gre--pos-bottom-right .gre-panel {
    right: 0;
    transform: translateX(105%);
}

.gre--pos-left .gre-panel,
.gre--pos-bottom-left .gre-panel {
    left: 0;
    transform: translateX(-105%);
}

.gre--floating.is-open .gre-panel {
    transform: translateX(0);
}

.gre-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 14px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.gre-panel-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gre-panel-title strong {
    font-size: 18px;
    line-height: 1.3;
}

.gre-panel-title .gre-based {
    color: #5f6368;
}

.gre--floating .gre-panel-close,
.gre-panel-close {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3c4043;
    font: inherit;
    font-size: 0;
    line-height: 0;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.gre--floating .gre-panel-close:hover,
.gre-panel-close:hover {
    background: #f1f3f4;
    color: #202124;
}

.gre-panel-close__icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: none;
    pointer-events: none;
}

.gre-panel-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    min-height: 0; /* allow body to scroll inside fixed panel */
    -webkit-overflow-scrolling: touch;
}

/* Cards must keep natural height — min-height:0 + flex shrink caused stacked overlap. */
.gre--floating .gre-panel .gre-card,
.gre-panel .gre-card {
    position: relative;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    margin: 0;
    background: var(--gre-card, #ffffff) !important;
    background-color: var(--gre-card, #ffffff) !important;
    box-shadow: none;
    border: 1px solid #eceff1;
}

.gre--floating .gre-panel .gre-card-top,
.gre--floating .gre-panel .gre-card-author,
.gre-panel .gre-card-top,
.gre-panel .gre-card-author {
    flex: 0 0 auto;
}

.gre--floating .gre-panel .gre-card-text,
.gre-panel .gre-card-text {
    flex: 0 0 auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.gre-panel-footer {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    color: var(--gre-accent);
    font-weight: 700;
    text-align: center;
}

.gre-panel-footer:hover {
    text-decoration: underline;
}

body.admin-bar .gre-panel {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    body.admin-bar .gre-panel {
        top: 46px;
        height: calc(100% - 46px);
    }

    .gre--hide-mobile {
        display: none !important;
    }
}

.gre-empty,
.gre-admin-note {
    margin: 0;
    color: inherit;
    font-size: 14px;
    opacity: 0.8;
}

html.gre-scroll-lock {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .gre-track,
    .gre-panel,
    .gre-scrim {
        transition: none;
    }
}

/* Keep the fixed badge from covering the block editor canvas. */
.editor-styles-wrapper .gre--floating .gre-fab,
.block-editor-block-list__layout .gre--floating .gre-fab {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    border-radius: 2px !important;
}

.editor-styles-wrapper .gre--floating .gre-panel,
.block-editor-block-list__layout .gre--floating .gre-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    height: auto;
    max-height: 480px;
    transform: none;
}

.editor-styles-wrapper .gre--floating .gre-scrim,
.block-editor-block-list__layout .gre--floating .gre-scrim {
    display: none;
}
