.bf-exit {
	position: fixed;
	inset: 0;
	z-index: 90000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: transparent;
	opacity: 0;
}

.bf-exit[hidden] { display: none; }

.bf-exit.is-on { opacity: 1; transition: opacity .2s ease; }

.bf-exit__card {
	width: min(440px, 100%);
	box-sizing: border-box;
	background: #1D1D1B;
	color: #FFFFFF;
	border-top: 3px solid #AF9158;
	padding: 28px 24px 24px;
	position: relative;
}

.bf-exit__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #FFFFFF;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.bf-exit__mark { display: block; width: 36px; height: 36px; margin-bottom: 8px; }

.bf-exit__card h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
}

.bf-exit__card p { margin: 0 0 16px; font-size: 16px; line-height: 1.45; }

.bf-exit__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.bf-exit__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #AF9158;
	color: #1D1D1B;
	border: 1px solid #AF9158;
	border-radius: 2px;
	padding: 12px 18px;
	text-decoration: none;
	font: inherit;
	cursor: pointer;
}

.bf-exit__btn:hover { background: #FFFFFF; color: #1D1D1B; border-color: #FFFFFF; }

.bf-exit__btn--ghost {
	background: transparent;
	color: #FFFFFF;
	border-color: #FFFFFF;
}

.bf-exit__btn--ghost:hover { background: #FFFFFF; color: #1D1D1B; }

@media (max-width: 800px) {
	.bf-exit {
		inset: auto 0 0 0;
		display: block;
		padding: 0;
		max-height: 25vh;
	}

	.bf-exit__card {
		width: 100%;
		max-height: 25vh;
		overflow: auto;
		padding: 12px 40px 12px 12px;
	}

	.bf-exit__mark { width: 24px; height: 24px; margin-bottom: 4px; }

	.bf-exit__card h2 { font-size: 16px; }

	.bf-exit__card p { font-size: 14px; margin-bottom: 8px; }

	.bf-exit__btn { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-exit.is-on { transition: none; }
}
