.pmholiday-decor,
.pmholiday-decor * {
	pointer-events: none !important;
	box-sizing: border-box;
}

.pmholiday-decor__garland {
	position: relative;
	height: 24px;
	padding: 0 clamp(6px, 2vw, 28px);
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	overflow: hidden;
	background:
		linear-gradient(90deg, transparent, #9f8752 12%, #9f8752 88%, transparent) center 4px / 100% 1px no-repeat,
		linear-gradient(95deg, #1d3831, #25473e 52%, #182f29);
}

.pmholiday-decor--fallback .pmholiday-decor__garland {
	position: fixed;
	z-index: 9998;
	top: 0;
	left: 0;
	right: 0;
}

.admin-bar .pmholiday-decor--fallback .pmholiday-decor__garland {
	top: 32px;
}

.pmholiday-decor__bulb {
	--light: #ffd57f;
	--glow: #ffbe6eaa;
	position: relative;
	flex: 0 0 8px;
	height: 10px;
	margin-top: 8px;
	border-radius: 40% 40% 55% 55%;
	background: radial-gradient(circle at 34% 30%, #fff8dc 0, var(--light) 44%);
	box-shadow: 0 1px 9px var(--glow);
	opacity: .86;
	animation: pmholiday-decor-wave 9s ease-in-out infinite;
	animation-delay: calc(var(--bulb-index) * 90ms - 9s);
}

.pmholiday-decor__bulb::before {
	content: "";
	position: absolute;
	top: -4px;
	left: 2px;
	width: 4px;
	height: 4px;
	border-radius: 1px;
	background: #a68e58;
}

.pmholiday-decor__bulb:nth-child(3n + 2) {
	--light: #ff847b;
	--glow: #ff847b99;
}

.pmholiday-decor__bulb:nth-child(3n + 3) {
	--light: #8de5cb;
	--glow: #8de5cb99;
}

@keyframes pmholiday-decor-wave {
	0%, 15%, 100% {
		opacity: .86;
		box-shadow: 0 1px 9px var(--glow);
	}
	7% {
		opacity: 1;
		box-shadow: 0 1px 13px 2px var(--glow);
	}
}

@keyframes pmholiday-decor-star-glow {
	from { opacity: .78; filter: brightness(1); }
	to { opacity: 1; filter: brightness(1.35); }
}

.pmholiday-decor__tree {
	display: none;
}

@media (min-width: 1280px) and (min-height: 500px) {
	.pmholiday-decor__tree {
		position: fixed;
		z-index: 2;
		bottom: 24px;
		display: block;
		width: 70px;
		height: 112px;
		opacity: .94;
	}

	.pmholiday-decor__tree--left { left: 6px; transform-origin: bottom left; transform: scale(.61, .92); }
	.pmholiday-decor__tree--right { right: 6px; transform-origin: bottom right; transform: scale(-.61, .92) translateX(100%); }

	.pmholiday-decor__tree::after {
		content: "";
		position: absolute;
		bottom: 0;
		left: 30px;
		width: 10px;
		height: 17px;
		border-radius: 2px;
		background: #785244;
	}

	.pmholiday-decor__foliage {
		position: absolute;
		z-index: 1;
		inset: 10px 0 10px;
		background: linear-gradient(115deg, #568877, #254f45 65%, #1c3e35);
		clip-path: polygon(50% 0, 76% 34%, 66% 34%, 88% 60%, 76% 60%, 100% 100%, 0 100%, 24% 60%, 12% 60%, 34% 34%, 24% 34%);
	}

	.pmholiday-decor__star {
		position: absolute;
		z-index: 2;
		top: 1px;
		left: 27px;
		width: 16px;
		height: 16px;
		background: #e7b565;
		animation: pmholiday-decor-star-glow 4.8s ease-in-out infinite alternate;
		clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 61%, 81% 100%, 50% 78%, 19% 100%, 30% 61%, 0 38%, 38% 35%);
	}

	.pmholiday-decor__tree--right .pmholiday-decor__star {
		animation-duration: 6.6s;
		animation-delay: -2.4s;
	}

	.pmholiday-decor__ornaments {
		position: absolute;
		z-index: 2;
		inset: 0;
		background:
			radial-gradient(circle at 54% 26%, #f5cb77 0 2px, #d59a50 2.5px 3px, transparent 3.5px),
			radial-gradient(circle at 42% 42%, #f0847e 0 2px, #bd5454 2.5px 3px, transparent 3.5px),
			radial-gradient(circle at 65% 49%, #f5cb77 0 2px, #d59a50 2.5px 3px, transparent 3.5px),
			radial-gradient(circle at 32% 61%, #f3dfb2 0 2px, #baae93 2.5px 3px, transparent 3.5px),
			radial-gradient(circle at 57% 66%, #f0847e 0 2px, #bd5454 2.5px 3px, transparent 3.5px),
			radial-gradient(circle at 22% 78%, #f0847e 0 2px, #bd5454 2.5px 3px, transparent 3.5px),
			radial-gradient(circle at 75% 79%, #f5cb77 0 2px, #d59a50 2.5px 3px, transparent 3.5px);
	}
}

@media (min-width: 1600px) and (min-height: 500px) {
	.pmholiday-decor__tree--left { transform: scale(1.05); }
	.pmholiday-decor__tree--right { transform: scale(-1.05, 1.05) translateX(100%); }
}

@media (max-width: 782px) {
	.admin-bar .pmholiday-decor--fallback .pmholiday-decor__garland { top: 46px; }
	.pmholiday-decor__garland { height: 26px; }
	.pmholiday-decor__bulb:nth-child(even) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.pmholiday-decor__bulb, .pmholiday-decor__star { animation: none; }
}

@media print {
	.pmholiday-decor { display: none; }
}

