.review-rating-color {
    color: var(--review-rating-light, var(--slate-600));
}

.community-reviews {
    margin-top: 20px;
    padding: 26px;
    scroll-margin-top: 24px;
}

.community-reviews-heading,
.community-review-heading,
.community-review-footer,
.review-composer-actions,
.review-text-help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.community-reviews-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    text-align: center;
}

.community-reviews-heading > div {
    grid-column: 2;
}

.review-settings {
    grid-column: 3;
    justify-self: end;
    margin: 0;
}

.community-reviews [data-review-moderator-controls][hidden] {
    display: none;
}

.review-settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 5px 0;
    color: var(--navy-800);
    background: transparent;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
}

.review-settings-toggle:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 4px;
}

.review-settings-track {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    background: var(--slate-600);
    border: 1px solid currentColor;
    border-radius: 999px;
}

.review-settings-track::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    content: "";
}

.review-settings-toggle[aria-checked="true"] .review-settings-track {
    background: var(--theme-success, #087849);
    border-color: var(--theme-success, #087849);
}

.review-settings-toggle[aria-checked="true"] .review-settings-track::after {
    left: 18px;
}

.community-reviews-heading h2 {
    font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
    line-height: 1.2;
}

.community-reviews-heading > div > p {
    margin: 5px 0 0;
    color: var(--slate-600);
    font-size: 0.82rem;
    line-height: 1.5;
}

.community-reviews-summary {
    display: grid;
    flex: 0 0 auto;
    justify-items: center;
    gap: 6px;
    color: var(--slate-600);
    font-size: 0.74rem;
    text-align: center;
}

.community-reviews-average {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.community-reviews-average svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linejoin: round;
}

.community-reviews-average strong {
    color: inherit;
    font-size: 2.5rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.community-reviews-average > span {
    align-self: flex-end;
    padding-bottom: 2px;
}

.community-reviews-overview {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    width: min(100%, 760px);
    margin-inline: auto;
}

.review-rating-distribution {
    display: grid;
    gap: 2px;
    width: 100%;
    max-width: 100%;
}

.review-rating-filter {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(24px, auto);
    align-items: center;
    gap: 12px;
    min-height: 28px;
    padding: 3px 8px;
    color: var(--slate-600);
    border: 1px solid transparent;
    border-radius: 6px;
}

.review-rating-filter:hover,
.review-rating-filter[aria-current="true"] {
    background: var(--theme-blue-soft, #edf5ff);
    border-color: var(--blue-500);
}

.review-rating-filter[aria-current="true"] {
    outline: 1px solid var(--blue-500);
}

.review-distribution-stars {
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 1px;
    text-align: right;
    white-space: nowrap;
}

.review-distribution-track {
    display: block;
    width: 100%;
    height: 6px;
    overflow: hidden;
    fill: var(--card-border);
}

.review-distribution-fill {
    fill: var(--blue-500);
}

.review-distribution-count {
    color: var(--slate-600);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.review-filter-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    width: min(100%, 760px);
    min-height: 36px;
    padding-bottom: 20px;
    margin: 10px auto 24px;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.review-filter-status > p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.76rem;
}

.review-filter-status > p > span {
    margin-left: 4px;
}

.review-filter-status > .review-text-action {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.review-filter-feedback {
    margin: 0 0 16px;
    color: var(--slate-600);
    font-size: 0.76rem;
    text-align: center;
}

.review-filter-feedback[hidden] {
    display: none;
}

.review-filter-feedback.is-error {
    color: var(--theme-danger, #922e32);
}

.community-review-results[aria-busy="true"] {
    opacity: 0.6;
}

.review-feedback,
.review-client-error,
.review-private-notice,
.review-blocked-notice {
    padding: 12px 14px;
    margin: 0 0 18px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.review-feedback.is-success {
    color: #076b43;
    background: #edf9f2;
    border-color: #c8e8d7;
}

.review-feedback.is-error,
.review-client-error {
    color: #922e32;
    background: #fff3f3;
    border-color: #edc8cb;
}

.review-client-error[hidden] {
    display: none;
}

.review-empty {
    padding: 28px 20px;
    margin: 0;
    color: var(--slate-600);
    background: #f7fbff;
    border: 1px dashed #c9d9eb;
    border-radius: 12px;
    text-align: center;
    font-size: 0.84rem;
}

.review-empty > strong {
    color: var(--navy-800);
    font-size: 0.92rem;
}

.review-empty > p {
    margin: 7px 0 0;
}

.community-review-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.community-review {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    min-height: var(--review-collapsed-height, 0px);
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    scroll-margin-top: 24px;
}

.community-review:target {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.13);
}

.community-review.is-not-public {
    background: #fafbfe;
    border-style: dashed;
}

.community-review-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 8px;
}

.community-review-heading > .review-author {
    width: 100%;
}

.community-review-heading > .review-rating {
    grid-column: 1 / -1;
}

.review-helpfulness {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin: -4px -4px 0 0;
}

.review-vote-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 30px;
    min-height: 32px;
    padding: 5px;
    color: var(--slate-600);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 0.7rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.review-vote-control > svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.review-vote-thumb-down {
    transform: rotate(180deg);
}

.review-vote-count {
    font-variant-numeric: tabular-nums;
}

.review-vote-count[hidden],
.review-vote-feedback[hidden] {
    display: none;
}

.review-vote-control.is-helpful-majority {
    color: var(--theme-success, #087849);
}

.review-vote-control.is-unhelpful-majority {
    color: var(--theme-danger, #b92e39);
}

.review-vote-control[aria-pressed="true"] {
    border-color: currentColor;
}

.review-vote-control:hover:not(:disabled) {
    background: var(--theme-blue-soft, #edf5ff);
    border-color: var(--blue-500);
}

.review-vote-control:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

.community-reviews .review-vote-control:disabled {
    opacity: 1;
    cursor: default;
}

.review-vote-feedback {
    margin: 0 0 16px;
    color: var(--slate-600);
    font-size: 0.76rem;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

.review-vote-feedback.is-error {
    color: var(--theme-danger, #922e32);
}

.review-author,
.review-composer-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.review-avatar-shell {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.review-avatar {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    background: #edf5fe;
    border: 1px solid #dbe7f4;
    border-radius: 50%;
}

.review-avatar-decoration {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    max-width: none;
    object-fit: contain;
    pointer-events: none;
}

.review-avatar-decoration[hidden] {
    display: none;
}

.review-avatar-placeholder {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.review-avatar-placeholder svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--slate-600);
    stroke-width: 1.6;
}

.review-author-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.review-author-copy h3 {
    font-size: 0.84rem;
    line-height: 1.5;
}

.review-you {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 4px;
    color: var(--blue-700);
    background: #edf5ff;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
    vertical-align: middle;
}

.review-username {
    display: block;
    margin-top: 2px;
    color: var(--slate-600);
    font-size: 0.73rem;
}

.review-rating {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
    padding-top: 3px;
}

.review-rating svg {
    width: 19px;
    height: 19px;
    fill: #eef2f7;
    stroke: #adbccc;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.review-rating svg.is-filled {
    fill: currentColor;
    stroke: currentColor;
}

.community-review-text {
    margin: 16px 0;
    color: var(--navy-800);
    font-size: 0.85rem;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.community-review-text.is-collapsible {
    margin-bottom: 4px;
}

.community-review-text.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    max-height: 11.1em;
    overflow: hidden;
}

.review-expand-toggle {
    align-self: flex-start;
    margin-bottom: 12px;
    font-family: inherit;
}

.review-expand-toggle[hidden] {
    display: none;
}

.review-expand-toggle:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 3px;
}

.community-review-footer {
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--slate-600);
    font-size: 0.69rem;
}

.review-permalink:hover {
    color: var(--blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.review-author-actions,
.review-moderation-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.review-author-actions > form,
.review-moderation-actions > form {
    margin: 0;
}

.review-text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 4px 0;
    color: var(--blue-700);
    background: none;
    border: 0;
    border-radius: 3px;
    font-size: 0.76rem;
    font-weight: 650;
    cursor: pointer;
}

.review-text-action:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.review-text-action.is-danger {
    color: #a83239;
}

.review-dispute-form-panel,
.review-dispute-record {
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid #e5edf6;
}

.community-reviews summary {
    width: fit-content;
    max-width: 100%;
    padding: 5px 0;
    border-radius: 3px;
    color: var(--blue-700);
    font-size: 0.76rem;
    font-weight: 650;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.community-reviews summary:hover {
    color: var(--navy-800);
}

.community-reviews summary:focus-visible,
.community-reviews textarea:focus-visible {
    outline: 3px solid rgba(42, 196, 199, 0.65);
    outline-offset: 3px;
}

.review-dispute-record summary > span {
    display: block;
    margin-top: 4px;
    color: var(--slate-600);
    font-size: 0.68rem;
    font-weight: 400;
}

.review-dispute-record-body {
    padding: 14px;
    margin-top: 10px;
    background: #f5f8fc;
    border: 1px solid #e0e8f2;
    border-radius: 9px;
}

.review-dispute-attribution {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.review-dispute-reason {
    margin: 10px 0;
    color: var(--navy-800);
    font-size: 0.8rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.review-dispute-snapshot {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #d9e4f0;
}

.review-dispute-snapshot > h4 {
    margin: 0 0 7px;
    font-size: 0.8rem;
}

.review-dispute-snapshot > .community-review-text {
    margin-bottom: 0;
}

.review-dispute-form {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 12px;
}

.review-dispute-form > textarea,
.review-dispute-form > .review-client-error {
    width: 100%;
}

.review-dispute-form > .review-character-count {
    justify-self: end;
}

.review-dispute-form > .review-client-error {
    margin: 0;
}

.review-help {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.75rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.review-private-notice,
.review-blocked-notice {
    margin-top: 16px;
    color: var(--navy-800);
    background: #edf3f9;
    border-color: #d7e3ef;
}

.review-moderation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    margin-top: 18px;
    background: #fff8f7;
    border: 1px solid #efd9d5;
    border-radius: 9px;
}

.review-moderation > p {
    margin: 0;
    color: #84362f;
    font-size: 0.76rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.review-moderation > p > span {
    display: block;
    margin-top: 4px;
    color: var(--slate-600);
    font-size: 0.71rem;
    font-weight: 400;
    line-height: 1.7;
}

.review-moderation-actions {
    gap: 8px;
}

.community-reviews .button {
    font-size: 0.8rem;
    cursor: pointer;
}

.review-secondary-button {
    color: var(--navy-800);
    background: #ffffff;
    border-color: #cbdced;
    border-radius: 9px;
}

.review-secondary-button:hover {
    background: #edf5ff;
    border-color: #92b7de;
}

.review-danger-button {
    color: #9d2b32;
    background: #ffffff;
    border-color: #dca8ac;
    border-radius: 9px;
}

.review-danger-button:hover {
    background: #fff0f0;
    border-color: #c9676e;
}

.community-reviews button:disabled {
    cursor: default;
    opacity: 0.6;
}

.review-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 22px;
    color: var(--slate-600);
    font-size: 0.73rem;
}

.review-composer {
    width: min(100%, 760px);
    padding-top: 26px;
    margin: 26px auto 0;
    border-top: 1px solid var(--card-border);
    scroll-margin-top: 24px;
}

.review-composer > h3 {
    margin-bottom: 8px;
}

.review-composer:has(> .review-sign-in) {
    text-align: center;
}

.review-composer > [data-review-editor] > summary,
.review-rules > summary {
    margin-inline: auto;
}

.review-composer-heading {
    margin-bottom: 21px;
}

.review-composer-heading > div {
    min-width: 0;
}

.review-composer-heading .review-help {
    margin-top: 3px;
}

.review-composer-form {
    display: grid;
    gap: 20px;
}

.review-rating-fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.review-rating-fieldset > legend,
.review-text-field > label,
.review-dispute-form > label {
    display: block;
    padding: 0;
    color: var(--navy-800);
    font-size: 0.81rem;
    font-weight: 650;
}

.review-rating-input {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 7px;
}

.review-star-option {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #96a7bc;
    background: #f7fbff;
    border: 1px solid #c7d7e8;
    border-radius: 9px;
    cursor: pointer;
}

.review-star-option > svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.review-star-option:has(input:checked),
.review-star-option:has(~ .review-star-option input:checked) {
    color: #a96c0c;
    background: #fff8e9;
    border-color: #d7b36c;
}

.review-star-option:has(input:checked) > svg,
.review-star-option:has(~ .review-star-option input:checked) > svg {
    fill: #df9d20;
}

.review-star-option:hover {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

.review-star-option:has(input:focus-visible) {
    outline: 3px solid rgba(42, 196, 199, 0.7);
    outline-offset: 3px;
}

.review-star-option:has(input[aria-invalid="true"]) {
    border-color: #ba4851;
}

.community-reviews textarea {
    display: block;
    width: 100%;
    min-height: 104px;
    padding: 13px 14px;
    color: var(--navy-950);
    background: #fbfdff;
    border: 1px solid #bfcfe2;
    border-radius: 10px;
    font: inherit;
    font-size: 0.83rem;
    line-height: 1.75;
    resize: vertical;
}

.community-reviews textarea::placeholder {
    color: #65758b;
    opacity: 1;
}

.community-reviews textarea:focus {
    background: #ffffff;
    border-color: var(--blue-500);
}

.community-reviews textarea[aria-invalid="true"] {
    border-color: #ba4851;
}

.review-text-field > textarea {
    margin-top: 9px;
}

.review-text-help {
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
}

.review-character-count {
    color: var(--slate-600);
    font-size: 0.7rem;
    white-space: nowrap;
}

.review-composer-actions {
    align-items: center;
    flex-wrap: wrap;
}

.review-composer-actions > .review-help {
    flex: 1 1 250px;
}

.review-submit-actions {
    display: grid;
    flex: 0 0 auto;
    gap: 4px;
}

.review-submit {
    min-width: 140px;
}

.review-submit:hover {
    filter: brightness(1.06);
}

.review-cancel {
    justify-self: center;
    min-height: 28px;
    padding: 4px 6px;
    color: var(--slate-600);
    background: none;
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-size: 0.74rem;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.review-cancel[hidden] {
    display: none;
}

.review-cancel:hover {
    color: var(--navy-800);
}

.review-cancel:focus-visible {
    outline: 3px solid rgba(42, 196, 199, 0.65);
    outline-offset: 3px;
}

.review-composer-form > .review-client-error {
    margin: 0;
}

.review-sign-in {
    margin-top: 15px;
}

.review-rules {
    margin-top: 21px;
}

.review-rules > ul {
    display: grid;
    gap: 7px;
    padding-left: 20px;
    margin: 10px 0 0;
    color: var(--slate-600);
    font-size: 0.73rem;
    line-height: 1.8;
    text-align: left;
}

.review-score-note {
    margin: 11px 0 0;
    color: var(--slate-600);
    font-size: 0.71rem;
    text-align: center;
}

@media (max-width: 1279px) {
    .community-review {
        flex-basis: calc((100% - 32px) / 3);
    }
}

@media (max-width: 999px) {
    .community-reviews-heading {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .review-settings {
        align-self: flex-end;
    }

    .community-review {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 699px) {
    .community-review {
        flex-basis: 100%;
    }
}

@media (max-width: 640px) {
    .community-reviews {
        padding: 20px;
    }

    .community-reviews-heading {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 28px;
    }

    .community-reviews-summary {
        gap: 6px;
    }

    .community-reviews-average strong {
        font-size: 2rem;
    }

    .community-reviews-overview {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 16px;
        width: 100%;
    }

    .review-rating-filter {
        grid-template-columns: 57px minmax(0, 1fr) minmax(16px, auto);
        gap: 6px;
        min-height: 32px;
        padding-inline: 4px;
    }

    .review-distribution-stars {
        font-size: 0.76rem;
        letter-spacing: 0;
    }

    .community-review {
        padding: 16px;
    }

    .review-moderation-actions {
        width: 100%;
    }

    .review-submit-actions,
    .review-submit {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .community-reviews {
        padding: 16px;
    }

    .community-review {
        padding: 14px;
    }

    .community-reviews-overview {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .community-reviews-summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .review-rating-input {
        gap: 5px;
    }

    .review-moderation-actions > form,
    .review-moderation-actions .button {
        width: 100%;
    }
}

@media (forced-colors: active) {
    .review-distribution-track {
        border: 1px solid CanvasText;
        fill: Canvas;
    }

    .review-distribution-fill {
        forced-color-adjust: none;
        fill: Highlight;
    }

    .review-rating-filter[aria-current="true"] {
        outline-color: Highlight;
    }

    .community-reviews-average svg,
    .review-rating svg.is-filled,
    .review-star-option:has(input:checked) > svg,
    .review-star-option:has(~ .review-star-option input:checked) > svg {
        forced-color-adjust: none;
        fill: CanvasText;
        stroke: CanvasText;
    }

    .review-rating svg.is-empty,
    .review-star-option > svg {
        forced-color-adjust: none;
        fill: Canvas;
        stroke: CanvasText;
    }

    .review-star-option:has(input:focus-visible) {
        outline-color: Highlight;
    }

    .community-review:target {
        outline: 2px solid Highlight;
    }
}
