/* Bella Family Dental — Virtual Smile Review video bubble */
.bfd-vsr {
	--bfd-vsr-bottom: 24px;
	--bfd-vsr-right: 20px;
	--bfd-vsr-size: 120px;
	position: fixed;
	right: calc(var(--bfd-vsr-right) + env(safe-area-inset-right, 0px));
	bottom: calc(var(--bfd-vsr-bottom) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	font-family: var(--bfd-body, "Raleway", Helvetica, Arial, sans-serif);
	color: var(--bfd-ink, #424242);
	pointer-events: none;
}
.bfd-vsr > * {
	pointer-events: auto;
}
.bfd-vsr[hidden] {
	display: none !important;
}

.bfd-vsr__bubble-wrap {
	position: relative;
	width: var(--bfd-vsr-size);
	height: var(--bfd-vsr-size);
	opacity: 0;
	transform: translateY(10px) scale(0.94);
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.bfd-vsr.is-visible .bfd-vsr__bubble-wrap {
	opacity: 1;
	transform: none;
}
.bfd-vsr.is-open .bfd-vsr__bubble-wrap {
	visibility: hidden;
	pointer-events: none;
	opacity: 0;
}

.bfd-vsr__bubble {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	overflow: hidden;
	cursor: pointer;
	background: #d7e6e6 center / cover no-repeat;
	box-shadow: 0 8px 28px rgba(47, 58, 59, 0.28), 0 0 0 2px var(--bfd-teal, #46B9BC);
}
.bfd-vsr__bubble:hover {
	box-shadow: 0 10px 32px rgba(47, 58, 59, 0.34), 0 0 0 2px var(--bfd-teal-dark, #2f8f92);
}
.bfd-vsr__bubble:focus-visible {
	outline: 3px solid var(--bfd-teal-dark, #2f8f92);
	outline-offset: 3px;
}
.bfd-vsr__preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.bfd-vsr__play {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(47, 58, 59, 0.72);
	color: #fff;
	display: grid;
	place-items: center;
	pointer-events: none;
}
.bfd-vsr__play svg {
	width: 12px;
	height: 12px;
	margin-left: 1px;
	fill: currentColor;
}

.bfd-vsr__dismiss {
	position: absolute;
	top: -4px;
	right: -4px;
	z-index: 2;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #2f3a3b;
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}
.bfd-vsr__dismiss:hover,
.bfd-vsr__dismiss:focus-visible {
	background: #1d6466;
}
.bfd-vsr__dismiss:focus-visible {
	outline: 3px solid var(--bfd-teal-dark, #2f8f92);
	outline-offset: 2px;
}
.bfd-vsr__dismiss svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
}

.bfd-vsr__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 28, 28, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.bfd-vsr.is-open .bfd-vsr__backdrop {
	opacity: 1;
	pointer-events: auto;
}

.bfd-vsr__panel {
	position: absolute;
	right: 0;
	bottom: 0;
	width: min(360px, calc(100vw - 32px));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(20, 28, 28, 0.35);
	overflow: hidden;
	display: none;
	flex-direction: column;
}
.bfd-vsr.is-open .bfd-vsr__panel {
	display: flex;
}

.bfd-vsr__close-panel {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 28, 28, 0.72);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.bfd-vsr__close-panel:hover,
.bfd-vsr__close-panel:focus-visible {
	background: #1d6466;
}
.bfd-vsr__close-panel:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.bfd-vsr__close-panel svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
}

.bfd-vsr__player {
	background: #111;
	aspect-ratio: 720 / 1022;
	max-height: min(62vh, 560px);
}
.bfd-vsr__full {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #111;
	vertical-align: top;
}

.bfd-vsr__cta {
	padding: 16px 18px 18px;
	text-align: center;
	background: #fff;
}
.bfd-vsr__tagline {
	margin: 0 0 12px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--bfd-ink, #424242);
}
.bfd-vsr__start {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	background: linear-gradient(180deg, var(--bfd-gold-light, #E0C35A) 0%, var(--bfd-gold, #C9A227) 58%, #B8921A 100%);
	background-color: var(--bfd-gold, #C9A227);
	color: var(--bfd-gold-ink, #1A1408) !important;
	border-radius: 4px;
	padding: 12px 16px;
	font-weight: 600;
	text-decoration: none;
	font-family: inherit;
	line-height: 1.3;
	border: 0;
	box-shadow: 0 1px 1px rgba(26, 20, 8, 0.12), 0 2px 8px rgba(201, 162, 39, 0.35);
	text-shadow: none;
}
.bfd-vsr__start:hover,
.bfd-vsr__start:focus-visible {
	background: linear-gradient(180deg, var(--bfd-gold, #C9A227) 0%, var(--bfd-gold-hover, #A68516) 100%);
	background-color: var(--bfd-gold-hover, #A68516);
	color: var(--bfd-gold-ink, #1A1408) !important;
	box-shadow: 0 1px 2px rgba(26, 20, 8, 0.18), 0 3px 10px rgba(166, 133, 22, 0.4);
}
.bfd-vsr__start:focus-visible {
	outline: 3px solid var(--bfd-gold-hover, #A68516);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.bfd-vsr {
		--bfd-vsr-size: 84px;
		--bfd-vsr-right: 10px;
		--bfd-vsr-bottom: 12px;
	}
	.bfd-vsr__panel {
		width: min(calc(100vw - 20px), 360px);
	}
	.bfd-vsr__player {
		max-height: min(56vh, 480px);
	}
	.bfd-vsr__dismiss {
		width: 32px;
		height: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfd-vsr__bubble-wrap,
	.bfd-vsr__backdrop {
		transition: none;
	}
}

/* Launch QA Nov 19, 2026: smaller mobile bubble (above) and room at the page end so the
   bubble never sits on top of the last footer links. */
@media (max-width: 480px) {
	body:has(.bfd-vsr.is-visible) .site-info {
		padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
	}
}
