/* AI side panel, Cyber Monday (linked by footer_2021.js right after ai_panel.css, in place of ai_panel_black_friday.css, on
   the Cyber Monday pages). The art is drawn by the panel behind its header and the iframe, whose page is transparent
   (see ai_theme_cyber_monday.css). Values from the demo's pin / float panel (celeste-panel.css, Cyber Monday section). */
html:is(.dark-mode, :not(.dark-mode)) .ai-panel-iframe {
	background: transparent;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-header {
	background-color: transparent;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-header .ai-panel-title-text,
html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-header .ai-panel-btn {
	color: #fff;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-header .ai-panel-btn:hover {
	color: #fff;
}

html:is(.dark-mode, :not(.dark-mode)) .dark-mode .ai-panel-btn.ai-panel-btn-menu:hover img {
	filter: brightness(0) invert(1);
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel {
	background: #000;
}

/* the panel art (demo .cp--pin .cp-bg): the homepage's data-stream picture at 72% 40%, under two washes of black and navy */
html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-open::before {
	content: '';
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	pointer-events: none;
	background:
		linear-gradient(268deg, rgba(0, 0, 0, .72) 11.58%, rgba(8, 12, 41, .4) 100.88%),
		linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
		url(https://c1.neweggimages.com/webresource/themes/nest/images/holidays/cyber_monday/2026/panel-bg.jpg) 72% 40% / auto 120% no-repeat,
		#000;
}

/* floating window (demo .cp--float): its own crop of the art, 6px corners, a pale cyan glow and a faint blue edge */
html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-float.is-open::before {
	background:
		linear-gradient(177.26deg, rgba(0, 0, 0, .72) 31.33%, rgba(8, 12, 41, .4) 83.75%),
		linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
		url(https://c1.neweggimages.com/webresource/themes/nest/images/holidays/cyber_monday/2026/panel-bg.jpg) 30% 60% / auto 150% no-repeat,
		#000;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-float,
html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-float.is-open {
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(68, 138, 249, .11);
	/* the demo's #B1EEFF at 9.1px is very pale on a light page: the theme cyan, stacked once more for a stronger glow */
	filter: drop-shadow(0 0 9.1px #4FD8FF) drop-shadow(0 0 16px rgba(79, 216, 255, .15));
}

/* header buttons: white icons, a soft cyan square on hover (demo .cp-tool) */
html:is(.dark-mode, :not(.dark-mode)) .ai-panel-btn img,
html:is(.dark-mode, :not(.dark-mode)) .ai-panel-btn.ai-panel-btn-menu img {
	filter: brightness(0) invert(1);
}

html:is(.dark-mode, :not(.dark-mode)) .ai-panel-btn.ai-panel-btn-new .ico {
	font-size: 18px;
	color: #fff;
}

html:is(.dark-mode, :not(.dark-mode)) .ai-panel-btn:hover {
	background: rgba(79, 216, 255, .16);
}

html:is(.dark-mode, :not(.dark-mode)) .ai-panel-btn:focus-visible {
	outline: 2px solid #4FD8FF;
	outline-offset: 1px;
}

/* header spark (demo "Float Spark"): the image of the design in place of the panel's own */
html:is(.dark-mode, :not(.dark-mode)) .ai-panel-spark-wrap {
	position: relative;
}

html:is(.dark-mode, :not(.dark-mode)) .ai-panel-spark-wrap img {
	opacity: 0 !important;
}

html:is(.dark-mode, :not(.dark-mode)) .ai-panel-spark-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("https://c1.neweggimages.com/webresource/themes/nest/images/holidays/cyber_monday/2026/spark-header.svg") center / contain no-repeat;
}

/* float / pin toggle (demo .cp-dock): a light window behind a dark one with an arrow, drawn in CSS over the button (::before =
   the back window, ::after = the front window, the button's own <img> = the arrow). Pin points down-right (pop out), the
   floating window flips it up-left (dock back). The icon is a 26 x 20 box centred in the button. */
html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-btn.ai-panel-btn-float {
	position: relative;
	--dock-x: calc(50% - 13px);
	--dock-y: calc(50% - 10px);
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-btn.ai-panel-btn-float::before,
html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-btn.ai-panel-btn-float::after {
	content: '';
	position: absolute;
	box-sizing: border-box;
	border-radius: 2px;
	pointer-events: none;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-btn.ai-panel-btn-float::before {
	z-index: 0;
	left: calc(var(--dock-x) + 0px);
	top: calc(var(--dock-y) + 1px);
	width: 22px;
	height: 16px;
	background: #DCE6F5;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-btn.ai-panel-btn-float::after {
	z-index: 1;
	left: calc(var(--dock-x) + 10px);
	top: calc(var(--dock-y) + 7px);
	width: 16px;
	height: 14px;
	border: 1.5px solid #DCE6F5;
	background: #5A4243;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel .ai-panel-btn.ai-panel-btn-float img {
	position: absolute;
	z-index: 2;
	left: calc(var(--dock-x) + 11.64px);
	top: calc(var(--dock-y) + 6.42px);
	width: 8.527px;
	height: 11.085px;
	opacity: 1;
	filter: none;
	content: url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%228.52717%22 height%3D%2211.0853%22 viewBox%3D%220 0 8.52717 11.0853%22 fill%3D%22none%22 overflow%3D%22visible%22%3E%3Cg clip-path%3D%22url%28%23c%29%22%3E%3Cpath d%3D%22M3.2558 -9.73913C3.59333 -9.73898 3.85565 -9.45832 3.85932 -9.11999H3.86029L4.91596 8.61146L7.25775 6.16517C7.49393 5.91677 7.8793 5.92136 8.11517 6.16517C8.35022 6.40814 8.35009 6.8026 8.11615 7.04701L4.75678 10.5538L4.75775 10.5548C4.52226 10.8035 4.13526 10.8033 3.89838 10.5558L3.69623 10.3439H3.69721L0.541933 7.04701V7.04603C0.307088 6.80243 0.31141 6.40958 0.541933 6.16615C0.777366 5.91769 1.16348 5.91797 1.40033 6.16517L3.70404 8.5724L2.65131 -9.10534L2.65033 -9.11315C2.65049 -9.45463 2.91587 -9.73913 3.2558 -9.73913Z%22 fill%3D%22%23E7DCD7%22 stroke%3D%22%23E7DCD7%22 stroke-width%3D%220.25%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath id%3D%22c%22%3E%3Crect width%3D%228.52717%22 height%3D%2211.0853%22 fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
	transform: rotate(-43.08deg);
	pointer-events: none;
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-float .ai-panel-btn.ai-panel-btn-float::before {
	left: calc(var(--dock-x) + 4px);
	top: calc(var(--dock-y) + 4px);
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-float .ai-panel-btn.ai-panel-btn-float::after {
	left: var(--dock-x);
	top: var(--dock-y);
}

html:is(.dark-mode, :not(.dark-mode)) #ai-side-panel.is-float .ai-panel-btn.ai-panel-btn-float img {
	left: calc(var(--dock-x) + 5.84px);
	top: calc(var(--dock-y) + 3.5px);
	transform: rotate(136.92deg);
}
