.product-review-form { display: grid; gap: .65rem; max-width: 44rem; margin-top: 2rem; padding: clamp(1rem, 4vw, 2rem); border: 1px solid #d5c9bd; border-radius: 1rem; background: #fff; scroll-margin-top: 2rem; }
.product-review-form fieldset { min-width: 0; padding: 0; border: 0; }
.product-review-form legend, .product-review-form > label { font-weight: 600; }
.review-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding-top: .5rem; }
.review-rating__stars { display: flex; flex: none; }
.review-rating label { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; }
.review-rating__input, .review-rating__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.review-rating__star { display: grid; place-items: center; width: 44px; height: 44px; color: #7b5105; font-size: 2rem; border-radius: .3rem; }
.review-rating__star::before { content: "☆"; }
.review-rating label:has(input:checked) .review-rating__star::before,
.review-rating label:has(~ label input:checked) .review-rating__star::before { content: "★"; }
.review-rating input:focus-visible + .review-rating__star { outline: 3px solid #624252; outline-offset: -2px; }
.review-rating__value { font-size: .875rem; white-space: nowrap; }
.review-rating__value span { display: none; }
.review-rating:has(input[value="1"]:checked) [data-rating-value="1"],
.review-rating:has(input[value="2"]:checked) [data-rating-value="2"],
.review-rating:has(input[value="3"]:checked) [data-rating-value="3"],
.review-rating:has(input[value="4"]:checked) [data-rating-value="4"],
.review-rating:has(input[value="5"]:checked) [data-rating-value="5"] { display: inline; }
@media (hover: hover) and (pointer: fine) {
    .review-rating .review-rating__stars:has(label:hover) .review-rating__star::before { content: "☆"; }
    .review-rating .review-rating__stars:has(label:hover) label:hover .review-rating__star::before,
    .review-rating .review-rating__stars:has(label:hover) label:has(~ label:hover) .review-rating__star::before { content: "★"; }
}
.product-review-form input:not([type=radio]), .product-review-form textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: .75rem; border: 1px solid #766a60; border-radius: .4rem; font: inherit; color: #302a27; background: #fff; }
.product-review-form input[aria-invalid="true"], .product-review-form textarea[aria-invalid="true"] { border-color: #9b2525; }
.product-review-form input:not([type=radio]):focus-visible, .product-review-form textarea:focus-visible, .product-review-form button:focus-visible,
.review-first-link:focus-visible, .review-error-summary a:focus-visible { outline: 3px solid #624252; outline-offset: 3px; }
.review-first-link, .review-error-summary a { color: var(--plum, #624252); text-decoration: underline; text-underline-offset: .2em; }
.review-field-error { color: #9b2525; }
.review-field-error:empty { display: none; }
.review-error-summary { border: 2px solid #9b2525; padding: 1rem; border-radius: .4rem; }
.review-error-summary h4 { margin: 0 0 .5rem; font-weight: 700; font-size: 1.125rem; }
.review-thanks { padding: 1rem; background: #edf2e8; color: #263220; border-radius: .5rem; scroll-margin-top: 2rem; margin-bottom: 1rem; }
.review-card--customer { min-width: 0; overflow-wrap: anywhere; }
.review-card--customer > p { white-space: pre-line; }
.review-card--customer .review-card__meta > span { color: #7b5105; }
.staff-review { overflow-wrap: anywhere; }
.staff-review blockquote { white-space: pre-wrap; margin-inline: 0; }
.staff-review details { margin-top: 1rem; }
.staff-review-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem; }
