/* Shared Trustpilot and Facebook review badge. */

.bb-proof {
    --review-opacity: 0.64;
    --review-ink: light-dark(#18352a, #f0f5ed);
    --review-muted: light-dark(#566960, #bac8be);

    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 14px;

    width: 100%;
    max-width: 413px;
    padding: 13px 15px;
    box-sizing: border-box;

    font: 400 11px/1.55 "Manrope", Arial, sans-serif;
    color: var(--review-muted);

    background: light-dark(
        rgb(255 255 255 / var(--review-opacity)),
        rgb(29 49 38 / 0.72)
    );
    border: 1px solid light-dark(
        rgb(255 255 255 / 0.53),
        rgb(204 229 207 / 0.15)
    );
    border-radius: 24px;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow: 0 5px 22px light-dark(
        rgb(26 60 34 / 0.06),
        rgb(0 0 0 / 0.13)
    );
}

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

.bb-review-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 54px;
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
}

.bb-review-link:hover,
.bb-review-link:focus {
    color: inherit;
    text-decoration: underline;
}

.bb-review-link:focus-visible {
    outline: 2px solid var(--review-ink);
    outline-offset: 4px;
}

.bb-review-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;

    background: light-dark(#00a8751c, #84edb521);
    color: light-dark(#078052, #9ae8b8);
}

.bb-review-symbol svg {
    width: 18px;
    height: 18px;
}

.bb-facebook .bb-review-symbol {
    background: light-dark(#1877f214, #88b6ff21);
    color: light-dark(#216acc, #9ec2ff);
}

.bb-review-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.bb-review-source,
.bb-review-count {
    font-size: 11px;
    color: var(--review-muted);
}

.bb-review-copy strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--review-ink);
    white-space: nowrap;
}

.bb-trustpilot .bb-review-copy strong,
.bb-facebook .bb-review-copy strong {
    font-size: 12px;
}

@media (max-width: 850px) {
    .bb-proof {
        grid-template-columns: 1fr;
        max-width: 320px;
        padding: 12px 15px;
        gap: 10px;
        border-radius: 22px;
    }

    .bb-review-link {
        min-height: 47px;
    }

    .bb-review-copy {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: baseline;
        column-gap: 12px;
        flex: 1;
    }

    .bb-review-source {
        grid-column: 1;
    }

    .bb-review-copy strong {
        grid-column: 1;
        grid-row: 2;
    }

    .bb-review-count {
        grid-column: 2;
        grid-row: 2;
        white-space: nowrap;
    }
}
