/*
 * The statement pop-up: a card in the store's own look (dark panel, rust-red
 * accents, the store's font) fixed in the bottom right corner. It rises in
 * from the bottom of the screen, stays put while the page scrolls and closes
 * with the cross. Hidden until the script shows it (no flash on cached
 * pages).
 */

.bgl-krampus {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 590;
	width: 320px;
	visibility: hidden;
	pointer-events: none;
}

.bgl-krampus.is-in { visibility: visible; pointer-events: auto; }

.bgk-card {
	position: relative;
	overflow: hidden;
	border: 1px solid #45312d;
	border-top: 3px solid #cd402b;
	background: #161413;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .6);
	font-family: var(--brs-font, inherit);
	transform: translateY(calc(100% + 40px));
}

.is-in .bgk-card { animation: bgk-in .7s cubic-bezier(.2, .9, .25, 1.05) forwards; }

@keyframes bgk-in {
	0%   { transform: translateY(calc(100% + 40px)); }
	70%  { transform: translateY(-8px); }
	100% { transform: none; }
}

/* The cover: the hooded thief, with a slow push-in and a red edge glow. */
.bgk-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b0b0b;
}

.bgk-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: bgk-push 9s ease-in-out infinite alternate;
}

@keyframes bgk-push {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

.bgk-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, #161413), radial-gradient(ellipse at center, transparent 55%, rgba(205, 64, 43, .25));
	pointer-events: none;
}

.bgk-text { padding: 12px 18px 18px; text-align: center; }

.bgk-title {
	display: block;
	margin-bottom: 14px;
	color: #e8e2da !important;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .02em;
	text-decoration: none !important;
	text-transform: uppercase;
}

.bgk-title:hover { color: #fff !important; }

.bgk-desc {
	margin: -6px 0 14px;
	color: #b9b2aa;
	font-size: 14px;
	line-height: 1.45;
}

.bgk-go {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	background: #cd402b;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background .2s ease;
}

.bgk-go:hover { background: #e14a33; }

.bgl-krampus .bgk-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #45312d !important;
	border-radius: 0 !important;
	background: rgba(22, 20, 19, .88) !important;
	color: #e8e2da !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background .2s ease;
}

.bgl-krampus .bgk-close:hover { background: #cd402b !important; color: #fff !important; }

/* Closing: it drops back off the bottom of the screen. */
.bgl-krampus.is-out .bgk-card { animation: none; transition: transform .45s ease-in, opacity .45s ease-in; transform: translateY(calc(100% + 40px)); opacity: 0; }

/* Phones: across the bottom with a small margin, a shorter picture, and a
   cross big enough for a thumb. */
@media (max-width: 640px) {
	.bgl-krampus { right: 10px; bottom: 10px; left: auto; width: min(300px, calc(100vw - 20px)); }
	.bgk-media { aspect-ratio: 2 / 1; }
	.bgk-text { padding: 10px 14px 14px; }
	.bgk-title { margin-bottom: 10px; font-size: 16px; }
	.bgk-desc { margin: -4px 0 10px; font-size: 13px; }
	.bgk-go { height: 40px; font-size: 12px; }
	.bgl-krampus .bgk-close { width: 40px !important; height: 40px !important; font-size: 24px !important; }
}
