.product-impressions { width: 100%; scroll-margin-top: 100px; }
.product-stats-intro {
    margin: 0 0 36px;
    max-width: 660px;
    color: #3b4e50;
}
.product-stats-intro .product-impressions-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.product-stats-help { display: grid; gap: 8px; }
.product-stats-intro .product-stats-help p { margin: 0; font-size: 14px; line-height: 1.7; color: #687779; }
.product-stats-help strong { font-weight: 500; color: #3b4e50; }
@media (min-width: 701px) { .product-stats-help__change { display: block; } }
.product-stats-intro .product-stats-help p.product-stats-help__note { font-size: 13px; }
@media (max-width: 700px) { .product-stats-intro { margin-bottom: 28px; } }
/* Keep voting feedback visible even when the introduction has scrolled away. */
.product-stats-status {
    position: fixed;
    z-index: 12000;
    top: calc(20px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: min(460px, calc(100% - 32px));
    padding: 12px 8px 12px 16px;
    margin: 0;
    border: 1px solid #bfddd1;
    border-left: 4px solid #0d8066;
    border-radius: 14px;
    background: #fff;
    color: #053a2e;
    box-shadow: 0 8px 32px rgba(5, 58, 46, .18);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
}
.product-stats-status[hidden] { display: none; }
.product-stats-status::before {
    content: '✓';
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8f4ef;
    color: #0d8066;
    font-size: 18px;
    font-weight: 600;
}
.product-stats-status[data-state="loading"]::before { content: '…'; }
.product-stats-status[data-state="error"] { border-color: #e4baba; border-left-color: #a73535; color: #782323; }
.product-stats-status[data-state="error"]::before { content: '!'; background: #fff0f0; color: #a73535; }
.product-stats-status__text { flex: 1; min-width: 0; }
.product-stats-status__close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 26px;
    cursor: pointer;
}
.product-stats-status__close:hover { background: #f2f6f4; }
.product-stats-status__close:focus-visible { outline: 2px solid #0d8066; outline-offset: 1px; }
.product-stats .product-stats__row-count { min-width: 16px; text-align: right; font-variant-numeric: tabular-nums; color: #3b4e50; }
.product-stats .product-stats__row-vote {
    cursor: pointer;
    font-size: 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
/* Two permanent layers: a single crossfade, without changing font glyphs during a request. */
.product-stats .product-stats__row-vote::before,
.product-stats .product-stats__row-vote::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity .18s ease;
}
.product-stats .product-stats__row-vote::before {
    background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
                linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
    opacity: 1;
}
.product-stats .product-stats__row-vote::after {
    background: currentColor;
    -webkit-mask: var(--ode-check-image) center / contain no-repeat;
    mask: var(--ode-check-image) center / contain no-repeat;
    opacity: 0;
}
.product-stats .product-stats__row-vote[aria-pressed="true"]::before { opacity: 0; }
.product-stats .product-stats__row-vote[aria-pressed="true"]::after { opacity: 1; }
.product-stats .product-stats__row-bar-fill { transition: width .24s ease; }
.product-stats .product-stats__row-vote[aria-pressed="true"] { color: #0d8066; background: #e8f4ef; border-color: #bfddd1; cursor: default; }
.product-stats .product-stats__row-vote:focus-visible { outline: 2px solid #0d8066; outline-offset: 3px; }
.product-stats[aria-busy="true"] .product-stats__row-vote { cursor: wait; }
@media (prefers-reduced-motion: reduce) {
    .product-stats .product-stats__row-vote,
    .product-stats .product-stats__row-vote::before,
    .product-stats .product-stats__row-vote::after,
    .product-stats .product-stats__row-bar-fill { transition: none; }
}
@media (max-width: 380px) {
    .product-stats .product-stats__row { gap: 7px; }
    .product-stats .product-stats__row-label { white-space: normal; }
    .product-stats .product-stats__row-dots { min-width: 0; }
    .product-stats .product-stats__row-bar { width: 80px; }
}
/* Compact responsive category grid; preserve reading order and full vote labels. */
.product-stats{display:grid;grid-template-columns:minmax(0,1fr);column-count:auto;gap:28px;align-items:start}
.product-stats .product-stats__block{min-width:0;margin-bottom:0}
.product-stats .product-stats__title{font-family:Onest,sans-serif;line-height:1.4;min-height:21px}
.product-stats .product-stats__row-label,.product-stats .product-stats__row-count{font-family:Onest,sans-serif}
@media(min-width:768px){.product-stats{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:28px}}
@media(min-width:1200px){.product-stats{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:36px;row-gap:30px}.product-stats .product-stats__row{gap:8px;padding:6px 0}.product-stats .product-stats__row-label{min-width:0;flex-shrink:1;white-space:normal;line-height:1.5}.product-stats .product-stats__row-dots{min-width:8px}.product-stats .product-stats__row-bar{width:clamp(96px,8vw,132px)}}
@media(min-width:1200px){.product-stats [data-category="longevity"]{grid-column:1;grid-row:1}.product-stats [data-category="distance"]{grid-column:2;grid-row:1}.product-stats [data-category="age"]{grid-column:3;grid-row:1}.product-stats [data-category="season"]{grid-column:1;grid-row:2}.product-stats [data-category="time_of_day"]{grid-column:2;grid-row:2}}

/* Give the colored opinion scale more space without widening its category. */
.product-stats .product-stats__row-label{min-width:0;flex-shrink:1;white-space:normal;line-height:1.5}
@media(min-width:381px) and (max-width:1199px){.product-stats .product-stats__row-bar{width:112px}}

/* Balanced introduction: title + context left, voting instructions right. */
.product-stats-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:none}
.product-stats-intro>.product-stats-help__note{margin:0;font:400 14px/1.7 Onest,sans-serif;color:#687779}
.product-stats-intro .product-impressions-title,
.product-details--catalogue .product-stats-intro>.product-impressions-title{margin-bottom:0}
.product-stats-intro>.product-stats-help{min-width:0}
@media(min-width:1000px){
 .product-stats-intro{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:clamp(32px,4vw,72px);row-gap:12px;align-items:start}
 .product-stats-intro>.product-impressions-title{grid-column:1;grid-row:1}
 .product-stats-intro>.product-stats-help__note{grid-column:1;grid-row:2}
 .product-stats-intro>.product-stats-help{grid-column:2;grid-row:1/3;padding-top:2px;justify-self:end;max-width:490px;width:100%;text-align:right}
}
@media(max-width:999px){
 .product-stats-intro>.product-impressions-title{order:0}
 .product-stats-intro>.product-stats-help__note{order:1}
 .product-stats-intro>.product-stats-help{order:2}
}
