/**
 * Reviews pop-up.
 *
 * Palette, radii and shadows follow the rest of the site: #1d4ed8 primary with
 * #3b82f6 as the lighter accent, soft white cards, generous corner radius.
 */

.brp-overlay[hidden] {
	display: none;
}

/* Scoped so the widget's own box maths hold whatever the parent theme sets. */
.brp-overlay,
.brp-overlay *,
.brp-overlay *::before,
.brp-overlay *::after {
	box-sizing: border-box;
}

.brp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 11, 13, 0.58);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.brp-overlay.brp-is-open {
	opacity: 1;
}

body.brp-locked {
	overflow: hidden;
}

/* Card ------------------------------------------------------------------ */

.brp-card {
	position: relative;
	width: 100%;
	max-width: 470px;
	background: #ffffff;
	border-radius: 22px;
	box-shadow:
		0 2px 6px rgba(10, 11, 13, 0.06),
		0 28px 70px rgba(10, 11, 13, 0.32),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
	overflow: hidden;
	transform: translateY(18px) scale(0.97);
	opacity: 0;
	transition: transform 0.38s cubic-bezier(0.21, 1.02, 0.36, 1), opacity 0.3s ease;
}

.brp-overlay.brp-is-open .brp-card {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* Brand bar across the top, mirroring the site's primary gradient. */
.brp-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 55%, #1d4ed8 100%);
}

/* Soft brand glow behind the lower half of the card. */
.brp-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -120px;
	width: 340px;
	height: 240px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 70%);
	pointer-events: none;
}

.brp-body {
	position: relative;
	z-index: 1;
	padding: 40px 38px 34px;
	text-align: center;
}

/* Close ----------------------------------------------------------------- */

.brp-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #e8eaee;
	border-radius: 50%;
	background: #f7f8fa;
	color: #6b7280;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.brp-close svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.brp-close:hover,
.brp-close:focus-visible {
	background: #eff4ff;
	border-color: #c9dbff;
	color: #1d4ed8;
	transform: rotate(90deg);
}

/* Eyebrow badge --------------------------------------------------------- */

.brp-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	padding: 7px 15px;
	border: 1px solid #dbe6ff;
	border-radius: 999px;
	background: #eff4ff;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.brp-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1d4ed8;
	box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45);
	animation: brp-pulse 2.2s ease-out infinite;
}

@keyframes brp-pulse {
	0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45); }
	70% { box-shadow: 0 0 0 7px rgba(29, 78, 216, 0); }
	100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

/* Heading --------------------------------------------------------------- */

.brp-title {
	margin: 0 0 16px;
	color: #0a0b0d;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.brp-title-accent {
	display: block;
	color: #1d4ed8;
	background: linear-gradient(100deg, #1d4ed8 0%, #3b82f6 60%, #1d4ed8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Copy ------------------------------------------------------------------ */

.brp-copy {
	margin: 0 auto 24px;
	max-width: 350px;
	color: #5c6370;
	font-size: 15px;
	line-height: 1.65;
}

/* Stars ----------------------------------------------------------------- */

.brp-stars {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-bottom: 12px;
}

.brp-star {
	width: 21px;
	height: 21px;
	fill: #f5a524;
	filter: drop-shadow(0 2px 4px rgba(245, 165, 36, 0.35));
	opacity: 0;
	transform: scale(0.4);
}

.brp-overlay.brp-is-open .brp-star {
	animation: brp-star-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	animation-delay: calc(0.22s + var(--brp-star-index) * 0.08s);
}

@keyframes brp-star-pop {
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.brp-trust {
	margin: 0 0 28px;
	color: #8b919c;
	font-size: 13px;
	line-height: 1.5;
}

/* Call to action -------------------------------------------------------- */

.brp-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: 100%;
	padding: 17px 26px;
	border-radius: 14px;
	background: #1d4ed8;
	background-image: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
	box-shadow: 0 12px 26px rgba(29, 78, 216, 0.34);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/**
 * Every link state is pinned rather than left to inherit. The parent theme
 * colours `a:focus` with the brand blue, and a type-plus-pseudo-class selector
 * outranks a lone class, so after the first click the label turned blue on a
 * blue button and stayed that way. The label is set directly too, so no
 * inherited colour can reach it.
 */
.brp-overlay a.brp-cta,
.brp-overlay a.brp-cta:link,
.brp-overlay a.brp-cta:visited,
.brp-overlay a.brp-cta:hover,
.brp-overlay a.brp-cta:focus,
.brp-overlay a.brp-cta:focus-visible,
.brp-overlay a.brp-cta:active,
.brp-overlay a.brp-cta .brp-cta-label {
	color: #ffffff;
	text-decoration: none;
}

.brp-cta:hover,
.brp-cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px rgba(29, 78, 216, 0.42);
}

/* Light sweep on hover. */
.brp-cta::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-18deg);
	transition: left 0.55s ease;
	pointer-events: none;
}

.brp-cta:hover::after {
	left: 120%;
}

.brp-cta-glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 5px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(10, 11, 13, 0.18);
	flex: 0 0 auto;
}

.brp-cta-glyph svg {
	width: 100%;
	height: 100%;
	display: block;
}

.brp-cta-arrow {
	width: 14px;
	height: 14px;
	fill: rgba(255, 255, 255, 0.85);
	flex: 0 0 auto;
}

/* Small screens --------------------------------------------------------- */

@media (max-width: 575px) {
	.brp-overlay {
		padding: 16px;
	}

	.brp-body {
		padding: 34px 22px 26px;
	}

	.brp-title {
		font-size: 28px;
	}

	.brp-copy {
		font-size: 14px;
	}

	.brp-cta {
		padding: 15px 18px;
		font-size: 14px;
	}
}

/* Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.brp-overlay,
	.brp-card,
	.brp-cta,
	.brp-close {
		transition: none;
	}

	.brp-badge-dot {
		animation: none;
	}

	.brp-star {
		opacity: 1;
		transform: none;
	}

	.brp-overlay.brp-is-open .brp-star {
		animation: none;
	}

	.brp-cta::after {
		display: none;
	}
}
