/* Reviews written on NatGard, the review form and product questions (product-reviews.js). */
.pdp-site-review-form { grid-column: 2; padding: 24px; border: 1px solid var(--ng-border-soft,#e0e0e0); border-radius: 8px; background: var(--ng-surface-white,#fff); color: var(--ng-text-body,#333); scroll-margin-top: 140px; }
.pdp-site-review-form:focus { outline: none; }
.pdp-site-review-form[hidden] { display: none; }
.pdp-site-review-form > h3 { margin: 0 0 12px; color: var(--ng-text-black,#000); font-size: 18px; line-height: 24px; }
.pdp-site-review-form > p { margin: 0 0 16px; font-size: 16px; line-height: 24px; }
.pdp-site-review-form form, .pdp-site-ask form { display: grid; gap: 16px; }
.pdp-site-rating { margin: 0; padding: 0; border: 0; }
.pdp-site-rating legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 21px; }
/* The stars of a rating (the look of 29.11.2026, approved on the mock "Изменить отзыв"): rounded joints, a pale warm
   outline on the empty ones, a warmer gold on the chosen, a small lift under the pointer, and the word of the mark
   ("Хорошо · 4 из 5") beside them. */
.pdp-site-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pdp-site-rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.pdp-site-rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pdp-site-rating-stars label { cursor: pointer; display: block; width: 40px; height: 40px; transition: transform .12s ease; }
.pdp-site-rating-stars svg { width: 40px; height: 40px; display: block; overflow: visible; }
.pdp-site-rating-stars svg path { fill: #fff; stroke: #d6c69c; stroke-width: 1.3px; stroke-linejoin: round; transition: fill .12s ease, stroke .12s ease; }
.pdp-site-rating-stars input:checked ~ label svg path,
.pdp-site-rating-stars label:hover svg path, .pdp-site-rating-stars label:hover ~ label svg path { fill: #f6bd2c; stroke: #c98d0e; }
.pdp-site-rating-stars input:focus-visible + label { outline: 2px solid var(--ng-focus,#1266c3); outline-offset: 2px; border-radius: 6px; }
.pdp-site-rating-word { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ng-text-strong,#181b1f); }
.pdp-site-rating-word small { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--ng-muted,#66705f); }
.pdp-site-rating-word:empty { display: none; }
@media (hover: hover) { .pdp-site-rating-stars label:hover { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .pdp-site-rating-stars label, .pdp-site-rating-stars svg path { transition: none; } }
html[data-device="phone"] .pdp-site-rating-stars label, html[data-device="phone"] .pdp-site-rating-stars svg { width: 36px; height: 36px; }
.pdp-site-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; line-height: 21px; color: var(--ng-text-black,#000); }
.pdp-site-field textarea, .pdp-site-field input:not([type="file"]) { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--ng-border-soft,#c4c4c4); border-radius: 8px; font-family: inherit; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ng-text-body,#333); background: #fff; }
.pdp-site-field textarea:focus, .pdp-site-field input:focus { outline: 2px solid var(--ng-focus,#1266c3); outline-offset: 0; border-color: transparent; }
.pdp-site-counter { justify-self: end; color: var(--ng-muted,#666); font-size: 12px; font-weight: 400; }
.pdp-site-error { color: #b3261e; font-size: 14px; font-weight: 400; line-height: 20px; }
.pdp-site-error[hidden] { display: none; }
.pdp-site-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-site-preview { position: relative; display: block; width: 72px; height: 72px; }
.pdp-site-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ng-border-soft,#e0e0e0); }
.pdp-site-preview button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #333; color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; }
.pdp-site-photo-add { justify-self: start; display: inline-flex; align-items: center; padding: 8px 16px; border: 1px dashed var(--ng-primary,#458500); border-radius: 8px; color: var(--ng-primary-text,#2f6900); font-weight: 700; cursor: pointer; }
.pdp-site-photo-add[hidden] { display: none; }
.pdp-site-photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pdp-site-photo-add:focus-within { outline: 2px solid var(--ng-focus,#1266c3); outline-offset: 2px; }
.pdp-site-note { margin: 0; color: var(--ng-muted,#555); font-size: 14px; line-height: 21px; }
.pdp-site-note a, .pdp-site-consent a { color: var(--ng-link-focus,#1976d2); }
.pdp-site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pdp-site-button { display: inline-block; padding: 12px 24px; border: 1px solid var(--ng-primary,#458500); border-radius: 8px; background: var(--ng-primary,#458500); color: var(--ng-on-primary,#fff); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 24px; text-decoration: none; cursor: pointer; }
.pdp-site-button:hover { background: var(--ng-primary-deep,#376b00); }
.pdp-site-button:disabled { opacity: .6; cursor: default; }
.pdp-site-button--outline { background: transparent; color: var(--ng-primary-text,#2f6900); }
.pdp-site-button--outline:hover { background: var(--ng-surface,#f3f8fc); }
.pdp-site-link { padding: 0; border: 0; background: none; color: var(--ng-link-focus,#1976d2); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 24px; text-decoration: none; cursor: pointer; }
.pdp-site-status { margin: 0; min-height: 21px; font-size: 14px; line-height: 21px; }
.pdp-site-done { margin: 0; font-size: 16px; line-height: 24px; }
.pdp-site-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pdp-site-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 21px; }
.pdp-site-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.pdp-site-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Review cards */
.pdp-site-review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp-site-review-photo { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.pdp-site-review-photo img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.pdp-site-review-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ng-link-focus,#1976d2); }
.pdp-site-review-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; }
.pdp-site-review-avatar--letter { display: inline-grid; place-items: center; background: var(--ng-surface,#f3f8fc); color: var(--ng-primary-text,#2f6900); font-weight: 700; }
.pdp-site-review footer > small { display: block; margin-top: 4px; }
.pdp-site-review-reply { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--ng-primary,#458500); border-radius: 0 8px 8px 0; background: var(--ng-surface,#f3f8fc); font-size: 14px; line-height: 21px; }
.pdp-site-review-reply strong { color: var(--ng-text-black,#000); }
.pdp-site-review-reply time { margin-left: 8px; color: var(--ng-muted,#666); }
.pdp-site-review-reply p { margin: 6px 0 0; white-space: pre-line; }
.pdp-site-photo-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 160px); margin: 0 auto; border-radius: 8px; }
.pdp-site-photo-dialog [data-close] { width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
/* Questions */
.pdp-site-qna-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.pdp-site-qna-head h2 { margin: 0 !important; }
.pdp-site-qna .pdp-qna-source { margin-bottom: 16px; }
.pdp-site-ask { margin-bottom: 24px; padding: 24px; border: 1px solid var(--ng-border-soft,#e0e0e0); border-radius: 16px; }
.pdp-site-ask[hidden] { display: none; }
.pdp-site-qna-asked { margin: 8px 0 0; color: var(--ng-muted,#666); font-size: 14px; line-height: 21px; }
.pdp-qna-answer p { white-space: pre-line; }
.pdp-site-qna, .pdp-site-review { scroll-margin-top: 140px; }
.pdp-site-qna:focus { outline: none; }
@media (max-width: 991px) { .pdp-site-review-form { grid-column: 1; } }
html[data-device="phone"] .pdp-site-review-form { grid-column: 1; padding: 16px; }
html[data-device="phone"] .pdp-site-row { grid-template-columns: minmax(0, 1fr); }
html[data-device="phone"] .pdp-site-ask { padding: 16px; }
html[data-device="phone"] .pdp-site-qna { order: 2; }
html[data-device="phone"] .pdp-site-button { width: 100%; text-align: center; }
html[data-device="phone"] .pdp-site-qna-head .pdp-site-button { width: auto; }
