.altx-product-reviews,
.altx-review-jump {
    --rv-blue: #35699c;
    --rv-deep: #255780;
    --rv-text: #25313b;
    --rv-muted: #536675;
    --rv-line: #e1e7ec;
    --rv-wash: #f3f7fa;
    --rv-soft: #edf4fa;
    --rv-orange: #f9b800;
}
.altx-product-reviews { color: var(--rv-text); margin: 32px 0; scroll-margin-top: calc(var(--altx-lower-top, 0px) + 88px); }
.altx-product-reviews.altx-review-integrated { margin: 0 0 40px; }
.altx-product-reviews [hidden] { display: none !important; }
.altx-review-jump {
    align-items: center;
    color: var(--rv-deep) !important;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 7px;
    min-height: 34px;
    width: fit-content;
}
.altx-review-jump:hover { text-decoration: underline; }
.altx-review-jump strong { color: var(--rv-text); font-variant-numeric: tabular-nums; }
.altx-review-rating-empty > :not(.altx-review-jump) { display: none !important; }
.altx-review-rating-target { position: relative; width: fit-content; max-width: 100%; }
.altx-review-rating-target .altx-review-rating-hit { position: absolute; inset: 0; z-index: 1; width: auto; min-height: 0; }
.altx-review-rating-hit > * { display: none !important; }
.altx-review-rating-hit:focus-visible { outline: 2px solid var(--rv-blue); outline-offset: 3px; border-radius: 5px; }
.altx-review-rating-target:has(.altx-review-rating-hit:hover) .votes_block__reviews-count { text-decoration: underline; }
.altx-review-metrics-host > .blog-info__rating--top-info { display: none !important; }
.altx-review-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; }
.altx-review-metrics .altx-review-jump { gap: 4px 6px; }
.altx-review-buyers { color: #536675; font-size: 13px; white-space: nowrap; }
.altx-review-buyers::before { content: '·'; margin-inline-end: 8px; }
.altx-ml-card .altx-lower-nav .altx-review-capsule {
    align-items: center;
    align-self: flex-start;
    background: #f5f7f9;
    border: 1px solid var(--ml-line, #e1e7ec);
    border-radius: 24px;
    display: inline-flex;
    flex: none;
    gap: 1px;
    padding: 3px;
}
.altx-ml-card .altx-lower-nav .altx-review-capsule a {
    align-items: center;
    background: transparent;
    border: 0;
    display: inline-flex;
    min-height: 38px;
    padding: 6px 13px;
}
.altx-ml-card .altx-lower-nav .altx-review-capsule a.is-active {
    background: #255780;
    color: #fff !important;
}
.altx-ml-card .altx-lower-nav:has(.altx-review-capsule) { align-items: center; }
.altx-review-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 20px;
}
.altx-product-reviews .altx-review-heading h2 { color: var(--rv-text); font-size: 30px; font-weight: 650; letter-spacing: -.035em; line-height: 1.14; margin: 0; padding: 0; }
.altx-review-heading h2:focus { outline: none; }
.altx-review-primary {
    background: var(--rv-blue);
    border: 1px solid var(--rv-blue);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    min-height: 44px;
    padding: 9px 15px;
}
.altx-review-primary:hover { background: var(--rv-deep); }
.altx-review-primary:disabled { opacity: .6; cursor: default; }
.altx-review-layout { display: grid; grid-template-columns: minmax(165px, 228px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.altx-review-summary { background: var(--rv-wash); border: 1px solid var(--rv-line); border-radius: 12px; color: var(--rv-muted); padding: 17px; }
.altx-review-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.altx-review-score strong { color: var(--rv-text); font-size: 45px; font-weight: 680; line-height: 1; letter-spacing: -.07em; }
.altx-review-summary [data-review-total] { font-size: 13px; margin-top: 4px; }
.altx-review-stars {
    color: #8c7e70;
    display: inline-block;
    font: 16px/1.2 Arial, sans-serif;
    letter-spacing: 1px;
    position: relative;
    vertical-align: middle;
    width: max-content;
}
.altx-review-stars::before { content: '★★★★★'; }
.altx-review-stars::after { color: var(--rv-orange); content: '★★★★★'; inset: 0 auto 0 0; position: absolute; overflow: hidden; width: var(--rv-fill, 0%); }
.altx-review-precise-stars { display: inline-flex; gap: 1px; letter-spacing: 0; }
.altx-review-precise-stars::before, .altx-review-precise-stars::after { content: none; }
.altx-review-star { position: relative; display: inline-block; color: #c6ced6; }
.altx-review-star::before { content: '★'; }
.altx-review-star::after { color: var(--rv-orange); content: '★'; inset: 0 auto 0 0; position: absolute; overflow: hidden; width: var(--rv-star-fill); }
.altx-review-summary .altx-review-stars { font-size: 19px; }
.altx-review-breakdown { border-top: 1px solid var(--rv-line); margin-top: 11px; padding-top: 8px; }
.altx-review-breakdown button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--rv-deep);
    cursor: pointer;
    display: grid;
    font: inherit;
    font-size: 12px;
    gap: 6px;
    grid-template-columns: 24px minmax(0, 1fr) 23px;
    min-height: 30px;
    padding: 0 3px;
    width: 100%;
}
.altx-review-breakdown button:disabled { color: var(--rv-muted); opacity: .58; cursor: default; }
.altx-review-breakdown button:not(:disabled):hover,
.altx-review-breakdown button[aria-pressed="true"] { background: #e2edf7; }
.altx-review-meter { background: #dce6ed; border-radius: 6px; height: 5px; overflow: hidden; }
.altx-review-meter > span { display: block; height: 100%; background: var(--rv-blue); border-radius: inherit; }
.altx-review-album { margin-bottom: 17px; }
.altx-review-album h3 { font-size: 16px; font-weight: 650; margin: 0 0 10px; }
.altx-review-album [data-review-strip] { display: grid; grid-template-columns: repeat(4, minmax(0, 95px)); gap: 8px; }
.altx-review-thumb { border: 0; background: var(--rv-wash); border-radius: 8px; cursor: pointer; overflow: hidden; padding: 0; }
.altx-review-thumb img { aspect-ratio: 1; display: block; height: auto; object-fit: cover; width: 100%; }
.altx-review-thumb:hover img { opacity: .84; }
.altx-review-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--rv-line); padding-bottom: 12px; }
.altx-review-controls label { margin: 0; }
.altx-review-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.altx-review-filters button, .altx-review-controls select, .altx-review-more, [data-review-captcha-refresh] {
    background: #fff;
    border: 1px solid #cddbe6;
    border-radius: 7px;
    color: var(--rv-deep);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    min-height: 40px;
    padding: 7px 10px;
}
.altx-review-controls select { width: auto; }
.altx-review-sort { position: relative; }
.altx-review-sort-button {
    align-items: center;
    background: #fff;
    border: 1px solid #cddbe6;
    border-radius: 7px;
    color: var(--rv-deep);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    gap: 9px;
    min-height: 40px;
    padding: 8px 12px 8px 14px;
    white-space: nowrap;
}
.altx-review-sort-button::after {
    background: currentColor;
    content: '';
    flex: none;
    height: 11px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .18s ease;
    width: 11px;
}
.altx-review-sort-button:hover, .altx-review-sort-button[aria-expanded="true"] { background: var(--rv-soft); border-color: var(--rv-blue); }
.altx-review-sort-button[aria-expanded="true"]::after { transform: rotate(180deg); }
.altx-product-reviews .altx-review-sort-list {
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(22, 44, 66, .14);
    list-style: none;
    margin: 0;
    min-width: 100%;
    padding: 5px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: max-content;
    z-index: 30;
}
.altx-product-reviews .altx-review-sort-list[hidden] { display: none; }
.altx-product-reviews .altx-review-sort-list li {
    border-radius: 7px;
    color: var(--rv-text);
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
    margin: 0;
    padding: 9px 14px 9px 32px;
    position: relative;
    white-space: nowrap;
}
.altx-product-reviews .altx-review-sort-list li::before {
    background: transparent;
    border: 0;
    content: '';
    height: 12px;
    left: 11px;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
}
.altx-product-reviews .altx-review-sort-list li:hover, .altx-product-reviews .altx-review-sort-list li:focus { background: var(--rv-soft); outline: none; }
.altx-product-reviews .altx-review-sort-list li:focus-visible { box-shadow: inset 0 0 0 2px var(--rv-blue); }
.altx-product-reviews .altx-review-sort-list li[aria-selected="true"] { color: var(--rv-deep); font-weight: 600; }
.altx-product-reviews .altx-review-sort-list li[aria-selected="true"]::before {
    background: var(--rv-blue);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4 4.8 9l5-6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.4 4.8 9l5-6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.altx-review-filters button[aria-pressed="true"], .altx-review-more:hover { background: var(--rv-soft); border-color: var(--rv-blue); }
.altx-review-item { border-bottom: 1px solid var(--rv-line); padding: 15px 0; }
.altx-review-item p { font-size: 14px; line-height: 1.55; margin: 5px 0; overflow-wrap: anywhere; white-space: pre-line; }
.altx-review-byline { display: flex; gap: 9px; margin-bottom: 10px; }
.altx-review-initial { align-items: center; background: var(--rv-soft); border-radius: 50%; color: var(--rv-deep); display: inline-flex; flex: 0 0 34px; font-weight: 650; height: 34px; justify-content: center; }
.altx-review-author { min-width: 0; }
.altx-review-author strong { display: block; overflow-wrap: anywhere; }
.altx-review-author time, .altx-review-variant { color: var(--rv-muted); font-size: 12px; }
.altx-review-author time { margin-left: 7px; vertical-align: middle; }
.altx-review-variant { margin-inline-start: auto; text-align: end; max-width: 43%; }
.altx-review-item-photos { display: flex; gap: 6px; margin-top: 9px; }
.altx-review-item-photos .altx-review-thumb { width: 60px; }
.altx-review-votes { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.altx-review-vote {
    align-items: center;
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 7px;
    color: var(--rv-muted);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    gap: 5px;
    justify-content: center;
    min-height: 36px;
    min-width: 44px;
    padding: 4px 8px;
}
.altx-review-vote:hover, .altx-review-vote[aria-pressed="true"] {
    background: var(--rv-soft);
    border-color: var(--rv-blue);
    color: var(--rv-deep);
}
.altx-review-vote:disabled { cursor: wait; opacity: .65; }
.altx-review-vote-icon {
    background-color: currentColor;
    height: 14px;
    width: 14px;
    -webkit-mask: var(--rv-vote-icon) center / contain no-repeat;
    mask: var(--rv-vote-icon) center / contain no-repeat;
}
.altx-review-vote-icon-up { --rv-vote-icon: url('/bitrix/templates/aspro_next/images/svg/like_like.svg'); }
.altx-review-vote-icon-down { --rv-vote-icon: url('/bitrix/templates/aspro_next/images/svg/like_dislike.svg'); }
.altx-review-vote-status { color: var(--rv-muted); font-size: 12px; }
.altx-review-vote-status:empty { display: none; }
.altx-review-about { color: var(--rv-muted); font-size: 12px; margin: 2px 0 6px; }
.altx-review-replies { display: grid; gap: 8px; margin-top: 10px; }
.altx-review-reply { border-inline-start: 3px solid var(--rv-line); font-size: 13px; padding: 2px 0 2px 12px; }
.altx-review-reply strong { color: var(--rv-text); display: block; font-size: 12px; margin-bottom: 2px; }
.altx-review-reply p { margin: 0; white-space: pre-line; }
.altx-review-reply.is-shop { background: var(--rv-wash); border-inline-start-color: var(--rv-blue); border-radius: 0 8px 8px 0; padding: 8px 12px; }
.altx-review-reply.is-shop strong { color: var(--rv-deep); }
.altx-review-captcha[hidden] { display: none; }
.altx-review-item:last-child { margin-bottom: 12px; }
.altx-review-empty { background: var(--rv-wash); border: 1px solid var(--rv-line); border-radius: 12px; padding: 20px; }
.altx-review-empty h3 { color: var(--rv-text); font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.altx-review-empty p, .altx-review-no-results { color: var(--rv-muted); margin: 0; }
.altx-review-no-results { padding: 18px 0; }
.altx-review-sr { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.altx-review-dialog {
    background: #fff;
    border: 1px solid var(--rv-line);
    border-radius: 14px;
    color: var(--rv-text);
    max-height: calc(100dvh - 20px);
    padding: 18px;
    width: min(490px, calc(100% - 20px));
    z-index: 9999;
}
.altx-review-dialog[open] {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    height: fit-content;
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
}
.altx-review-dialog::backdrop { background: #172633a3; }
.altx-review-dialog.is-done header > div { display: none; }
.altx-review-dialog.is-done .altx-review-reward-note { display: none; }
.altx-review-cta { display: grid; justify-items: end; gap: 6px; }
.altx-review-reward-badge { background: #fff4d6; border-radius: 999px; color: #7a5300; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 5px 10px; white-space: nowrap; }
.altx-review-reward-note { background: #fff8e6; border: 1px solid #f4dfa6; border-radius: 10px; color: #5c4510; font-size: 13px; line-height: 1.45; margin: 0 0 12px; padding: 10px 12px; }
.altx-review-reward-note[hidden] { display: none; }
.altx-review-reward-note[data-state="taken"] { background: var(--rv-wash); border-color: var(--rv-line); color: var(--rv-muted); }
.altx-review-reward-note a { color: var(--rv-deep); font-weight: 600; }
.altx-review-success .altx-review-success-gift { background: #fff8e6; border-radius: 10px; color: #5c4510; font-size: 14px; margin: -2px 0 12px; padding: 9px 12px; }
.altx-review-dialog.is-done header [data-review-close] { margin-left: auto; }
.altx-review-success { display: grid; justify-items: center; gap: 8px; padding: 4px 8px 10px; text-align: center; outline: none; }
.altx-review-success-mark { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 6px; border-radius: 50%; background: #e8f6ee; }
.altx-review-success-mark svg { width: 52px; height: 52px; fill: none; stroke: #23935a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.altx-review-success-mark circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: altx-review-draw .5s ease-out forwards; }
.altx-review-success-mark path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: altx-review-draw .3s .45s ease-out forwards; }
.altx-review-success h3 { color: var(--rv-text); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.altx-review-success p { color: var(--rv-muted); font-size: 15px; line-height: 1.45; margin: 0 0 10px; max-width: 320px; }
.altx-review-dialog .altx-review-success .altx-review-primary { justify-self: center; min-width: 160px; }
@keyframes altx-review-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .altx-review-success-mark :is(circle, path) { animation: none; stroke-dashoffset: 0; }
}
.altx-review-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.altx-review-dialog header h2 { font-size: 23px; margin: 0; line-height: 1.2; }
.altx-review-dialog header p { color: var(--rv-muted); font-size: 13px; line-height: 1.4; margin: 4px 0 0; }
.altx-review-dialog [data-review-close], .altx-review-gallery-controls button {
    background: #fff;
    border: 1px solid var(--rv-line);
    color: var(--rv-text);
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
    height: 40px;
    width: 40px;
    flex: 0 0 auto;
}
.altx-review-dialog form { display: grid; align-items: start; gap: 6px; margin: 0; }
.altx-review-dialog form :is(label, legend) { color: var(--rv-text); font-size: 13px; font-weight: 600; margin: 0; }
.altx-review-dialog small { color: var(--rv-muted); font-size: 12px; }
.altx-review-dialog textarea, .altx-review-dialog input:not([type]), .altx-review-dialog input[name="captcha"] {
    background: #fff;
    border: 1px solid #9aadb9;
    border-radius: 7px;
    color: var(--rv-text);
    font-size: 16px;
    line-height: 1.4;
    padding: 7px 9px;
    width: 100%;
    min-width: 0;
}
.altx-review-dialog textarea { resize: vertical; }
.altx-review-dialog fieldset { border: 0; margin: 0; padding: 0; }
.altx-review-text-fields { display: grid; gap: 6px; min-width: 0; }
.altx-review-dialog fieldset legend { border: 0; }
.altx-review-rates { display: flex; }
.altx-review-rates label { position: relative; display: grid; min-width: 44px; min-height: 42px; place-items: center; }
.altx-review-rates input, .altx-review-file input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.altx-review-rates label span::before { content: '☆'; font: 29px/1 Arial, sans-serif; color: var(--rv-orange); }
.altx-review-rates label:is(:has(:checked), :has(~ label :checked)) span::before { content: '★'; }
.altx-review-rates label:focus-within, .altx-review-file:focus-within { outline: 2px solid var(--rv-blue); outline-offset: 2px; }
.altx-review-file { position: relative; display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 42px; }
.altx-review-file > span { padding: 6px 10px; border: 1px solid #cddbe6; border-radius: 7px; color: var(--rv-deep); }
.altx-review-captcha { display: grid; gap: 3px; }
.altx-review-captcha > div { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.altx-review-captcha > div img { object-fit: contain; }
.altx-review-dialog label.altx-review-consent { display: flex; align-items: flex-start; gap: 8px; margin: 5px 0; font-weight: 400; }
.altx-review-consent input { margin: 4px 0 0; position: static; appearance: auto; accent-color: var(--rv-blue); }
.altx-review-response { margin: 6px 0 0; font-size: 13px; }
.altx-review-response:empty { display: none; }
.altx-review-dialog .altx-review-primary { justify-self: start; }
.altx-review-gallery { width: min(615px, calc(100% - 20px)); }
.altx-review-gallery [data-review-full-photo] { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.altx-review-gallery-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.altx-product-reviews :is(button, a, select, input, textarea, summary):focus-visible { outline: 2px solid var(--rv-blue); outline-offset: 2px; }

@media (max-width: 760px) {
    .altx-review-vote { min-height: 44px; }
    /* Controls wrap on phones and the sort button lands on the left: open the menu from its left edge. */
    .altx-product-reviews .altx-review-sort-list { left: 0; right: auto; max-width: calc(100vw - 32px); }
    .altx-ml-card .altx-lower-nav .altx-review-capsule a { min-height: 43px; font-size: 12px; padding-inline: 10px; }
    .altx-review-jump { min-height: 40px; }
    .altx-review-layout { gap: 16px; grid-template-columns: minmax(0, 1fr); }
    .altx-product-reviews .altx-review-heading h2 { font-size: 23px; }
    .altx-review-heading { align-items: flex-start; gap: 7px; margin-bottom: 13px; }
    .altx-review-heading .altx-review-primary { white-space: nowrap; padding-inline: 8px; }
    .altx-review-reward-badge { white-space: normal; text-align: right; }
    .altx-review-summary { display: grid; align-items: center; gap: 10px; grid-template-columns: minmax(95px, auto) minmax(0, 1fr); padding: 11px; }
    .altx-review-score strong { font-size: 37px; }
    .altx-review-summary .altx-review-stars { font-size: 15px; }
    .altx-review-breakdown { border-top: 0; padding: 0; margin: 0; }
    .altx-review-breakdown button { min-height: 34px; }
    /* Empty star rows only add height on phones; the total under the score keeps the context. */
    .altx-review-breakdown button:disabled { display: none; }
}
@media (max-width: 340px) {
    .altx-review-heading { align-items: flex-start; flex-direction: column; }
}
