.djy-product-reviews { scroll-margin-top: 140px; }
.djy-product-reviews #reviews { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; color: #374151; }
.djy-product-reviews #comments, .djy-product-reviews #review_form_wrapper { min-width: 0; width: auto; float: none; }
.djy-product-reviews #review_form_wrapper { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; align-self: start; }
.djy-product-reviews .woocommerce-Reviews-title, .djy-product-reviews .comment-reply-title { display: block; margin: 0 0 20px; font-size: 22px; font-weight: 700; color: #111827; line-height: 1.4; }
.djy-product-reviews .djy-review-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.djy-product-reviews .djy-review-summary strong { font-size: 32px; color: #111827; }
.djy-product-reviews .woocommerce-noreviews { padding: 36px 24px; text-align: center; border: 1px dashed #d1d5db; border-radius: 16px; color: #6b7280; background: #f9fafb; }
.djy-product-reviews #reviews #comments ol.commentlist { margin: 0; padding: 0; list-style: none; }
.djy-product-reviews #reviews #comments ol.commentlist li { margin: 0 0 18px; padding: 0; list-style: none; }
.djy-product-reviews #reviews #comments ol.commentlist li img.avatar { width: 42px; height: 42px; border-radius: 50%; padding: 0; border: 0; }
.djy-product-reviews #reviews #comments ol.commentlist li .comment-text { margin: 0 0 0 58px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 12px; overflow-wrap: anywhere; }
.djy-product-reviews .meta { color: #6b7280; font-size: 13px; }
.djy-product-reviews .woocommerce-review__author { color: #111827; }
.djy-product-reviews .woocommerce-review__verified { color: #059669; }
.djy-product-reviews .star-rating { color: #f59e0b; }
.djy-product-reviews #review_form #respond p { margin: 0 0 18px; }
.djy-product-reviews #review_form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.djy-product-reviews #review_form input[type=text], .djy-product-reviews #review_form input[type=email], .djy-product-reviews #review_form textarea, .djy-product-reviews #review_form select { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 8px; background: white; color: #111827; font: inherit; }
.djy-product-reviews #review_form textarea { min-height: 150px; resize: vertical; }
.djy-product-reviews #review_form :is(input, textarea, select):focus { outline: 2px solid #0091ff; outline-offset: 2px; }
.djy-product-reviews .comment-form-rating { margin-bottom: 18px; }
.djy-product-reviews #review_form #respond .form-submit input { appearance: none; min-height: 48px; border: 1px solid #0086ed; border-radius: 12px; background: linear-gradient(135deg, #009bff, #007be6); color: white; padding: 13px 28px; font: inherit; font-size: 14px; font-weight: 650; letter-spacing: .02em; box-shadow: 0 4px 12px rgb(0 145 255 / 18%); cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.djy-product-reviews #review_form #respond .form-submit input:hover { background: linear-gradient(135deg, #008aef, #006bcd); box-shadow: 0 6px 18px rgb(0 145 255 / 26%); transform: translateY(-1px); }
.djy-product-reviews #review_form #respond .form-submit input:active { transform: translateY(0); box-shadow: 0 2px 6px rgb(0 145 255 / 16%); }
.djy-product-reviews #review_form #respond .form-submit input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.djy-product-reviews #review_form #respond .form-submit input:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

/* Keep WooCommerce's accessible rating controls; draw icons without an icon font. */
.djy-product-reviews #review_form #respond p.stars { margin: 4px 0 20px; }
.djy-product-reviews #review_form #respond p.stars > span { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.djy-product-reviews #review_form #respond p.stars a { position: relative; display: inline-block; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 8px; background: #f8fafc; color: #cbd5e1; font-size: 0; text-indent: -9999px; overflow: hidden; text-decoration: none; box-shadow: none; transition: background .18s, color .18s, transform .18s; }
.djy-product-reviews #review_form #respond p.stars a::before { content: ''; position: absolute; inset: 10px; width: auto; height: auto; display: block; background: currentColor; font-family: inherit; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%); }
.djy-product-reviews #review_form #respond p.stars a::after { content: none; }
.djy-product-reviews #review_form #respond p.stars.selected a { color: #f5ae24; background: #fffbeb; }
.djy-product-reviews #review_form #respond p.stars.selected a.active ~ a { color: #cbd5e1; background: #f8fafc; }
.djy-product-reviews #review_form #respond p.stars > span:hover a { color: #f5ae24; background: #fff7df; }
.djy-product-reviews #review_form #respond p.stars > span a:hover ~ a { color: #cbd5e1; background: #f8fafc; }
.djy-product-reviews #review_form #respond p.stars a:hover { transform: translateY(-2px); }
.djy-product-reviews #review_form #respond p.stars a:focus-visible { outline: 2px solid #0091ff; outline-offset: -2px; background: #eff6ff; }

/* Repeated SVG stars preserve the percentage width used for fractional scores. */
.djy-product-reviews #reviews .star-rating { position: relative; display: inline-block; float: none; width: 100px; height: 20px; font-size: 0; line-height: 1; overflow: hidden; }
.djy-product-reviews #reviews .star-rating::before, .djy-product-reviews #reviews .star-rating span::before { content: ''; position: absolute; inset: 0; width: 100px; height: 20px; background-repeat: repeat-x; background-size: 20px 20px; }
.djy-product-reviews #reviews .star-rating::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23dbe2ea' d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E"); }
.djy-product-reviews #reviews .star-rating span { position: absolute; top: 0; left: 0; height: 20px; padding: 0; overflow: hidden; font-size: 0; }
.djy-product-reviews #reviews .star-rating span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5ae24' d='m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E"); }
.djy-product-reviews .djy-review-summary strong small { font-size: 14px; font-weight: 400; color: #94a3b8; }
.djy-product-reviews #reviews .woocommerce-pagination ul { display: flex; gap: 6px; border: 0; }
.djy-product-reviews #reviews .woocommerce-pagination ul li { border: 0; }
.djy-product-reviews #reviews .woocommerce-pagination ul li :is(a, span) { display: grid; place-items: center; min-width: 38px; min-height: 38px; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; color: #475569; }
.djy-product-reviews #reviews .woocommerce-pagination ul li :is(a:hover, a:focus-visible, span.current) { background: #eff6ff; border-color: #93c5fd; color: #007be6; }
@media (prefers-reduced-motion: reduce) {
    .djy-product-reviews #review_form #respond :is(.form-submit input, p.stars a) { transition: none; transform: none; }
}
.djy-product-reviews .comment-notes, .djy-product-reviews .comment-form-cookies-consent { font-size: 13px; color: #6b7280; }
.djy-product-reviews #review_form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.djy-product-reviews .required { color: #ef4444; }
.djy-product-reviews .woocommerce-pagination { margin-top: 24px; }
.djy-product-reviews :is(.must-log-in, .woocommerce-verification-required, .woocommerce-review-closed) { padding: 20px; border-radius: 12px; background: #eff6ff; }
.djy-product-reviews :is(#reviews, #respond, .comment_container) { scroll-margin-top: 140px; }
@media (max-width: 768px) {
    .djy-product-reviews #reviews { grid-template-columns: 1fr; gap: 24px; }
    .djy-product-reviews #review_form_wrapper { padding: 18px; }
    .djy-product-reviews #reviews #comments ol.commentlist li .comment-text { margin-left: 52px; padding: 14px; }
    .djy-product-reviews #review_form #respond .form-submit input { width: 100%; }
}
