/**
 * Clever & Sporty overrides for EXT:icc_google_reviews.
 *
 * The extra `body` scope keeps these rules authoritative even when the
 * extension registers its component stylesheet through the AssetCollector.
 */

body .icc-google-reviews {
    --reviews-bg: #f3f4f5;
    --reviews-card: #ffffff;
    --reviews-text: #0a1f33;
    --reviews-muted: #424751;
    --reviews-accent: #004c97;
    --reviews-border: #e1e3e4;
    margin-block: clamp(3rem, 7vw, 6rem);
    color: var(--reviews-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body .icc-google-reviews__intro {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

body .icc-google-reviews .icc-google-reviews__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: #004c97;
    font-family: "JetBrains Mono", "Inter", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

body .icc-google-reviews .icc-google-reviews__eyebrow::before {
    width: 1.75rem;
    height: 0.2rem;
    border-radius: 999px;
    background: #f39200;
    content: "";
}

body .icc-google-reviews .icc-google-reviews__title {
    max-width: 22ch;
    color: #0a1f33;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-transform: none;
}

body .icc-google-reviews__member {
    padding: 0.75rem 1rem;
    border: 1px solid #e1e3e4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(10, 31, 51, 0.08);
}

body .icc-google-reviews__member figcaption {
    color: #424751;
    font-family: "JetBrains Mono", "Inter", monospace;
}

body .icc-google-reviews__google-content {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #e1e3e4;
    border-radius: 16px;
    background: #f3f4f5;
    box-shadow: 0 18px 48px rgba(10, 31, 51, 0.09);
}

body .icc-google-reviews__summary {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 0;
    border-radius: 12px;
    background: #0a1f33;
    box-shadow: 0 14px 34px rgba(10, 31, 51, 0.18);
}

body .icc-google-reviews__summary .icc-google-reviews__eyebrow {
    color: #f39200;
}

body .icc-google-reviews__summary .icc-google-reviews__eyebrow::before {
    background: #ffffff;
}

body .icc-google-reviews .icc-google-reviews__place,
body .icc-google-reviews__summary .icc-google-reviews__score {
    color: #ffffff;
}

body .icc-google-reviews .icc-google-reviews__place {
    margin-bottom: 1rem;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 700;
}

body .icc-google-reviews__summary .icc-google-reviews__score > span,
body .icc-google-reviews__summary .icc-google-reviews__count {
    color: #dbe3eb;
}

body .icc-google-reviews .icc-google-reviews__maps-link {
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border: 1px solid #f39200;
    border-radius: 999px;
    background: #f39200;
    color: #0a1f33;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    box-shadow: 0 10px 18px rgba(243, 146, 0, 0.22);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body .icc-google-reviews .icc-google-reviews__maps-link:hover {
    border-color: #d97f00;
    background: #d97f00;
    color: #0a1f33;
    text-decoration: none;
    transform: translateY(-1px);
}

body .icc-google-reviews .icc-google-reviews__maps-link:focus-visible,
body .icc-google-reviews a:focus-visible,
body .icc-google-reviews summary:focus-visible {
    outline: 3px solid #f39200;
    outline-offset: 4px;
}

body .icc-google-reviews .icc-google-reviews__notice {
    margin: 1.25rem 0;
    color: #424751;
}

body .icc-google-reviews__list {
    gap: 1.25rem;
    align-items: stretch;
}

body .icc-google-reviews__review {
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid #e1e3e4;
    border-top: 4px solid #f39200;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(10, 31, 51, 0.08);
}

body .icc-google-reviews__author {
    margin-bottom: 0.85rem;
    font-family: "Sora", "Inter", system-ui, sans-serif;
}

body .icc-google-reviews__author img {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #f39200;
}

body .icc-google-reviews__author a,
body .icc-google-reviews__author span {
    color: #0a1f33;
}

body .icc-google-reviews time {
    color: #5f6670;
}

body .icc-google-reviews__stars {
    color: #f39200;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    body .icc-google-reviews__stars {
        background-image: linear-gradient(to right, #f39200 0%, #f39200 var(--rating-percent, 100%), #bcc2c8 var(--rating-percent, 100%), #bcc2c8 100%);
    }
}

body .icc-google-reviews .icc-google-reviews__text,
body .icc-google-reviews__preview {
    color: #26384a;
    font-size: 0.95rem;
    line-height: 1.7;
}

body .icc-google-reviews__read-more,
body .icc-google-reviews__read-less,
body .icc-google-reviews .icc-google-reviews__original,
body .icc-google-reviews__attribution a {
    color: #004c97;
}

body .icc-google-reviews__read-more,
body .icc-google-reviews__read-less {
    font-family: "Sora", "Inter", system-ui, sans-serif;
}

body .icc-google-reviews .icc-google-reviews__original {
    border-top-color: #e1e3e4;
    font-weight: 700;
}

body .icc-google-reviews__attribution {
    border-top-color: #d3d7da;
    color: #424751;
}

body .icc-google-reviews__logo {
    border: 1px solid #e1e3e4;
    border-radius: 8px;
}

body .icc-google-reviews__debug {
    border: 1px solid #004c97;
    border-radius: 12px;
    background: #ffffff;
    color: #0a1f33;
}

@media (max-width: 767.98px) {
    body .icc-google-reviews {
        margin-block: 2.5rem;
    }

    body .icc-google-reviews__member {
        width: 100%;
    }

    body .icc-google-reviews__summary {
        padding: 1.25rem;
    }
}
