/**
 * Star Ratings (ptpstarratings) - compatibility mode (Warehouse and similar themes)
 *
 * @author    Patripe
 * @copyright 2026 Patripe
 * @license   MIT, see LICENSE.md
 */
/*
 * Documented exception of the Patripe standard: !important only here. Loaded only in compatibility
 * mode (theme Warehouse, or forced in the settings). Warehouse paints every SVG black and squeezes the
 * buttons of the star picker, so the colours and sizes of the stars are forced.
 */
.ptp-starratings__stars-base .ptp-starratings__star, .ptp-starratings__stars-base .ptp-starratings__bg { fill: var(--ptp-star-empty) !important; stroke: none !important; }
.ptp-starratings__stars-fill .ptp-starratings__star, .ptp-starratings__stars-fill .ptp-starratings__bg { fill: var(--ptp-star-color) !important; stroke: none !important; }
.ptp-starratings__stars-base .ptp-starratings__round { stroke: var(--ptp-star-empty) !important; stroke-width: 3.4px !important; stroke-linejoin: round !important; }
.ptp-starratings__stars-fill .ptp-starratings__round { stroke: var(--ptp-star-color) !important; stroke-width: 3.4px !important; stroke-linejoin: round !important; }
.ptp-starratings__stars .ptp-starratings__in { fill: #fff !important; stroke: none !important; }
.ptp-starratings__bar-icon .ptp-starratings__star, .ptp-starratings__bar-icon .ptp-starratings__bg { fill: var(--ptp-star-color) !important; }
.ptp-starratings__bar-icon .ptp-starratings__round { stroke: var(--ptp-star-color) !important; stroke-width: 3.4px !important; stroke-linejoin: round !important; }
.ptp-starratings__bar-icon .ptp-starratings__in { fill: #fff !important; }
.ptp-starratings__reviews .star-content div.star-on,
.ptp-starratings__reviews .star-content div.star-hover,
#post-product-comment-modal .star-content div.star-on,
#post-product-comment-modal .star-content div.star-hover { background: var(--ptp-star-color) !important; }
.ptp-starratings__page-bars a { display: grid; grid-template-columns: 38px 1fr 40px; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; color: #444 !important; text-decoration: none !important; font-size: 13px; }
.ptp-starratings__page-pages a, .ptp-starratings__page-pages span { display: inline-block; min-width: 38px; padding: 8px 10px; border: 1px solid var(--ptp-border); border-radius: 8px; text-align: center; text-decoration: none !important; font-size: 14px; }
.ptp-starratings__page-pages .is-current { background: #222; border-color: #222; color: #fff !important; font-weight: 700; }
.ptp-starratings__pick-star .ptp-starratings__star, .ptp-starratings__pick-star .ptp-starratings__bg { fill: var(--ptp-star-empty) !important; stroke: none !important; }
.ptp-starratings__pick-star .ptp-starratings__round { stroke: var(--ptp-star-empty) !important; stroke-width: 3.4px !important; stroke-linejoin: round !important; }
.ptp-starratings__pick-star .ptp-starratings__in { fill: #fff !important; stroke: none !important; }
.ptp-starratings__pick-star.is-on .ptp-starratings__star, .ptp-starratings__pick-star.is-on .ptp-starratings__bg, .ptp-starratings__pick:hover .ptp-starratings__pick-star .ptp-starratings__star, .ptp-starratings__pick:hover .ptp-starratings__pick-star .ptp-starratings__bg { fill: var(--ptp-star-color) !important; }
.ptp-starratings__pick-star.is-on .ptp-starratings__round, .ptp-starratings__pick:hover .ptp-starratings__pick-star .ptp-starratings__round { stroke: var(--ptp-star-color) !important; }
.ptp-starratings__pick .ptp-starratings__pick-star:hover ~ .ptp-starratings__pick-star .ptp-starratings__star, .ptp-starratings__pick .ptp-starratings__pick-star:hover ~ .ptp-starratings__pick-star .ptp-starratings__bg { fill: var(--ptp-star-empty) !important; }
.ptp-starratings__pick .ptp-starratings__pick-star:hover ~ .ptp-starratings__pick-star .ptp-starratings__round { stroke: var(--ptp-star-empty) !important; }
.ptp-starratings__reviews #product-comments-list-header,
.ptp-starratings__reviews #product-comments-list-footer .btn-comment-big { display: none !important; }
.ptp-starratings__reviews .star-content div.star,
.ptp-starratings__reviews .star-content div.star-on,
.ptp-starratings__reviews .star-content div.star-hover,
#post-product-comment-modal .star-content div.star,
#post-product-comment-modal .star-content div.star-on,
#post-product-comment-modal .star-content div.star-hover {
  background: var(--ptp-star-empty) !important;
  -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.5l2.94 6.26 6.86.8-5.08 4.7 1.36 6.78L12 17.6l-6.08 3.44 1.36-6.78-5.08-4.7 6.86-.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.5l2.94 6.26 6.86.8-5.08 4.7 1.36 6.78L12 17.6l-6.08 3.44 1.36-6.78-5.08-4.7 6.86-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
