.asgr-badge,
.asgr-section {
    --asgr-ink: #263238;
    --asgr-muted: #66737f;
    --asgr-line: #d8dee5;
    --asgr-soft-line: #eef2f5;
    --asgr-surface: #ffffff;
    --asgr-blue: #2563eb;
    --asgr-green: #168a5b;
    --asgr-yellow: #f4b400;
    color: var(--asgr-ink);
    font-family: inherit;
}

.asgr-badge[hidden] {
    display: none !important;
}

.asgr-badge {
    position: fixed;
    bottom: 88px;
    z-index: 1040;
    width: min(286px, calc(100vw - 32px));
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.asgr-badge-preview,
.asgr-badge-panel {
    display: block;
    position: relative;
    padding: 15px 15px 14px;
    background: var(--asgr-surface);
    border: 1px solid var(--asgr-line);
    border-top: 3px solid var(--asgr-yellow);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(38, 50, 56, 0.18);
}

.asgr-badge.is-collapsible:not(.is-expanded) .asgr-badge-panel {
    display: none;
}

.asgr-badge.is-collapsible.is-expanded .asgr-badge-preview {
    display: none;
}

.asgr-badge-left {
    left: 16px;
}

.asgr-badge-right {
    right: 16px;
}

.asgr-badge-preview-toggle {
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 0 24px 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.asgr-badge-preview-toggle:hover,
.asgr-badge-preview-toggle:focus {
    outline: none;
}

.asgr-badge-preview-rating {
    display: flex;
    gap: 8px;
    align-items: center;
}

.asgr-badge-preview-rating strong {
    color: var(--asgr-ink);
    font-size: 20px;
    line-height: 1;
}

.asgr-badge-preview-count {
    color: var(--asgr-muted);
    font-size: 13px;
    line-height: 1.2;
}

.asgr-badge-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--asgr-muted);
    cursor: pointer;
    font-size: 17px;
    line-height: 24px;
}

.asgr-badge-close:hover,
.asgr-badge-close:focus {
    background: var(--asgr-soft-line);
    color: var(--asgr-ink);
    outline: none;
}

.asgr-google-maps-attribution {
    color: #5e5e5e;
    font-family: inherit;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.2;
    white-space: nowrap;
}

.asgr-badge-source {
    display: grid;
    gap: 3px;
    margin-bottom: 10px;
    padding-right: 22px;
    color: var(--asgr-muted);
    font-size: 12px;
    line-height: 1.2;
}

.asgr-badge-eyebrow {
    color: var(--asgr-ink);
    font-size: 13px;
    font-weight: 700;
}

.asgr-source-label {
    color: var(--asgr-muted);
    font-size: 12px;
}

.asgr-badge-top {
    display: flex;
    gap: 11px;
    align-items: center;
    padding-right: 20px;
}

.asgr-badge-main {
    min-width: 0;
}

.asgr-badge-rating,
.asgr-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asgr-badge-rating strong,
.asgr-summary strong {
    font-size: 19px;
    line-height: 1;
}

.asgr-badge-count,
.asgr-summary span:last-child,
.asgr-review-date {
    color: var(--asgr-muted);
    font-size: 13px;
}

.asgr-badge-actions {
    display: grid;
    gap: 6px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--asgr-soft-line);
}

