/* Отзывы покупателей (reviews.php, 2026-10-21). Цвета — переменные стороны: GSM тёмная, GAMES светлая/тёмная (body.mode-games). */
:root { --fx-star: #f5b301; --fx-star-off: rgba(128, 140, 160, .35); }

/* ---- звёзды (свой HTML, без шрифта WooCommerce) ---- */
.fx-rv { display: inline-flex; align-items: center; gap: 6px; line-height: 1; vertical-align: middle; }
.fx-rv__stars { position: relative; display: inline-flex; gap: 1px; }
.fx-rv__stars i { width: 15px; height: 15px; display: block; background: var(--fx-star-off); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5.02 4.68 1.32 6.73L12 17.35 5.95 20.7l1.32-6.73L2.25 9.3l6.8-.8z'/%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 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5.02 4.68 1.32 6.73L12 17.35 5.95 20.7l1.32-6.73L2.25 9.3l6.8-.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.fx-rv__stars::after { content: ''; position: absolute; inset: 0; width: var(--fx-rv, 0%); background: var(--fx-star); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5.02 4.68 1.32 6.73L12 17.35 5.95 20.7l1.32-6.73L2.25 9.3l6.8-.8z'/%3E%3C/svg%3E") left/16px 15px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5.02 4.68 1.32 6.73L12 17.35 5.95 20.7l1.32-6.73L2.25 9.3l6.8-.8z'/%3E%3C/svg%3E") left/16px 15px repeat-x; }
.fx-rv__n { font-size: 12.5px; color: var(--dim); font-weight: 600; }

