/* Hitzmass Came Early: shop pop-up, gift button, cart progress bar. Colours come from --hm-a (red), --hm-b (green), --hm-c (gold). */
.hm-pop { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 12, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.hm-pop.is-open { opacity: 1; }
.hm-pop[hidden], .hm-gift[hidden] { display: none !important; }
.hm-box { position: relative; width: min(520px, 100%); max-height: 94vh; overflow: hidden auto; border-radius: 30px; text-align: center; color: #fff;
	background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--hm-a) 55%, #120208) 0%, #12030a 55%, #050208 100%);
	border: 3px solid var(--hm-c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--hm-b) 70%, #000), 0 0 60px color-mix(in srgb, var(--hm-a) 50%, transparent), 0 40px 90px rgba(0, 0, 0, .7);
	transform: scale(.9) rotate(-2deg); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.hm-pop.is-open .hm-box { transform: scale(1) rotate(-1deg); }
.hm-in { position: relative; z-index: 2; padding: 38px 30px 26px; }
.hm-x { position: absolute; top: 12px; right: 12px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff !important; background: rgba(0, 0, 0, .5) !important; color: #fff !important; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 !important; box-shadow: none !important; }

/* Snow of crowns and flakes */
.hm-snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hm-snow i { position: absolute; top: -30px; left: var(--x); font-style: normal; font-size: var(--s); color: #fff; opacity: .75; animation: hm-fall var(--d) linear var(--dl) infinite; text-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.hm-snow i:nth-child(3n) { color: var(--hm-c); text-shadow: 0 0 10px var(--hm-c); }
@keyframes hm-fall { to { transform: translate(30px, 640px) rotate(240deg); } }

/* String lights */
.hm-lights { position: absolute; top: 0; left: -10px; right: -10px; z-index: 3; height: 34px; display: flex; justify-content: space-between; padding: 0 14px; border-top: 2px solid rgba(255, 255, 255, .25); border-radius: 0 0 50% 50% / 0 0 30px 30px; }
.hm-lights b { width: 12px; height: 18px; margin-top: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--hm-a); box-shadow: 0 0 12px var(--hm-a); animation: hm-blink 1.6s infinite; }
.hm-lights b:nth-child(3n+1) { background: var(--hm-b); box-shadow: 0 0 12px var(--hm-b); animation-delay: .4s; }
.hm-lights b:nth-child(3n+2) { background: var(--hm-c); box-shadow: 0 0 12px var(--hm-c); animation-delay: .8s; }
.hm-lights b:nth-child(even) { margin-top: 12px; }
@keyframes hm-blink { 50% { opacity: .35; box-shadow: none; } }

.hm-crownhat { width: 110px; height: auto; margin: 4px auto 0; display: block; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--hm-c) 70%, transparent)); animation: hm-wobble 3s ease-in-out infinite; }
.hm-crownhat .hm-crown { fill: var(--hm-c); stroke: #000; stroke-width: 3; }
.hm-crownhat .hm-band { fill: color-mix(in srgb, var(--hm-c) 70%, #000); }
.hm-crownhat .hm-hat { fill: var(--hm-a); stroke: #000; stroke-width: 3; }
.hm-crownhat .hm-pom, .hm-crownhat .hm-fur { fill: #fff; stroke: #000; stroke-width: 2; }
@keyframes hm-wobble { 50% { transform: rotate(-6deg) translateY(-4px); } }

.hm-kicker { font: 400 18px/1 'Permanent Marker', cursive !important; color: var(--hm-c) !important; margin: 6px 0 4px !important; }
.hm-title { margin: 0 0 10px !important; line-height: .9 !important; color: #fff !important; }
.hm-spray { display: block; font: 400 clamp(46px, 11vw, 70px)/.9 'Rubik Spray Paint', 'Arial Black', sans-serif; letter-spacing: .01em; text-transform: uppercase;
	background: linear-gradient(100deg, #fff 0%, var(--hm-c) 40%, var(--hm-a) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 18px color-mix(in srgb, var(--hm-a) 60%, transparent)); }
.hm-early { display: inline-block; margin-top: 6px; padding: 4px 14px; font: 400 26px/1.1 'Permanent Marker', cursive; color: #000; background: var(--hm-b); border-radius: 8px; transform: rotate(-3deg); box-shadow: 4px 4px 0 #000; }
.hm-deal { display: inline-flex; align-items: center; gap: 12px; margin: 14px 0 8px; padding: 6px 22px 6px 26px; border-radius: 20px; background: repeating-linear-gradient(-45deg, var(--hm-a) 0 14px, #fff 14px 28px); box-shadow: 0 0 0 4px #000, 8px 8px 0 var(--hm-b); }
.hm-pct { font: 900 84px/1 'Unbounded', 'Poppins', 'Arial Black', sans-serif; color: #fff; -webkit-text-stroke: 4px #000; paint-order: stroke fill; text-shadow: 5px 5px 0 #000; }
.hm-pct small { font-size: .5em; }
.hm-off { font: 900 22px/1 'Unbounded', 'Poppins', 'Arial Black', sans-serif; color: #000; background: var(--hm-c); padding: 8px 10px; border-radius: 10px; text-transform: uppercase; text-align: left; transform: rotate(4deg); }
.hm-rule { font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .9) !important; margin: 10px auto 14px !important; max-width: 420px; }
.hm-rule strong { color: #fff; }
.hm-count { display: flex; justify-content: center; gap: 8px; margin: 0 0 18px; }
.hm-count div { min-width: 66px; padding: 10px 6px 8px; border-radius: 14px; background: rgba(0, 0, 0, .55); border: 2px dashed color-mix(in srgb, var(--hm-c) 70%, transparent); }
.hm-count b { display: block; font: 900 28px/1 'Unbounded', 'Poppins', sans-serif; color: #fff; }
.hm-count span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-c); }
.hm-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hm-btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border-radius: 999px; background: var(--hm-b); color: #000 !important; font: 900 16px/1 'Unbounded', 'Poppins', sans-serif; text-transform: uppercase; text-decoration: none !important; border: 3px solid #000; box-shadow: 5px 5px 0 #fff, 0 0 30px color-mix(in srgb, var(--hm-b) 60%, transparent); transform: rotate(-1deg); transition: transform .2s, box-shadow .2s; }
.hm-btn:hover { transform: rotate(0) translateY(-2px) scale(1.03); box-shadow: 6px 6px 0 var(--hm-c), 0 0 36px color-mix(in srgb, var(--hm-b) 70%, transparent); }
.hm-later { background: none !important; border: 0 !important; color: rgba(255, 255, 255, .7) !important; text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px !important; box-shadow: none !important; }
.hm-fine { margin: 14px 0 0 !important; font-size: 12px; color: rgba(255, 255, 255, .55) !important; }
body.hm-locked { overflow: hidden; }

/* Reopen gift */
.hm-gift { position: fixed; left: 18px; bottom: 18px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 3px solid #000 !important; background: var(--hm-a) !important; color: #fff !important; font: 800 14px/1 'Unbounded', 'Poppins', sans-serif; cursor: pointer; box-shadow: 4px 4px 0 var(--hm-b), 0 0 24px color-mix(in srgb, var(--hm-a) 60%, transparent) !important; animation: hm-nudge 3.5s ease-in-out infinite; }
.hm-gift-ico { font-size: 22px; }
@keyframes hm-nudge { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }

/* Cart / checkout progress */
.hm-progress { margin: 0 0 22px; padding: 16px 18px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, color-mix(in srgb, var(--hm-a) 75%, #000), color-mix(in srgb, var(--hm-b) 45%, #000)); border: 2px solid var(--hm-c); box-shadow: 5px 5px 0 #000; }
.hm-progress p { margin: 0 0 10px !important; color: #fff !important; }
.hm-progress a { color: var(--hm-c) !important; font-weight: 700; }
.hm-bar { height: 12px; border-radius: 99px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.hm-bar span { display: block; height: 100%; border-radius: 99px; background: repeating-linear-gradient(-45deg, #fff 0 8px, var(--hm-c) 8px 16px); transition: width .6s; }
.hm-progress small { display: block; margin-top: 6px; font-size: 12px; opacity: .85; }
.hm-progress.is-done .hm-bar span { background: repeating-linear-gradient(-45deg, var(--hm-b) 0 8px, #fff 8px 16px); }

@media (max-width: 520px) {
	.hm-in { padding: 34px 18px 22px; }
	.hm-pct { font-size: 66px; }
	.hm-count div { min-width: 56px; }
	.hm-gift-t { display: none; }
	.hm-gift { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.hm-snow i, .hm-lights b, .hm-crownhat, .hm-gift { animation: none !important; }
}