.asgr-badge-actions a {
    display: flex;
    min-height: 34px;
    padding: 7px 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--asgr-soft-line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--asgr-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.asgr-section-actions a {
    color: var(--asgr-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.asgr-badge-actions a:hover,
.asgr-badge-actions a:focus {
    border-color: #c8d6ea;
    background: #eef5ff;
    text-decoration: none;
}

.asgr-section-actions a:hover {
    text-decoration: underline;
}

.asgr-stars,
.asgr-review-stars {
    display: inline-flex;
    gap: 1px;
    white-space: nowrap;
}

.asgr-star,
.asgr-review-stars span {
    position: relative;
    display: inline-block;
    color: #c9d2de;
    font-size: 15px;
    line-height: 1;
}

.asgr-badge .asgr-star {
    font-size: 19px;
}

.asgr-badge .asgr-stars {
    gap: 2px;
}

.asgr-star-full,
.asgr-review-stars .asgr-star-full {
    color: var(--asgr-yellow);
}

.asgr-star-half {
    color: #c9d2de;
}

.asgr-star-half::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
    color: var(--asgr-yellow);
    content: "\2605";
}

.asgr-section {
    width: 100%;
    margin: 46px 0 28px;
    background: transparent;
}

.asgr-section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 8px;
    border-top: 1px solid var(--asgr-line);
}

.asgr-section-head {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.asgr-kicker {
    margin: 0 0 4px;
    color: var(--asgr-green);
    font-size: 13px;
    font-weight: 700;
}

.asgr-kicker .asgr-google-maps-attribution {
    font-size: 13px;
}

.asgr-section h2 {
    margin: 0;
    color: var(--asgr-ink);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.asgr-summary {
    padding: 0;
    background: transparent;
    border: 0;
}

.asgr-slider {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: stretch;
}

.asgr-slider-viewport {
    position: relative;
    min-height: 176px;
}

.asgr-review {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    background: transparent;
    border-top: 1px solid var(--asgr-soft-line);
    border-bottom: 1px solid var(--asgr-soft-line);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.asgr-review.is-active {
    opacity: 1;
    pointer-events: auto;
}

.asgr-section .asgr-review-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--asgr-soft-line);
    border-left: 3px solid var(--asgr-yellow);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(38, 50, 56, 0.06);
    color: var(--asgr-ink);
}

.asgr-review-author-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.asgr-section .asgr-review-author {
    display: flex;
    margin: 0 0 7px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--asgr-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.asgr-section .asgr-review-author-name {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 9px;
    align-items: center;
    border: 1px solid var(--asgr-line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(38, 50, 56, 0.06);
    color: var(--asgr-ink);
    font: inherit;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.asgr-section .asgr-review-author-name:hover,
.asgr-section .asgr-review-author-name:focus {
    border-color: #c8d6ea;
    background: #f8fafc;
    color: var(--asgr-ink);
    outline: none;
    text-decoration: none;
}

.asgr-section .asgr-review-date {
    display: inline-flex;
    padding-top: 4px;
    background: transparent;
    color: var(--asgr-muted);
}

.asgr-review h3 {
    margin: 0 0 6px;
    color: var(--asgr-ink);
    font-size: 16px;
    font-weight: 700;
}

.asgr-review-text {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--asgr-ink);
    font-size: 15px;
    line-height: 1.6;
}

.asgr-slider-button {
    width: 40px;
    min-height: 40px;
    border: 1px solid var(--asgr-line);
    border-radius: 50%;
    background: var(--asgr-surface);
    color: var(--asgr-blue);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.asgr-slider-button:hover,
.asgr-slider-button:focus {
    border-color: var(--asgr-blue);
    outline: none;
}

.asgr-section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.asgr-section-source,
.asgr-third-party-attributions {
    margin: 10px 0 0;
    color: var(--asgr-muted);
    font-size: 12px;
    line-height: 1.4;
}

.asgr-third-party-attributions {
    display: grid;
    gap: 3px;
}

@media (max-width: 720px) {
    .asgr-section {
        margin-top: 34px;
    }

    .asgr-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .asgr-section h2 {
        font-size: 23px;
    }

    .asgr-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .asgr-slider {
        grid-template-columns: 1fr 1fr;
    }

    .asgr-slider-viewport {
        grid-column: 1 / -1;
        min-height: 250px;
        order: -1;
    }

    .asgr-slider-button {
        width: 100%;
        border-radius: 8px;
    }

    .asgr-section .asgr-review-head {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .asgr-badge {
        bottom: 80px;
        width: auto;
        max-width: calc(100vw - 24px);
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .asgr-badge-left {
        right: auto;
        width: auto;
        left: 12px;
    }

    .asgr-badge-right {
        right: 12px;
        left: auto;
        width: auto;
    }

    .asgr-badge-preview,
    .asgr-badge-panel {
        position: relative;
        width: min(244px, calc(100vw - 24px));
        padding: 13px 13px 12px;
        background: var(--asgr-surface);
        border: 1px solid var(--asgr-line);
        border-top: 3px solid var(--asgr-yellow);
        border-radius: 8px;
        box-shadow: 0 14px 34px rgba(38, 50, 56, 0.18);
    }

    .asgr-badge-rating {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .asgr-badge .asgr-star {
        font-size: 17px;
    }

    .asgr-badge-actions {
        margin-top: 10px;
        padding-top: 9px;
    }
}