/* каталог: под названием */
.fx-rv-loop { margin: -2px 0 6px; }
/* страница товара: под названием, ссылка на отзывы */
.fx-rv-single { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.fx-rv-single .fx-rv__stars i { width: 17px; height: 17px; }
.fx-rv-single .fx-rv__stars::after { -webkit-mask-size: 18px 17px; mask-size: 18px 17px; }
.fx-rv-single__link { font-size: 14px; color: var(--dim); text-decoration: underline dotted; }
.fx-rv-single__link:hover { color: var(--blue); }
body.mode-games .fx-rv-single__link:hover { color: var(--accent-text, var(--blue)); }

/* ---- блок «Отзывы» под описанием ---- */
.fx-reviews { clear: both; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--border); }
.fx-reviews .woocommerce-Reviews-title { font-family: var(--font-head); font-size: 26px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.fx-reviews .fx-rv-total { font-size: 14px; font-weight: 600; color: var(--dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; line-height: 1; }
.fx-reviews .woocommerce-noreviews { color: var(--dim) !important; font-size: 15px; margin: 0 0 18px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; } /* Storefront делает из неё синюю плашку-уведомление */
.fx-reviews .woocommerce-noreviews::before, .fx-reviews .woocommerce-noreviews::after { display: none !important; }
.fx-reviews ol.commentlist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.fx-reviews ol.commentlist li.review { margin: 0; }
.fx-reviews .comment_container { display: flex; gap: 14px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
html body .fx-reviews .comment_container img.avatar { width: 44px !important; height: 44px !important; max-width: none; object-fit: cover; align-self: flex-start; border-radius: 50%; flex: 0 0 44px; float: none; position: static; margin: 0; padding: 0; border: 0; background: transparent; }
.fx-reviews .comment-text { flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.fx-reviews .comment-text .meta { font-size: 13.5px; color: var(--dim); margin: 4px 0 8px; }
.fx-reviews .comment-text .meta .woocommerce-review__author { color: var(--text); font-weight: 700; font-size: 15px; }
.fx-reviews .comment-text .meta .woocommerce-review__verified { color: var(--accent-text, #2cbd63); font-style: normal; font-size: 12.5px; }
.fx-reviews .comment-text .description p { font-size: 15px; line-height: 1.65; margin: 0 0 8px; color: var(--text); }
.fx-reviews .comment-text .description p:last-child { margin-bottom: 0; }
/* звёзды WooCommerce в списке (шрифт star из woocommerce.css) — цвет */
html body .fx-reviews .star-rating { float: none !important; display: block; margin: 0 0 4px; color: var(--fx-star-off); }  /* WooCommerce ставит float:right — на телефоне налезали на имя */
.fx-reviews .star-rating span::before, .fx-reviews .star-rating::before { color: var(--fx-star); }
.fx-reviews .star-rating::before { color: var(--fx-star-off); }
.fx-reviews .star-rating span::before { color: var(--fx-star); }

/* форма */
.fx-reviews #review_form_wrapper { margin-top: 6px; }
.fx-reviews #review_form { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-width: 760px; }
.fx-reviews .comment-reply-title { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.fx-reviews .comment-form-rating label, .fx-reviews .comment-form-comment label, .fx-reviews .comment-form-author label, .fx-reviews .comment-form-email label {
  display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--dim); margin: 0 0 6px; }
.fx-reviews .comment-form-rating { margin: 0 0 14px; }
.fx-reviews p.stars { margin: 0; line-height: 1; }
.fx-reviews p.stars a { display: inline-block; width: 32px; height: 32px; margin-right: 2px; text-indent: -9999px; position: relative; border: 0; box-shadow: none; }
.fx-reviews p.stars a::before { content: ''; position: absolute; inset: 0; background: var(--fx-star-off); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5.02 4.68 1.32 6.73L12 17.35 5.95 20.7l1.32-6.73L2.25 9.3l6.8-.8z'/%3E%3C/svg%3E") center/26px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.95 6.2 6.8.8-5.02 4.68 1.32 6.73L12 17.35 5.95 20.7l1.32-6.73L2.25 9.3l6.8-.8z'/%3E%3C/svg%3E") center/26px no-repeat; transition: transform .12s, background .12s; }
.fx-reviews p.stars a:hover::before, .fx-reviews p.stars:hover a::before { background: var(--fx-star); }
.fx-reviews p.stars a:hover ~ a::before { background: var(--fx-star-off); }
.fx-reviews p.stars.selected a.active::before, .fx-reviews p.stars.selected a.active ~ a::before { background: var(--fx-star-off); }
.fx-reviews p.stars.selected a::before { background: var(--fx-star); }
.fx-reviews p.stars.selected a.active::before { background: var(--fx-star); }
.fx-reviews p.stars.selected a.active ~ a::before { background: var(--fx-star-off); }
.fx-reviews p.stars a:hover::before { transform: scale(1.12); }
.fx-reviews select#rating { display: none !important; }
.fx-reviews .comment-form-comment textarea, .fx-reviews .comment-form-author input, .fx-reviews .comment-form-email input {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; box-shadow: none; }
.fx-reviews .comment-form-comment textarea { min-height: 120px; resize: vertical; }
.fx-reviews .comment-form-comment textarea:focus, .fx-reviews .comment-form-author input:focus, .fx-reviews .comment-form-email input:focus { outline: none; border-color: var(--blue); }
.fx-reviews .form-submit { margin: 4px 0 0; }
.fx-reviews .form-submit .submit { background: var(--blue); color: var(--on-accent, #fff); border: 0; border-radius: 10px; padding: 11px 22px; font-weight: 700; font-size: 15px; cursor: pointer; }
.fx-reviews .form-submit .submit:hover { filter: brightness(1.08); }
.fx-reviews .comment-form-cookies-consent { display: none; }
.fx-reviews .woocommerce-verification-required { display: none; } /* своя подсказка .fx-rv-note */
.fx-rv-note { font-size: 14.5px; color: var(--dim); padding: 12px 16px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface); }
.fx-rv-note a { color: var(--blue); font-weight: 600; }
body.mode-games .fx-rv-note a { color: var(--accent-text, var(--blue)); }
.fx-reviews .woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; }
.fx-reviews .woocommerce-pagination a, .fx-reviews .woocommerce-pagination span { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; }

/* ---- раздел: «Отзывы покупателей» ---- */
.fantom-cat-reviews { max-width: 1100px; margin: 22px auto 10px; padding: 22px 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.fantom-cat-reviews h2 { font-size: 20px; margin: 0 0 14px; }
.fantom-cat-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fantom-cat-reviews__item { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.fantom-cat-reviews__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fantom-cat-reviews__author { font-weight: 700; font-size: 14.5px; }
.fantom-cat-reviews__date { font-size: 12.5px; color: var(--dim); margin-left: auto; }
html body .fantom-cat-reviews__text { font-size: 14.5px; line-height: 1.6; margin: 0; max-width: none; opacity: .92; flex: 1; }
.fantom-cat-reviews__product { font-size: 13px; color: var(--blue); text-decoration: none; font-weight: 600; }
.fantom-cat-reviews__product:hover { text-decoration: underline; }
body.mode-games .fantom-cat-reviews__product { color: var(--accent-text, var(--blue)); }
@media (max-width: 1023px) { .fantom-cat-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .fantom-cat-reviews { padding: 16px 18px; }
  .fantom-cat-reviews__grid { grid-template-columns: 1fr; }
  .fx-reviews #review_form { padding: 16px 14px; }
  .fx-reviews .comment_container { padding: 14px; gap: 10px; }
  html body .fx-reviews .comment_container img.avatar { width: 36px !important; height: 36px !important; flex-basis: 36px; }
  .fx-reviews .woocommerce-Reviews-title { font-size: 22px; }
}
