/* Barra Reviews. Uses the theme's colour and font tokens when present. */
.bpt-rv-section {
	--rv-navy: var(--bpt-navy, #002d62);
	--rv-gold: var(--bpt-gold, #d9a84e);
	--rv-star: #f2b632;
	--rv-ink: var(--bpt-ink, #1d2733);
	--rv-muted: var(--bpt-muted, #5b6673);
	--rv-card: #f4f4f6;
	--rv-gap: 24px;
	--rv-radius: 14px;
	color: var(--rv-ink);
	font-family: var(--bpt-font-body, inherit);
	margin: 0 0 2rem;
}
.bpt-rv-section__title { text-align: center; }
.bpt-rv-section .screen-reader-text,
.bpt-rv-badge .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Stars ---------- */
.bpt-rv-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; white-space: nowrap; }
.bpt-rv-stars svg { width: 18px; height: 18px; margin-right: 2px; }
.bpt-rv-stars__base svg { fill: #d9d9de; }
.bpt-rv-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.bpt-rv-stars__fill svg { fill: var(--rv-star, #f2b632); }
.bpt-rv-stars--lg svg { width: 22px; height: 22px; }

/* ---------- Summary ---------- */
.bpt-rv-summary {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 18px 32px; margin: 0 0 28px;
}
.bpt-rv-summary__overall { display: flex; align-items: center; gap: 16px; }
.bpt-rv-summary__score {
	font-family: var(--bpt-font-head, inherit); font-size: 3.2rem; line-height: 1;
	color: var(--rv-navy); font-weight: 600;
}
.bpt-rv-summary__meta { display: flex; flex-direction: column; gap: 6px; }
.bpt-rv-summary__count { color: var(--rv-muted); font-size: 1rem; line-height: 1.3; }
.bpt-rv-summary__count strong { color: var(--rv-ink); }
.bpt-rv-summary__platforms { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.bpt-rv-summary__platforms li { margin: 0; }
.bpt-rv-pill {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 16px 10px 10px; border-radius: 999px;
	background: #fff; border: 1px solid #e6e6ea; box-shadow: 0 2px 10px rgba(0, 29, 64, .06);
	color: var(--rv-ink); text-decoration: none; transition: box-shadow .2s, border-color .2s;
}
a.bpt-rv-pill:hover { border-color: var(--rv-gold); box-shadow: 0 6px 18px rgba(0, 29, 64, .12); color: var(--rv-ink); }
.bpt-rv-pill__text { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; line-height: 1.2; }
.bpt-rv-pill__name { grid-column: 1 / -1; font-family: var(--bpt-font-head, inherit); font-weight: 600; font-size: .95rem; color: var(--rv-navy); }
.bpt-rv-pill__rating { display: flex; align-items: center; gap: 6px; }
.bpt-rv-pill__rating .bpt-rv-stars svg { width: 14px; height: 14px; margin-right: 1px; }
.bpt-rv-pill__count { color: var(--rv-muted); font-size: .9rem; }

/* ---------- Carousel ---------- */
.bpt-rv-carousel { position: relative; container-type: inline-size; }
.bpt-rv-track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--rv-gap)) / 3);
	gap: var(--rv-gap);
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 2px 0 6px;
	align-items: start;
}
.bpt-rv-track::-webkit-scrollbar { display: none; }
.bpt-rv-track:focus-visible { outline: 2px solid var(--rv-gold); outline-offset: 4px; border-radius: var(--rv-radius); }
/* Card width follows the carousel's own width, so it suits full-width and narrow columns alike. */
@container (max-width: 900px) { .bpt-rv-track { grid-auto-columns: calc((100% - var(--rv-gap)) / 2); } }
@container (max-width: 560px) { .bpt-rv-track { --rv-gap: 14px; grid-auto-columns: 86%; } }
@supports not (container-type: inline-size) {
	@media (max-width: 1024px) { .bpt-rv-track { grid-auto-columns: calc((100% - var(--rv-gap)) / 2); } }
	@media (max-width: 640px) { .bpt-rv-track { grid-auto-columns: 86%; } }
}

.bpt-rv-nav {
	position: absolute; top: min(50%, 150px); z-index: 2; transform: translateY(-50%);
	width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	display: grid; place-items: center; cursor: pointer;
	background: #fff; color: var(--rv-navy); box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
	transition: opacity .2s, background .2s, color .2s;
}
.bpt-rv-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bpt-rv-nav:hover { background: var(--rv-navy); color: #fff; }
.bpt-rv-nav:focus-visible { outline: 2px solid var(--rv-gold); outline-offset: 2px; }
.bpt-rv-nav[disabled] { opacity: 0; pointer-events: none; }
.bpt-rv-nav--prev { left: -22px; }
.bpt-rv-nav--next { right: -22px; }
@media (max-width: 1260px) { .bpt-rv-nav--prev { left: -8px; } .bpt-rv-nav--next { right: -8px; } }
@container (max-width: 560px) { .bpt-rv-nav { display: none; } }
.bpt-rv-carousel.is-static .bpt-rv-nav { display: none; }

/* ---------- Card ---------- */
.bpt-rv {
	scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	background: var(--rv-card); border-radius: var(--rv-radius);
	padding: 24px; min-width: 0;
}
.bpt-rv__head { display: flex; align-items: center; gap: 12px; width: 100%; }
.bpt-rv__avatar { position: relative; flex: none; width: 40px; height: 40px; }
.bpt-rv__avatar-img, .bpt-rv__avatar-initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.bpt-rv__avatar-initial { display: grid; place-items: center; color: #fff; font-family: var(--bpt-font-head, inherit); font-size: 1.15rem; font-weight: 600; }
.bpt-rv__badge { position: absolute; right: -5px; bottom: -4px; line-height: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--rv-card); background: #fff; }
.bpt-rv__badge .bpt-rv-icon { width: 18px; height: 18px; }
.bpt-rv__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bpt-rv__name {
	display: flex; align-items: center; gap: 5px;
	font-family: var(--bpt-font-head, inherit); font-weight: 600; font-size: 1rem; color: var(--rv-ink);
}
.bpt-rv__name a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpt-rv__name a:hover { color: var(--rv-navy); text-decoration: underline; }
.bpt-rv__tick { flex: none; width: 16px; height: 16px; fill: var(--rv-navy); }
.bpt-rv__date { font-size: .85rem; color: var(--rv-muted); }
.bpt-rv > .bpt-rv-stars { margin-top: 4px; }
.bpt-rv > .bpt-rv-stars svg { width: 20px; height: 20px; }
.bpt-rv__headline { margin: 0; font-family: var(--bpt-font-head, inherit); font-weight: 600; font-size: 1.05rem; color: var(--rv-ink); line-height: 1.3; }
.bpt-rv__text {
	font-size: 1.02rem; line-height: 1.5; color: var(--rv-ink);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.bpt-rv__headline + .bpt-rv__text { margin-top: -6px; }
.bpt-rv__text p { margin: 0 0 .6em; }
.bpt-rv__text p:last-child { margin-bottom: 0; }
.bpt-rv.has-photos .bpt-rv__text { -webkit-line-clamp: 3; }
.bpt-rv.is-open .bpt-rv__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.bpt-rv__more {
	margin: -6px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 1rem; color: var(--rv-ink); text-decoration: underline; text-underline-offset: 3px;
}
.bpt-rv__more:hover { color: var(--rv-navy); }
.bpt-rv__more[hidden] { display: none; }

.bpt-rv__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; margin-top: 8px; }
.bpt-rv__photos--1 { grid-template-columns: 1fr; }
.bpt-rv__photos--3 .bpt-rv__photo:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.bpt-rv__photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #dfe2e6; }
.bpt-rv__photos--1 .bpt-rv__photo { aspect-ratio: 4 / 3; }
.bpt-rv__photo[hidden] { display: none; }
.bpt-rv__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bpt-rv__photo:hover img { transform: scale(1.04); }
.bpt-rv__photo[data-more]::after {
	content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(0, 29, 64, .55); color: #fff; font-size: 1.5rem; font-family: var(--bpt-font-head, inherit);
}

.bpt-rv-empty { padding: 18px 22px; background: #fff8e6; border-left: 4px solid var(--rv-gold); }

/* ---------- Lightbox ---------- */
.bpt-rv-lightbox {
	position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
	background: rgba(0, 15, 35, .92); padding: 56px 64px;
}
.bpt-rv-lightbox.is-open { display: flex; }
.bpt-rv-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.bpt-rv-lightbox button {
	position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; padding: 0;
}
.bpt-rv-lightbox button:hover { background: rgba(255, 255, 255, .28); }
.bpt-rv-lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bpt-rv-lightbox__close { top: 14px; right: 14px; }
.bpt-rv-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.bpt-rv-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.bpt-rv-lightbox.is-single .bpt-rv-lightbox__prev, .bpt-rv-lightbox.is-single .bpt-rv-lightbox__next { display: none; }
@media (max-width: 640px) { .bpt-rv-lightbox { padding: 60px 10px; } .bpt-rv-lightbox__prev, .bpt-rv-lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Badge ---------- */
.bpt-rv-badge {
	display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
	padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--bpt-ink, #1d2733);
	box-shadow: 0 2px 12px rgba(0, 29, 64, .1); text-decoration: none; font-family: var(--bpt-font-body, inherit); line-height: 1.2;
}
a.bpt-rv-badge:hover { color: var(--bpt-navy, #002d62); box-shadow: 0 6px 18px rgba(0, 29, 64, .16); }
.bpt-rv-badge__icons { display: inline-flex; }
.bpt-rv-badge__icons .bpt-rv-icon { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.bpt-rv-badge__icons .bpt-rv-icon:first-child { margin-left: 0; }
.bpt-rv-badge .bpt-rv-stars svg { width: 16px; height: 16px; }
.bpt-rv-badge--dark { background: rgba(0, 29, 64, .55); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
a.bpt-rv-badge--dark:hover { color: #fff; background: rgba(0, 29, 64, .75); }
.bpt-rv-badge--dark .bpt-rv-badge__icons .bpt-rv-icon { box-shadow: 0 0 0 2px rgba(0, 29, 64, .9); }
.bpt-rv-badge--dark .bpt-rv-stars__base svg { fill: rgba(255, 255, 255, .3); }

@media (prefers-reduced-motion: reduce) {
	.bpt-rv-track { scroll-behavior: auto; }
	.bpt-rv__photo img { transition: none; }
}
