/* Santa's Shape-Up: bauble pop-up shown on the rest of the site. */
.ess-bauble {
	--ess-red: #DB1F26;
	--ess-blue: #293D9B;
	--ess-ink: #231F20;
	position: fixed;
	right: calc(18px + env(safe-area-inset-right, 0px));
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	width: 236px;
	font-family: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
	transform-origin: 50% -40px;
	transform: translateY(calc(100% + 60px));
	opacity: 0;
	transition: transform .7s cubic-bezier(.2, 1.4, .4, 1), opacity .3s ease;
	pointer-events: none;
}
.ess-bauble *, .ess-bauble *::before, .ess-bauble *::after { box-sizing: border-box; }
.ess-bauble.ess-in { transform: none; opacity: 1; pointer-events: auto; }
.ess-bauble.ess-in .ess-bauble-swing { animation: ess-swing 3.6s ease-in-out .7s 2; }
.ess-bauble.ess-out { transform: translateY(calc(100% + 60px)); opacity: 0; transition-duration: .35s; }
.ess-bauble-swing { transform-origin: 50% 0; }
@keyframes ess-swing {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(5deg); }
	45% { transform: rotate(-4deg); }
	70% { transform: rotate(2deg); }
}
/* the cap and hanging loop */
.ess-bauble-cap {
	position: relative;
	width: 62px;
	height: 26px;
	margin: 0 auto -6px;
	border-radius: 6px 6px 3px 3px;
	background: linear-gradient(90deg, #9aa3b5, #eef0f5 45%, #9aa3b5);
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
	z-index: 2;
}
.ess-bauble-cap::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -18px;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border: 4px solid #c9ced9;
	border-bottom-color: transparent;
	border-radius: 50%;
}
.ess-bauble-close {
	position: absolute;
	top: -6px;
	right: 6px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: var(--ess-ink);
	color: #fff;
	font: 700 20px/34px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	z-index: 3;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.ess-bauble-close:hover { background: #000; }
.ess-bauble-close:focus-visible, .ess-bauble-ball:focus-visible { outline: 3px solid #ffd34d; outline-offset: 3px; }
/* the ball */
.ess-bauble-ball {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 236px;
	height: 236px;
	padding: 18px 22px 14px;
	border-radius: 50%;
	overflow: hidden;
	text-align: center;
	text-decoration: none !important;
	color: #fff !important;
	background:
		radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55) 0 7%, rgba(255, 255, 255, 0) 18%),
		radial-gradient(circle at 50% 45%, #ef3a40 0%, var(--ess-red) 48%, #9e1218 100%);
	box-shadow: 0 16px 34px rgba(35, 31, 32, .35), inset 0 -10px 24px rgba(0, 0, 0, .18);
}
/* a barber-pole band around the bauble */
.ess-bauble-ball::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24%;
	height: 18px;
	background: repeating-linear-gradient(-45deg, #fff 0 10px, var(--ess-blue) 10px 20px, #fff 20px 30px, var(--ess-red) 30px 40px);
	opacity: .95;
}
.ess-bauble-ball > * { position: relative; z-index: 1; }
.ess-bauble-santa { width: 54px; height: 54px; margin-bottom: 2px; }
.ess-bauble-title {
	font-weight: 900;
	font-size: 21px;
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.ess-bauble-text { margin: 5px 0 0; font-weight: 700; font-size: 12px; line-height: 1.25; max-width: 172px; }
.ess-bauble-go {
	margin-top: 26px;
	padding: 6px 16px;
	border-radius: 999px;
	background: #fff;
	color: var(--ess-red);
	font-weight: 900;
	font-size: 14px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}
.ess-bauble-ball:hover .ess-bauble-go { background: var(--ess-ink); color: #fff; }
@media (max-width: 600px) {
	.ess-bauble { right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: 190px; }
	.ess-bauble-ball { width: 190px; height: 190px; padding: 12px 16px 10px; }
	.ess-bauble-santa { width: 40px; height: 40px; }
	.ess-bauble-title { font-size: 17px; }
	.ess-bauble-text { font-size: 10.5px; max-width: 140px; }
	.ess-bauble-go { margin-top: 20px; font-size: 12px; padding: 5px 13px; }
	.ess-bauble-ball::before { height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.ess-bauble, .ess-bauble.ess-out { transition: opacity .2s ease; transform: none; }
	.ess-bauble.ess-in .ess-bauble-swing { animation: none; }
}
