/* Review dialogs move outside #main: use the same configured product/theme colours explicitly. */
body#product .product-comment-modal {
 --sr-review-primary: var(--sr-theme-primary,#1b7d36);
 --sr-review-surface: var(--sr-theme-surface,#fff);
 --sr-review-text: var(--sr-theme-text,#1f2328);
 --sr-review-muted: var(--sr-theme-muted,#6b7280);
 --sr-review-border: var(--sr-product-border,#e8e8ec);
 --sr-review-soft: var(--sr-product-soft-bg,#fafbf9);
 --sr-review-danger: var(--sr-product-danger,#d92d20);
 font-family: Manrope,sans-serif; color: var(--sr-review-text);
 padding: 24px !important; overflow-y: auto;
}
body#product .product-comment-modal.in { display: flex !important; align-items: center; justify-content: center; }
body#product .product-comment-modal .modal-dialog { flex: 0 1 680px; width: 100%; max-width: 680px; margin: auto; }
body#product .product-comment-modal .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid var(--sr-review-border); border-radius: 18px; background: var(--sr-review-surface); color: var(--sr-review-text); box-shadow: 0 20px 80px rgb(0 0 0 / 18%); }
body#product .product-comment-modal .modal-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--sr-review-border); }
body#product .product-comment-modal .modal-header::after { display: none; }
body#product .product-comment-modal .modal-header :is(h2,.h2) { float: none; margin: 0; color: inherit; font-size: 21px; line-height: 1.3; font-weight: 750; text-transform: none; }
body#product .product-comment-modal .modal-header .close { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; margin: 0; border: 1px solid var(--sr-review-border); border-radius: 50%; color: var(--sr-review-muted); background: var(--sr-review-surface); opacity: 1; font-size: 24px; font-weight: 400; text-shadow: none; }
body#product .product-comment-modal .modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; }
body#product .sr-review-product { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 10px; background: var(--sr-review-soft); }
body#product .sr-review-product__image { flex: 0 0 64px; }
body#product .sr-review-product__image img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; }
body#product .sr-review-product__text { min-width: 0; }
body#product .sr-review-product__name { margin: 0; color: var(--sr-review-text); font-size: 14px; font-weight: 700; line-height: 1.5; }
body#product .sr-review-product__description { margin: 6px 0 0; color: var(--sr-review-muted); font-size: 12px; line-height: 1.6; }
body#product #post-product-comment-modal #criterions_list { margin: 20px 0; padding: 0; list-style: none; }
body#product #post-product-comment-modal .criterion-rating { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; font-size: 13px; }
body#product #post-product-comment-modal .grade-stars { flex: 0 0 150px; min-width: 150px; height: 32px; }
body#product #post-product-comment-modal .grade-stars .star-content { top: 0; left: 0; margin: 0; height: 32px; }
body#product #post-product-comment-modal .star-content div.star { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 32px; margin: 0; background: none; color: var(--sr-review-muted); cursor: pointer; }
body#product #post-product-comment-modal .star-content div.star::before { content: '☆'; font-family: Arial,sans-serif; font-size: 29px; line-height: 1; }
body#product #post-product-comment-modal .star-content div.star:is(.star-on,.star-hover)::before { content: '★'; color: var(--sr-review-primary); }
body#product .sr-review-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
body#product .sr-review-fields--guest { grid-template-columns: repeat(2,minmax(0,1fr)); }
body#product .sr-review-field { min-width: 0; margin-bottom: 18px; }
body#product #post-product-comment-modal label.form-label { margin: 0 0 8px; color: var(--sr-review-text); font-size: 13px; font-weight: 650; }
body#product #post-product-comment-modal input[type="text"],
body#product #post-product-comment-modal textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--sr-review-border); border-radius: 6px; padding: 12px; margin: 0; background: var(--sr-review-surface); color: var(--sr-review-text); font-family: inherit; font-size: 14px; }
body#product #post-product-comment-modal input[type="text"] { height: 46px; }
body#product #post-product-comment-modal textarea { min-height: 132px; line-height: 1.6; resize: vertical; }
body#product #post-product-comment-modal :is(input[type="text"],textarea):focus { border-color: var(--sr-review-primary); outline: 2px solid color-mix(in srgb,var(--sr-review-primary) 15%,transparent); outline-offset: 1px; }
body#product #post-product-comment-modal :is(input,textarea).error { border-color: var(--sr-review-danger); }
body#product .sr-review-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--sr-review-border); }
body#product .sr-review-footer .required { margin: 0; color: var(--sr-review-muted); font-size: 11px; }
body#product .product-comment-modal .post-comment-buttons { gap: 10px; margin-inline-start: auto; }
body#product .product-comment-modal :is(.btn-comment,.btn-comment-inverse) { height: auto; min-height: 44px; padding: 12px 18px; margin: 0; border: 1px solid var(--sr-review-primary); border-radius: 6px; box-shadow: none; font-size: 13px; line-height: 1.4; font-weight: 650; }
body#product .product-comment-modal .btn-comment { background: var(--sr-review-primary); color: var(--sr-product-on-accent,#fff); }
body#product .product-comment-modal .btn-comment-inverse { background: transparent; border-color: var(--sr-review-border); color: var(--sr-review-muted); }
body#product .product-comment-modal :is(button,[tabindex="0"]):focus-visible { outline: 2px solid var(--sr-review-primary); outline-offset: 3px; }
@media(max-width:767px) {
 body#product .product-comment-modal { padding: 12px !important; }
 body#product .product-comment-modal .modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
 body#product .product-comment-modal .modal-header { padding: 16px 18px; }
 body#product .product-comment-modal .modal-header :is(h2,.h2) { font-size: 18px; }
 body#product .product-comment-modal .modal-body { padding: 18px; }
 body#product .sr-review-fields--guest { grid-template-columns: minmax(0,1fr); gap: 0; }
 body#product .sr-review-product { padding: 12px; gap: 12px; }
 body#product .sr-review-product__description { display: none; }
 body#product .sr-review-footer .post-comment-buttons { width: 100%; }
 body#product .sr-review-footer .post-comment-buttons button { flex: 1 1 0; }
}
@media(prefers-reduced-motion:reduce) { body#product .product-comment-modal, body#product .product-comment-modal .modal-dialog { transition: none; } }
