(function () { if (window.reviewsIoCardRatings) return; var loading = false; var stylesheetId = 'reviews-io-card-rating-styles'; function refresh() { if (!document.querySelector('.reviews-io-card-rating:not([data-retrieved]):not([data-pending])')) return; if (document.querySelector('.reviews-io-card-rating[data-pending]')) return; if (typeof window.ratingSnippet !== 'function') { if (loading) return; loading = true; var script = document.createElement('script'); script.src = 'https://widget.reviews.io/rating-snippet/dist.js'; script.onload = function () { loading = false; refresh(); }; script.onerror = function () { loading = false; console.error('REVIEWS.io product card ratings failed to load'); }; document.head.appendChild(script); return; } window.ratingSnippet('reviews-io-card-rating', { store: 'www.siliconeintakes.com', mode: 'default', color: '#eab308', text: 'Reviews', singularText: 'Review', lang: 'en', snippetPopup: false, showEmptyStars: true, listenForChanges: false, callback: function () { document.querySelectorAll('.reviews-io-card-rating[data-retrieved]').forEach(function (rating) { rating.removeAttribute('role'); }); window.setTimeout(refresh, 0); } }); } window.reviewsIoCardRatings = { refresh: refresh }; if (!document.getElementById(stylesheetId)) { var css = document.createElement('link'); css.id = stylesheetId; css.rel = 'stylesheet'; css.href = 'https://widget.reviews.io/rating-snippet/dist.css'; css.onerror = function () { console.error('REVIEWS.io product card rating styles failed to load'); }; document.head.appendChild(css); var style = document.createElement('style'); style.textContent = '.reviews-io-card-rating .ruk-icon-percentage-star--0 { color: #9ca3af; }'; document.head.appendChild(style); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', refresh); } else { refresh(); } }());