/* Customer reviews in the look of the old Shopbase review app (green #20A848, yellow stars, grey panel). */
:root { --vr-g: #20A848; --vr-star: #FFC52E; --vr-off: #d5dbd8; --vr-line: #e3e8e6; --vr-panel: #F8F8F8; --vr-mute: #5f6b67; }

/* Star row: 5 stars from one mask, filled to --r (0–5, halves and tenths allowed) */
.vr-stars { --s: 16px; display: inline-block; flex: none; vertical-align: middle; width: calc(var(--s) * 5); height: var(--s);
	background: linear-gradient(90deg, var(--vr-star) calc(var(--r, 0) * 20%), var(--vr-off) 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3l-6.4 3.6 1.5-7.1L1.7 8.9l7.2-.8z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3l-6.4 3.6 1.5-7.1L1.7 8.9l7.2-.8z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }
.vr-stars.is-big { --s: 22px; }

/* Rating line above the product title, stars and count on product cards, account link */
.vr-top { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 .35em; font-size: 14px; color: inherit; text-decoration: none; }
.vr-top b { font-weight: 700; }
.vr-top span { color: var(--vr-mute); text-decoration: underline; text-underline-offset: 2px; }
.vr-card { display: inline-flex; align-items: center; gap: 4px; }
.vr-card .star-rating { --star-rating-initial-color: var(--vr-star); color: var(--vr-star); margin: 0; }
.vr-card-n { font-size: 12px; color: var(--vr-mute); }
.vr-acc { margin: .3em 0 0; font-size: 13px; }
.vr-acc a { color: var(--vr-g); font-weight: 600; }

/* ---------- Block ---------- */
.vrev { width: var(--theme-container-width, 90%); max-width: 1100px; margin: 3em auto; color: #1f2a27; }
.vrev > h2 { text-align: center; font-size: 28px; margin: 0 0 .8em; }
.vrev-anchor { display: block; position: relative; top: -90px; visibility: hidden; }
.vrev button { font: inherit; cursor: pointer; }
.vrev .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vrev-write, .vrev-send, .vrev-close { min-height: 46px; padding: 0 1.6em; border: 0; border-radius: 8px; background: var(--vr-g); color: #fff; font-weight: 700; font-size: 15px; }
.vrev-write:hover, .vrev-send:hover, .vrev-close:hover { filter: brightness(.93); }

/* Summary: score | bars | button */
.vrev-head { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.4fr) minmax(200px, 1fr); gap: 1.4em 2.4em; align-items: center; padding: 1.6em 2em; background: var(--vr-panel); border-radius: 10px; }
.vrev-avg { display: flex; flex-direction: column; align-items: center; gap: .35em; text-align: center; }
.vrev-avg strong { font-size: 46px; line-height: 1; }
.vrev-avg > span:last-child { font-size: 13px; color: var(--vr-mute); }
.vrev-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vrev-bars button { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 10px; width: 100%; padding: 3px 6px; border: 1px solid transparent; border-radius: 6px; background: none; font-size: 13px; color: inherit; }
.vrev-bars button:hover:not(:disabled), .vrev-bars button[aria-pressed="true"] { border-color: var(--vr-g); background: #fff; }
.vrev-bars button:disabled { cursor: default; opacity: .55; }
.vrev-bar-l i { color: var(--vr-star); font-style: normal; }
.vrev-bar { height: 8px; border-radius: 4px; background: #e4e8e6; overflow: hidden; }
.vrev-bar i { display: block; height: 100%; background: var(--vr-star); border-radius: 4px; }
.vrev-bar-n { text-align: right; color: var(--vr-mute); }
.vrev-cta { text-align: center; }
.vrev-cta p { margin: 0 0 .7em; font-size: 14px; color: var(--vr-mute); }

/* Customer photo strip */
.vrev-photos { margin: 1.6em 0 0; }
.vrev-photos h3, .vrev-title { font-size: 16px; margin: 0 0 .6em; }
.vrev-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.vrev-shot, .vrev-img { flex: none; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #eef1f0; scroll-snap-align: start; }
.vrev-shot img { display: block; width: 110px; height: 110px; object-fit: cover; transition: transform .2s; }
.vrev-shot:hover img, .vrev-img:hover img { transform: scale(1.05); }

/* Filters and sort */
.vrev-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8em; margin: 1.6em 0 .4em; padding-bottom: .9em; border-bottom: 1px solid var(--vr-line); }
.vrev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vrev-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--vr-line); border-radius: 18px; background: #fff; font-size: 14px; color: inherit; }
.vrev-chip span { color: var(--vr-mute); }
.vrev-chip[aria-pressed="true"] { border-color: var(--vr-g); background: var(--vr-g); color: #fff; }
.vrev-chip[aria-pressed="true"] span { color: #e7f7ec; }
.vrev-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.vrev-sort span { color: var(--vr-mute); }
.vrev-sort select { min-height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--vr-line); border-radius: 8px; font-size: 14px; width: auto; }

/* Review cards */
.vrev-card { padding: 1.3em 0; border-bottom: 1px solid var(--vr-line); }
.vrev-card header { display: flex; align-items: center; gap: 12px; margin-bottom: .5em; }
.vrev-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; background: #20A848; }
.vrev-av[data-h="1"] { background: #1c8a9e; } .vrev-av[data-h="2"] { background: #6b5bd6; } .vrev-av[data-h="3"] { background: #d9822b; }
.vrev-av[data-h="4"] { background: #c2416b; } .vrev-av[data-h="5"] { background: #3f6f5a; }
.vrev-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vrev-who b { font-size: 15px; }
.vrev-ver { font-size: 12px; color: var(--vr-g); font-weight: 600; }
.vrev-ver i { font-style: normal; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--vr-g); color: #fff; font-size: 9px; }
.vrev-card time { margin-left: auto; font-size: 13px; color: var(--vr-mute); white-space: nowrap; }
.vrev-title { margin: .55em 0 .2em; }
.vrev-text { margin: .35em 0 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.vrev-src { margin: .4em 0 0; font-size: 12px; color: #6b7280; } /* imported reviews: where they come from */
/* "Übersetzen" under a review in another language; the translation replaces the shown text until "Original anzeigen" */
.vrev-tr { display: inline-block; margin: .35em 0 0; padding: 0; border: 0; background: none; font-size: 13px; color: #2563eb; text-decoration: underline; cursor: pointer; }
.vrev-tr:disabled { color: #6b7280; cursor: wait; }
.vrev-trn { margin: .35em 0 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.vrev-trn small { display: block; margin-top: .2em; font-size: 12px; color: #6b7280; }
.vrev-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .8em; }
.vrev-img img { display: block; width: 96px; height: 96px; object-fit: cover; transition: transform .2s; }
.vrev-reply { margin-top: .9em; padding: .8em 1em; border-left: 3px solid var(--vr-g); background: #f2f8f4; border-radius: 0 8px 8px 0; font-size: 14px; }
.vrev-reply p { margin: .3em 0 0; }
.vrev-none { text-align: center; color: var(--vr-mute); padding: 1.5em 0; }
.vrev-more { display: block; margin: 1.4em auto 0; min-height: 44px; padding: 0 2em; border: 1px solid var(--vr-g); border-radius: 8px; background: #fff; color: var(--vr-g); font-weight: 700; }
.vrev-more[hidden], .vrev-none[hidden] { display: none; }

/* No reviews yet: one compact row */
.vrev-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 1em 1.4em; padding: 1.3em 1.6em; background: var(--vr-panel); border-radius: 10px; }
.vrev-empty > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.vrev-empty span { font-size: 14px; color: var(--vr-mute); }

/* How reviews are checked */
.vrev-how { margin: 1.2em 0 0; font-size: 13px; color: var(--vr-mute); }
.vrev-how summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 2px; }
.vrev-how p { margin: .5em 0 0; max-width: 820px; line-height: 1.55; }

/* ---------- Write-a-review dialog ---------- */
html:has(.vrev-dlg[open]), html.vrev-lock { overflow: hidden; }
.vrev-dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(8, 23, 18, .28); color: #1f2a27; }
.vrev-dlg::backdrop { background: rgba(8, 23, 18, .55); }
.vrev-dlg-in { position: relative; padding: 22px 22px 26px; }
.vrev-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f4f3; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; }
.vrev-prod { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.vrev-prod img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.vrev-prod small { display: block; color: var(--vr-mute); font-size: 12px; }
.vrev-prod b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrev-dlg h2 { font-size: 22px; margin: .8em 0 .5em; }
.vrev-rate { margin: 0 0 1em; padding: 0; border: 0; }
.vrev-rate legend { font-weight: 600; font-size: 15px; margin: 0 0 .3em; padding: 0; } /* the theme pulls legends 15px to the left */
.vrev-dlg em { color: #c0392b; font-style: normal; }
.vrev-pick { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.vrev-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vrev-pick label { width: 44px; height: 44px; margin: 0; cursor: pointer; background: var(--vr-off); transition: transform .12s, background .12s;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3l-6.4 3.6 1.5-7.1L1.7 8.9l7.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.3l-6.4 3.6 1.5-7.1L1.7 8.9l7.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vrev-pick input:checked ~ label { background: var(--vr-star); }
/* While hovering, the hovered star and the ones before it light up instead of the chosen ones */
.vrev-pick:hover input ~ label { background: var(--vr-off); }
.vrev-pick input ~ label:hover, .vrev-pick label:hover ~ label { background: var(--vr-star); }
.vrev-pick input ~ label:hover { transform: scale(1.08); }
.vrev-pick input:focus-visible + label { outline: 2px solid var(--vr-g); outline-offset: 2px; }
.vrev-word { display: block; min-height: 1.4em; margin-top: .2em; font-size: 14px; font-weight: 600; color: var(--vr-mute); }
.vrev-f { display: block; margin: 0 0 1em; }
.vrev-f > span, .vrev-up-h { display: block; font-weight: 600; font-size: 14px; margin-bottom: .35em; }
.vrev-f small, .vrev-up-h small { font-weight: 400; color: var(--vr-mute); }
.vrev-f input, .vrev-f textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd6d3; border-radius: 8px; font-size: 16px; background: #fff; }
.vrev-f textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.vrev-f input:focus, .vrev-f textarea:focus { border-color: var(--vr-g); outline: 2px solid rgba(32, 168, 72, .18); }
.vrev-f [aria-invalid="true"] { border-color: #c0392b; }
.vrev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.vrev-up { margin: 0 0 1em; }
.vrev-up-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vrev-up-tile, .vrev-up-add { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; margin: 0; }
.vrev-up-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vrev-up-tile button { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.vrev-up-tile.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%2320A848' stroke-width='3' stroke-dasharray='40 20'/%3E%3C/svg%3E") center / 28px no-repeat; }
.vrev-up-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px dashed #9fb0aa; background: #fbfcfc; cursor: pointer; text-align: center; }
.vrev-up-add:hover { border-color: var(--vr-g); }
.vrev-up-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vrev-up-add span { font-size: 22px; line-height: 1; }
.vrev-up-add b { font-size: 11px; font-weight: 600; line-height: 1.2; padding: 0 4px; }
.vrev-up-add[hidden] { display: none; }
.vrev-up-tip { display: block; margin-top: .4em; color: var(--vr-mute); font-size: 12px; }
.vrev-fine { font-size: 12px; line-height: 1.5; color: var(--vr-mute); margin: 0 0 1em; }
.vrev-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vrev-err { margin: 0 0 .8em; padding: .7em .9em; border-radius: 8px; background: #fdecea; color: #a1281b; font-size: 14px; }
.vrev-err[hidden], .vrev-prog[hidden], .vrev-done[hidden], .vrev-form[hidden] { display: none; }
.vrev-prog { height: 4px; border-radius: 2px; background: #e4e8e6; margin: 0 0 .8em; overflow: hidden; }
.vrev-prog i { display: block; height: 100%; width: 0; background: var(--vr-g); transition: width .2s; }
.vrev-send { width: 100%; min-height: 50px; font-size: 16px; }
.vrev-send:disabled { opacity: .65; cursor: wait; }
.vrev-done { text-align: center; padding: 1.4em 0 .4em; }
.vrev-done-i { width: 64px; height: 64px; margin: 0 auto .4em; border-radius: 50%; background: var(--vr-g); color: #fff; font-size: 34px; display: grid; place-items: center; }
.vrev-done p { color: var(--vr-mute); }

/* ---------- Photo viewer ---------- */
.vrev-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(8, 12, 11, .92); color: #fff; }
.vrev-lb[hidden] { display: none; }
.vrev-lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1000px, 92vw); }
.vrev-lb img { max-width: 92vw; max-height: 70vh; width: auto; height: auto; border-radius: 6px; background: #222; object-fit: contain; }
.vrev-lb figcaption { width: min(640px, 92vw); margin-top: 14px; font-size: 14px; line-height: 1.5; }
.vrev-lb figcaption .vr-stars { --vr-off: #5a6461; }
.vrev-lb-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.vrev-lb-who .vrev-ver { color: #7ee2a0; }
.vrev-lb-text { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #dfe6e3; }
.vrev-lb-go { color: #7ee2a0; background: none; border: 0; padding: 0; margin-top: 4px; font: inherit; text-decoration: underline; cursor: pointer; }
.vrev-lb-x, .vrev-lb-prev, .vrev-lb-next { position: absolute; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.vrev-lb-x { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 26px; }
.vrev-lb-prev, .vrev-lb-next { top: 40%; width: 48px; height: 48px; font-size: 28px; }
.vrev-lb-prev { left: 16px; } .vrev-lb-next { right: 16px; }
.vrev-lb-prev[hidden], .vrev-lb-next[hidden] { display: none; }
.vrev-lb-n { position: absolute; top: 24px; left: 20px; font-size: 13px; color: #cfd8d4; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 899px) {
	.vrev-head { grid-template-columns: 1fr 1.4fr; }
	.vrev-cta { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.vrev { width: auto; margin: 2em 16px; }
	.vrev > h2 { font-size: 22px; }
	.vrev-head { grid-template-columns: 1fr; padding: 1.2em 1em; gap: 1em; }
	.vrev-avg { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .3em .6em; }
	.vrev-avg strong { font-size: 38px; }
	.vrev-avg > span:last-child { flex-basis: 100%; }
	.vrev-cta .vrev-write, .vrev-empty .vrev-write { width: 100%; }
	.vrev-shot img { width: 88px; height: 88px; }
	.vrev-img img { width: 84px; height: 84px; }
	.vrev-tools { flex-direction: column; align-items: stretch; }
	.vrev-chips { flex-wrap: nowrap; overflow-x: auto; }
	.vrev-chip { flex: none; }
	.vrev-sort select { flex: 1; }
	.vrev-dlg { width: 100%; max-width: 100%; height: 100%; max-height: 100dvh; margin: 0; border-radius: 0; }
	.vrev-dlg-in { padding: 16px 16px 24px; }
	.vrev-two { grid-template-columns: 1fr; }
	.vrev-pick label { width: 48px; height: 48px; }
	.vrev-lb-prev, .vrev-lb-next { top: auto; bottom: 20px; }
	.vrev-lb img { max-height: 62vh; }
}
