/* Colors come from the active theme (Twenty Twenty-Four presets), with fallbacks. */
.rbr {
	--rbr-bg: var(--wp--preset--color--background, #F1F4FA);
	--rbr-fg: var(--wp--preset--color--foreground, #12123F);
	--rbr-primary: var(--wp--preset--color--primary, #3473FE);
	--rbr-line: var(--wp--preset--color--tertiary, #DBE6EE);
	--rbr-card: #fff;
	--rbr-muted: color-mix(in srgb, var(--rbr-fg) 65%, transparent);
	color: var(--rbr-fg);
	max-width: 1100px;
	margin-inline: auto;
}
.rbr *, .rbr *::before, .rbr *::after { box-sizing: border-box; }

.rbr-controls { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 12px; }
.rbr-controls input, .rbr-controls select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--rbr-line); border-radius: 8px;
	font: inherit; background: #fff; color: var(--rbr-fg);
}
.rbr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.rbr-chips-label { font-size: 14px; font-weight: 600; margin-right: 4px; }
.rbr-chip {
	border: 1px solid var(--rbr-line); background: #fff; border-radius: 999px; padding: 6px 14px;
	font: inherit; font-size: 14px; cursor: pointer; color: var(--rbr-fg); line-height: 1.4;
}
.rbr-chip[aria-pressed="true"] { background: var(--rbr-fg); color: #fff; border-color: var(--rbr-fg); }
.rbr-chip[aria-pressed="true"]::before { content: "✓ "; }
.rbr-hint { font-size: 13px; color: var(--rbr-muted); }
.rbr-clear { background: none; border: 0; color: var(--rbr-primary); font: inherit; font-size: 14px; cursor: pointer; padding: 4px; }
.rbr-count { font-size: 14px; color: var(--rbr-muted); margin-bottom: 12px; }

.rbr-list { display: grid; gap: 20px; }
.rbr-card { background: var(--rbr-card); border-radius: 14px; padding: 20px; box-shadow: 0 1px 3px rgba(18, 18, 63, .08); }
.rbr-card[hidden] { display: none; }
.rbr .rbr-brand { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.rbr-cols { display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.rbr-bottle {
	background: var(--rbr-line); border-radius: 10px; display: grid; place-items: center;
	padding: 10px; min-height: 220px; align-self: start;
}
.rbr-bottle img { max-width: 100%; max-height: 260px; object-fit: contain; height: auto; }
.rbr-none { color: var(--rbr-muted); font-size: 13px; }

.rbr-tastings { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rbr-tasting { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 20px; }
.rbr-tasting + .rbr-tasting { border-top: 1px solid var(--rbr-line); padding-top: 20px; }

.rbr-media { display: flex; flex-direction: column; gap: 10px; }
.rbr-thumb {
	position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
	background: #000; cursor: pointer; border: 0; padding: 0; display: block;
}
.rbr-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.rbr-play { position: absolute; inset: 0; display: grid; place-items: center; }
.rbr-play span { width: 68px; height: 48px; background: #f00; border-radius: 12px; display: grid; place-items: center; }
.rbr-play span::after {
	content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent;
	border-bottom: 11px solid transparent; margin-left: 4px;
}
.rbr-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.rbr-yt { color: var(--rbr-primary); font-weight: 600; text-decoration: none; font-size: 15px; text-align: center; }
.rbr-novideo {
	aspect-ratio: 16 / 9; border-radius: 10px; background: var(--rbr-line); display: grid;
	place-items: center; color: var(--rbr-muted); font-size: 14px; text-align: center; padding: 10px;
}

.rbr-reviews { display: grid; gap: 12px; align-content: start; }
.rbr-date { font-size: 13px; color: var(--rbr-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rbr-rv { background: var(--rbr-bg); border-radius: 10px; padding: 12px 14px; }
.rbr-who { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; }
.rbr-rv p { margin: 0; font-size: 15px; line-height: 1.5; }
.rbr-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rbr-r5 { background: #1f9d55; color: #fff; }
.rbr-r4 { background: #d9f2e3; color: #14663a; }
.rbr-r3 { background: #fff1c7; color: #7a5a00; }
.rbr-r2 { background: #ffe1cc; color: #8a3b00; }
.rbr-r1 { background: #fbd5d5; color: #8f1d1d; }
.rbr-empty { color: var(--rbr-muted); }

@media (max-width: 900px) {
	.rbr-cols { grid-template-columns: 130px 1fr; gap: 18px; }
	.rbr-tasting { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
}
@media (max-width: 760px) { .rbr-tasting { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
	.rbr-controls { grid-template-columns: 1fr; }
	.rbr-card { padding: 16px; }
	.rbr-cols { grid-template-columns: 1fr; }
	.rbr-bottle { min-height: 0; }
	.rbr-bottle img { max-height: 200px; }
}
