/* Judge.me's classic review widget, adapted to the store palette. */
.storefront .reviews-widget { --review-accent: #ccb887; --review-text: #f2eee5; --review-muted: #aaa79f; --review-line: #ffffff20; padding-top: 52px; border-top-color: var(--review-line); font-family: "Editorial Manrope","Microsoft YaHei",sans-serif; }
.reviews-widget svg { flex-shrink: 0; }
.reviews-heading { text-align: center; }
.storefront .reviews-heading h2 { margin: 0; color: var(--review-text); font: 500 28px/1.5 "Editorial Manrope","Microsoft YaHei",sans-serif; letter-spacing: -.5px; }
.reviews-overview { display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 40px; padding: 38px 0; max-width: 1000px; margin: auto; }
.reviews-overview-readonly { grid-template-columns: 1fr 1.4fr; max-width: 640px; }
.review-score { text-align: center; }
.review-score > div { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 12px; }
.review-score strong { font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -1.5px; color: var(--review-text); font-variant-numeric: tabular-nums; }
.review-score > div > span { font-size: 14px; color: var(--review-muted); }
.review-score .review-score-empty { margin-bottom: 14px; color: var(--review-text); font-size: 22px; font-weight: 500; line-height: 1.4; letter-spacing: .5px; }
.review-score .rating-stars { color: var(--review-accent); gap: 4px; }
.review-score .rating-star { width: 20px; height: 20px; flex-basis: 20px; }
.storefront .review-score p { font-size: 12px; margin-top: 10px; color: var(--review-muted); }
.review-distribution { display: grid; gap: 2px; width: 100%; padding: 0 32px; border-inline: 1px solid var(--review-line); }
.reviews-overview-readonly .review-distribution { border-right: 0; padding-right: 0; }
.review-distribution-row { display: grid; grid-template-columns: 27px minmax(0,1fr) 26px; align-items: center; gap: 12px; padding: 5px 0; border: 0; background: transparent; color: var(--review-muted); font-size: 12px; cursor: pointer; text-align: left; }
.reviews-widget .review-distribution-row:disabled { opacity: 1; cursor: default; }
.review-distribution-row > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.review-distribution-row svg { width: 12px; height: 12px; color: var(--review-accent); fill: currentColor; stroke-width: 1; }
.review-distribution-track { display: block; height: 6px; overflow: hidden; background: #ffffff12; }
.review-distribution-track i { display: block; height: 100%; background: var(--review-accent); transition: opacity .18s; }
.review-distribution-row > small { font-size: 11px; text-align: right; color: var(--review-muted); font-variant-numeric: tabular-nums; }
.review-distribution-row:hover:enabled,.review-distribution-row[aria-pressed=true] { color: var(--review-text); }
.review-distribution-row:hover:enabled .review-distribution-track i { opacity: .7; }
.review-distribution-row[aria-pressed=true] > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.reviews-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.reviews-actions > span { color: var(--review-muted); font-size: 11px; }
.reviews-write,.reviews-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 25px; border: 1px solid var(--review-accent); border-radius: 999px; background: var(--review-accent); color: #191916; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; cursor: pointer; transition: background .18s,transform .18s; }
.reviews-write svg,.reviews-primary svg { width: 17px; height: 17px; }
.reviews-write:hover,.reviews-primary:hover { background: #dfcca0; }
.reviews-write:active,.reviews-primary:active { transform: translateY(1px); }
.reviews-feed { min-width: 0; border-top: 1px solid var(--review-line); }
.reviews-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--review-line); }
.reviews-results { font-size: 12px; color: var(--review-muted); white-space: nowrap; }
.reviews-filters { display: flex; align-items: center; gap: 10px; min-width: 0; }
.review-search { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--review-line); border-radius: 4px; padding-left: 11px; max-width: 230px; min-width: 0; color: var(--review-muted); }
.review-search > svg { width: 15px; height: 15px; }
.storefront .reviews-widget .review-search input { min-width: 0; width: 100%; min-height: 40px; margin: 0; padding: 9px 10px 9px 0; border: 0; border-radius: 0; color: var(--review-text); background: transparent; font-size: 12px; box-shadow: none; }
.storefront .reviews-widget .review-search input::placeholder { color: var(--review-muted); }
.review-search:focus-within { border-color: var(--review-accent); }
.review-sort-wrap,.review-select-wrap { display: block; position: relative; min-width: 0; }
.storefront .reviews-widget .review-sort-wrap select { width: auto; min-height: 40px; padding: 9px 30px 9px 12px; appearance: none; background: #161613; border: 1px solid var(--review-line); border-radius: 4px; color: var(--review-text); font-size: 12px; cursor: pointer; }
.review-sort-wrap > svg,.review-select-wrap > svg { pointer-events: none; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--review-muted); }
.reviews-active-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; color: var(--review-muted); font-size: 12px; }
.reviews-active-filter > span { min-width: 0; overflow-wrap: anywhere; }
.reviews-active-filter button,.reviews-no-results button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--review-accent); background: transparent; font-size: 12px; white-space: nowrap; }
.reviews-active-filter button svg { width: 13px; height: 13px; }
.review-entry { padding: 28px 0; border-bottom: 1px solid var(--review-line); min-width: 0; }
.review-entry-heading .rating-stars { color: var(--review-accent); gap: 3px; }
.review-entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.review-entry-heading .rating-star { width: 18px; height: 18px; flex-basis: 18px; }
.review-entry-heading time { font-size: 11px; color: var(--review-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.review-author { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.review-avatar { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; border-radius: 50%; background: #ffffff0c; color: #b8b4aa; font-size: 11px; }
.review-author strong { font-size: 13px; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; color: var(--review-text); }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #b0bda2; }
.review-verified svg { width: 13px; height: 13px; }
.storefront .review-body > p { margin: 13px 0 12px; font-size: 14px; line-height: 1.95; color: #d4d0c7; white-space: pre-line; overflow-wrap: anywhere; }
.review-product { display: block; font-size: 11px; color: var(--review-muted); overflow-wrap: anywhere; }
.storefront .reviews-display-note { font-size: 11px; margin-top: 18px; color: var(--review-muted); line-height: 1.8; }
.reviews-empty,.reviews-no-results { padding: 36px 20px; text-align: center; }
.reviews-empty { border-top: 1px solid var(--review-line); }
.reviews-empty-icon { display: inline-flex; color: #858177; margin-bottom: 12px; }
.reviews-empty-icon svg { width: 28px; height: 28px; }
.reviews-empty h3,.reviews-no-results h3 { font-size: 14px; font-weight: 400; color: #d4d0c7; }
.storefront .reviews-empty p,.storefront .reviews-no-results p { font-size: 12px; margin-top: 8px; color: var(--review-muted); line-height: 1.8; }
.reviews-widget [hidden] { display: none !important; }
.review-dialog { width: min(560px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 32px; border: 1px solid #484136; border-radius: 12px; color: var(--review-text); background: #191916; box-shadow: 0 24px 100px #0006; overflow: auto; color-scheme: dark; animation: review-enter .2s ease-out; }
.review-dialog:not([open]) { display: none; }
.review-dialog::backdrop { background: #0008; backdrop-filter: blur(4px); }
html:has(.review-dialog[open]) { overflow: hidden; }
.review-composer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.review-composer-heading h3 { font-size: 23px; font-weight: 500; line-height: 1.5; color: var(--review-text); }
.storefront .review-composer-heading p { font-size: 12px; margin-top: 8px; line-height: 1.8; color: var(--review-muted); }
.review-close { display: grid; place-items: center; width: 36px; height: 36px; margin: -5px -9px 0 0; background: transparent; border-radius: 50%; color: var(--review-muted); flex: 0 0 36px; }
.review-close svg { width: 20px; height: 20px; }
.review-close:hover { background: #ffffff0a; color: var(--review-text); }
.review-field { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; font-size: 12px; color: #cecbc3; }
.storefront .reviews-widget .review-field select,.storefront .reviews-widget .review-field textarea { min-width: 0; width: 100%; background: #11110f; color: var(--review-text); border: 1px solid var(--review-line); border-radius: 5px; font-size: 14px; padding: 12px 14px; }
.storefront .reviews-widget .review-field select { appearance: none; padding-right: 36px; text-overflow: ellipsis; }
.storefront .reviews-widget .review-field textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.storefront .reviews-widget .review-field textarea::placeholder { color: #8d897f; font-size: 13px; }
.storefront .reviews-widget .review-field :is(select,textarea):focus { border-color: var(--review-accent); box-shadow: 0 0 0 2px #ccb88715; }
.review-content-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--review-muted); font-size: 11px; }
.review-rating-picker { margin: 24px 0 0; padding: 0; border: 0; }
.review-rating-picker legend { font-size: 12px; color: #cecbc3; margin-bottom: 10px; }
.review-rating-picker output { font-size: 11px; color: var(--review-accent); margin-left: 16px; }
.review-rating-picker > div { display: flex; align-items: center; gap: 2px; }
.review-rating-option { position: relative; display: grid; place-items: center; cursor: pointer; width: 44px; height: 44px; border-radius: 4px; color: #736c5b; }
.review-rating-option input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.review-rating-option > svg { width: 32px; height: 32px; fill: transparent; transition: fill .15s,color .15s,transform .15s; }
.review-rating-option.is-filled { color: var(--review-accent); }
.review-rating-option.is-filled > svg { fill: currentColor; }
.review-rating-option:hover > svg { transform: scale(1.1); }
.review-rating-option:has(input:focus-visible) { outline: 2px solid var(--review-accent); outline-offset: 1px; }
.review-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; }
.review-composer-footer > span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--review-muted); }
.review-composer-footer > span svg { width: 14px; height: 14px; }
.review-composer .error:not(:empty) { padding-top: 15px; font-size: 12px; color: #f0a59b; }
.review-account-note { display: flex; flex-direction: column; align-items: center; padding-top: 35px; text-align: center; }
.review-account-note > svg { width: 36px; height: 36px; color: var(--review-accent); margin-bottom: 18px; }
.review-account-note strong { font-size: 16px; font-weight: 500; }
.storefront .review-account-note p { font-size: 12px; color: var(--review-muted); margin: 12px 0 26px; line-height: 1.8; }
.reviews-widget :is(button,a,select):focus-visible { outline: 2px solid var(--review-accent); outline-offset: 3px; }
@keyframes review-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:1000px) {
  .reviews-overview { gap: 22px; }
  .review-distribution { padding-inline: 22px; }
  .reviews-filters { gap: 8px; }
  .review-search { max-width: 180px; }
}
@media(max-width:700px) {
  .storefront .reviews-widget { padding-top: 32px; }
  .storefront .reviews-heading h2 { font-size: 24px; }
  .reviews-overview,.reviews-overview-readonly { grid-template-columns: 110px minmax(0,1fr); gap: 25px 18px; padding: 28px 0; }
  .review-score strong { font-size: 36px; }
  .review-score .review-score-empty { font-size: 18px; letter-spacing: 0; }
  .review-score > div > span { font-size: 12px; }
  .review-score .rating-stars { gap: 3px; }
  .review-score .rating-star { width: 16px; height: 16px; flex-basis: 16px; }
  .storefront .review-score p { font-size: 10px; line-height: 1.8; }
  .review-distribution { border: 0; padding: 0; }
  .review-distribution-row { gap: 8px; font-size: 11px; grid-template-columns: 25px minmax(0,1fr) 20px; }
  .review-distribution-row > small { font-size: 10px; }
  .reviews-actions { grid-column: 1 / -1; gap: 9px; }
  .reviews-write { width: 100%; max-width: 320px; }
  .reviews-actions > span { font-size: 10px; }
  .reviews-list-toolbar { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px 0; }
  .reviews-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .review-search { grid-column: 1 / -1; max-width: none; }
  .storefront .reviews-widget .review-search input,.storefront .reviews-widget .review-sort-wrap select { font-size: 16px; }
  .storefront .reviews-widget .review-sort-wrap select { width: 100%; }
  .review-entry { padding: 24px 0; }
  .review-entry-heading time { font-size: 10px; }
  .review-entry-heading .rating-star { width: 17px; height: 17px; flex-basis: 17px; }
  .storefront .review-body > p { font-size: 13px; }
  .reviews-active-filter { font-size: 11px; align-items: flex-start; }
  .review-dialog { padding: 26px 22px; max-height: calc(100dvh - 32px); }
  .review-composer-heading h3 { font-size: 21px; }
  .storefront .review-composer-heading p { font-size: 11px; }
  .storefront .reviews-widget .review-field select,.storefront .reviews-widget .review-field textarea { font-size: 16px; }
  .review-composer-footer { align-items: stretch; flex-direction: column-reverse; gap: 14px; }
  .review-composer-footer > span { justify-content: center; }
}
@media(prefers-reduced-motion:reduce) {
  .review-dialog { animation: none; }
  .reviews-widget :is(button,svg,i) { transition: none; }
}
