/* Category hero ([bdn_category_hero_preview]) — the platform's company table, drawn in the
 * home Platform preview's style. Palette: purple #441A48 (app bar), teal #28BDB1 / green #127A71,
 * yellow #F8C83E, warm greys #FAF9F7 / #F5F3F0 / #ECE8E2, slate #2B4448. */
.product-template-header:has(.bfi-cpv) { background-image: none; }
.bfi-cpv {
	position: absolute;
	top: 50%;
	left: 0;
	width: min(760px, calc(50vw - 36px));
	transform: translateY(-50%);
	color: #2B4448;
	font: 400 12px/1.4 Poppins, sans-serif;
	text-align: left;
	isolation: isolate;
}
.bfi-cpv *, .bfi-cpv *::before, .bfi-cpv *::after { box-sizing: border-box; }
.bfi-cpv-i { display: block; flex: 0 0 auto; width: 16px; height: 16px; }

/* Soft backdrop: a warm glow and a dotted panel behind the window */
.bfi-cpv::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -36px -28px -44px 34px;
	border-radius: 32px;
	background:
		radial-gradient(circle at 1px 1px, #D9D3CB 1px, transparent 1.5px) 0 0 / 16px 16px,
		radial-gradient(ellipse at 70% 40%, #E7F5F1, transparent 65%);
	mask-image: radial-gradient(ellipse at 60% 50%, #000 40%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 40%, transparent 78%);
}

.bfi-cpv__window {
	overflow: hidden;
	border: 1px solid #ECE8E2;
	border-radius: 20px;
	background: #FAF9F7;
	box-shadow: 0 30px 60px rgba(30, 12, 34, .13), 0 2px 6px rgba(0, 0, 0, .04);
	animation: bfi-cpv-arrive .9s cubic-bezier(.22, .7, .2, 1) both;
}

/* App bar with the AI prompt, as on the home page */
.bfi-cpv__bar { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 18px; background: #441A48; color: #fff; }
.bfi-cpv__bar-icon { opacity: .85; }
.bfi-cpv__search {
	display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; max-width: 470px; height: 34px;
	margin: 0 auto; padding: 0 3px 0 11px; border: 2px solid transparent; border-radius: 999px;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #28BDB1, #8FD3C1 45%, #F8C83E) border-box;
	color: #2B4448; font-size: 12px; white-space: nowrap;
}
.bfi-cpv__spark .bfi-cpv-i { color: #28BDB1; fill: currentColor; stroke-width: 1; }
.bfi-cpv__prompt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #6E7A7D; }
.bfi-cpv__prompt.is-ai { color: #2B4448; }
.bfi-cpv__prompt.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: #28BDB1; animation: bfi-cpv-caret 1s steps(1) infinite; }
@keyframes bfi-cpv-caret { 50% { opacity: 0; } }
.bfi-cpv__ask { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; height: 25px; padding: 0 11px 0 9px; border-radius: 999px; background: #441A48; color: #fff; font-size: 10.5px; font-weight: 600; }
.bfi-cpv__ask .bfi-cpv-i { width: 12px; height: 12px; fill: currentColor; stroke-width: 1; }

.bfi-cpv__body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.bfi-cpv__side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 16px; border-right: 1px solid #ECE8E2; background: #fff; color: #8A8F92; }
.bfi-cpv__side span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.bfi-cpv__side .bfi-cpv-i { width: 18px; height: 18px; }
.bfi-cpv__side .is-active { background: #E3F5F3; color: #127A71; }
.bfi-cpv__main { min-width: 0; padding: 14px 16px 6px; }

/* Tabs + actions */
.bfi-cpv__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bfi-cpv__tabs { display: flex; gap: 6px; min-width: 0; }
.bfi-cpv__tabs > span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; color: #6E7A7D; font-size: 12px; font-weight: 500; white-space: nowrap; }
.bfi-cpv__tabs .is-active { background: #fff; color: #127A71; font-weight: 600; box-shadow: 0 1px 2px rgba(43, 68, 72, .08), inset 0 0 0 1px #ECE8E2; }
.bfi-cpv__tabs b { padding: 2px 7px; border-radius: 999px; background: #E3F5F3; color: #127A71; font-size: 10.5px; font-weight: 600; }
.bfi-cpv__actions { display: flex; gap: 6px; margin-left: auto; }
.bfi-cpv__actions span { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid #ECE8E2; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; }
.bfi-cpv__actions .bfi-cpv-i { width: 14px; height: 14px; color: #127A71; }
.bfi-cpv__actions .is-primary { border-color: #F8C83E; background: #F8C83E; color: #2B4448; }
.bfi-cpv__actions .is-primary .bfi-cpv-i { color: #2B4448; }

/* Filter chips */
.bfi-cpv__chips { display: flex; gap: 6px; margin-bottom: 10px; overflow: hidden; }
.bfi-cpv__chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid #ECE8E2; border-radius: 999px; background: #fff; color: #5B6B6E; font-size: 11px; white-space: nowrap; }
.bfi-cpv__chip .bfi-cpv-i { width: 14px; height: 14px; color: #8A8F92; }
.bfi-cpv__chip.is-on { padding-right: 4px; border-color: #A9E1DA; background: #EFFAF8; color: #0F5F58; font-weight: 600; }
.bfi-cpv__chip.is-on em { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #28BDB1; color: #fff; }
.bfi-cpv__chip.is-on em .bfi-cpv-i { width: 12px; height: 12px; color: #fff; stroke-width: 2.6; }
.bfi-cpv__chip.is-icon { width: 30px; padding: 0; justify-content: center; }
.bfi-cpv__cat-icon, .bfi-cpv__stack i {
	display: block; width: 18px; height: 18px; background: #127A71;
	-webkit-mask: var(--cpv-icon) center / contain no-repeat; mask: var(--cpv-icon) center / contain no-repeat;
}
.bfi-cpv__stack { display: flex; }
.bfi-cpv__stack i { width: 15px; height: 15px; margin-right: 1px; }

/* Company table */
.bfi-cpv__table { overflow: hidden; border: 1px solid #ECE8E2; border-radius: 12px; background: #fff; }
.bfi-cpv__tr { display: grid; grid-template-columns: 16px minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-top: 1px solid #F1EEEA; animation: bfi-cpv-row .6s cubic-bezier(.2, .7, .2, 1) calc(.25s + var(--row) * .08s) both; }
.bfi-cpv__tr.is-head { min-height: 34px; border-top: 0; background: #F5F3F0; color: #8A8F92; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; animation: none; }
.bfi-cpv__tr.is-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfi-cpv__tr.is-picked { background: #F6FCFB; }
.bfi-cpv__box { display: grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid #D5D0C8; border-radius: 4px; background: #fff; }
.is-picked .bfi-cpv__box { border-color: #28BDB1; background: #28BDB1; color: #fff; }
.bfi-cpv__box .bfi-cpv-i { width: 11px; height: 11px; stroke-width: 3; }
.bfi-cpv__company { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bfi-cpv__logo { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #E3F5F3; color: #127A71; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.bfi-cpv__name { display: grid; gap: 3px; min-width: 0; }
.bfi-cpv__name strong { overflow: hidden; color: #2B4448; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bfi-cpv__links { display: flex; gap: 5px; color: #28A79C; }
.bfi-cpv__links .bfi-cpv-i { width: 12px; height: 12px; stroke-width: 2; }
.bfi-cpv__country { overflow: hidden; color: #5B6B6E; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.bfi-cpv__types { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bfi-cpv__types em { overflow: hidden; padding: 3px 9px; border: 1px solid #ECE8E2; border-radius: 999px; background: #FAF9F7; color: #2B4448; font-size: 10.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.bfi-cpv__types small { flex: 0 0 auto; color: #8A8F92; font-size: 10.5px; font-weight: 600; }

.bfi-cpv__foot { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 2px; color: #6E7A7D; font-size: 10.5px; }
.bfi-cpv__live { width: 7px; height: 7px; border-radius: 50%; background: #28BDB1; box-shadow: 0 0 0 3px #DDF3F0; animation: bfi-cpv-pulse 2.4s ease-in-out infinite; }
.bfi-cpv__pages { display: flex; gap: 4px; margin-left: auto; }
.bfi-cpv__pages i { display: grid; place-items: center; min-width: 22px; height: 22px; border: 1px solid #ECE8E2; border-radius: 6px; background: #fff; font-size: 10px; font-style: normal; }
.bfi-cpv__pages .is-on { border-color: #127A71; background: #127A71; color: #fff; }

/* Floating contact card */
.bfi-cpv__contact {
	position: absolute; right: 26px; bottom: -44px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
	width: 250px; padding: 14px 16px; border: 1px solid #ECE8E2; border-radius: 16px; background: #fff;
	box-shadow: 0 18px 40px -14px rgba(30, 12, 34, .28);
	animation: bfi-cpv-arrive .8s cubic-bezier(.22, .7, .2, 1) .75s both;
}
.bfi-cpv__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #FDF3D6; color: #9A6A00; }
.bfi-cpv__avatar .bfi-cpv-i { width: 20px; height: 20px; }
.bfi-cpv__contact-text { display: grid; gap: 1px; min-width: 0; }
.bfi-cpv__contact-text strong { color: #2B4448; font-size: 12.5px; font-weight: 600; }
.bfi-cpv__contact-text > span:not(.bfi-cpv__masked) { color: #8A8F92; font-size: 10.5px; }
.bfi-cpv__masked { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #B5AFA6; }
.bfi-cpv__masked .bfi-cpv-i { width: 12px; height: 12px; }
.bfi-cpv__masked i { width: 42px; height: 6px; border-radius: 3px; background: #ECE8E2; }
.bfi-cpv__masked i + i { width: 60px; }
.bfi-cpv__verified { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #F1EEEA; color: #127A71; font-size: 10.5px; font-weight: 600; }
.bfi-cpv__verified .bfi-cpv-i { width: 12px; height: 12px; stroke-width: 2.6; }

/* Demo popup trigger (theme class .landing-view-demo) */
.product-header .product-header-platform-image .bfi-cpv .bfi-cpv__play {
	position: absolute; z-index: 2; top: 54% !important; left: 47%; display: grid; place-items: center;
	width: 54px; height: 54px; padding: 0; border: 4px solid #fff; border-radius: 50%;
	background: #F8C83E; color: #2B4448; box-shadow: 0 8px 24px rgba(160, 115, 0, .25), 0 0 0 8px rgba(255, 255, 255, .45);
	transform: translate(-50%, -50%); cursor: pointer; transition: background .25s, box-shadow .25s, transform .25s;
	animation: bfi-cpv-fade .8s ease .6s both;
}
.bfi-cpv .bfi-cpv__play svg { display: block; width: 20px; height: 20px; }
.product-header .product-header-platform-image .bfi-cpv .bfi-cpv__play:hover { background: #FFBC0A; box-shadow: 0 10px 28px rgba(160, 115, 0, .32), 0 0 0 12px rgba(255, 255, 255, .6); transform: translate(-50%, -50%) scale(1.05); }
.bfi-cpv__play:focus-visible { outline: 3px solid #127A71; outline-offset: 7px; }

@keyframes bfi-cpv-arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bfi-cpv-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bfi-cpv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bfi-cpv-pulse { 50% { box-shadow: 0 0 0 6px #DDF3F000; } }
.bfi-cpv--still *, .bfi-cpv--still .bfi-cpv__play { animation: none !important; }

/* Narrow desktops: drop the side menu and the last action */
@media (max-width: 1280px) and (min-width: 1025px) {
	.bfi-cpv__body { grid-template-columns: minmax(0, 1fr); }
	.bfi-cpv__side, .bfi-cpv__actions span:not(.is-primary), .bfi-cpv__chip.is-icon { display: none; }
	.bfi-cpv__bar-icon:first-child { display: none; }
	.bfi-cpv__tr { grid-template-columns: 16px minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .9fr); gap: 9px; padding: 0 11px; }
}
/* Tablet / phone: the picture sits under the text, in the flow */
@media (max-width: 1024px) {
	.product-header .product-header-platform-image:has(.bfi-cpv) { display: block !important; }
	.bfi-cpv { position: relative; top: auto; width: 100%; max-width: 760px; margin: 30px auto 56px; transform: none; }
	.bfi-cpv::before { inset: -20px -10px -30px; }
	.bfi-cpv__contact { right: 12px; }
}
@media (max-width: 600px) {
	.bfi-cpv { width: auto; margin: 0 12px 76px; }
	.bfi-cpv::before { inset: -16px -12px -24px; }
	.bfi-cpv__bar { gap: 10px; height: 48px; padding: 0 10px; }
	.bfi-cpv__bar-icon, .bfi-cpv__ask span { display: none; }
	.bfi-cpv__ask { padding: 0 7px; }
	.bfi-cpv__search { font-size: 11px; }
	.bfi-cpv__body { grid-template-columns: minmax(0, 1fr); }
	.bfi-cpv__side, .bfi-cpv__actions, .bfi-cpv__chip:not(.is-on) { display: none; }
	.bfi-cpv__main { padding: 12px 10px 4px; }
	.bfi-cpv__tr { grid-template-columns: 15px minmax(0, 1.5fr) minmax(0, 1fr); gap: 9px; padding: 0 10px; }
	.bfi-cpv__tr > :last-child { display: none; }
	.bfi-cpv__tr:nth-child(n+6) { display: none; }
	.bfi-cpv__contact { right: 6px; bottom: -40px; width: 220px; padding: 11px 12px; }
	.product-header .product-header-platform-image .bfi-cpv .bfi-cpv__play { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.bfi-cpv *, .bfi-cpv .bfi-cpv__play { animation: none !important; transition: none !important; }
}
