#task-helper-cookie {
	--th-accent: #000;
	box-sizing: border-box;
	position: fixed;
	z-index: 999999;
	left: 50%;
	bottom: 12px;
	width: min(630px, calc(100% - 20px));
	transform: translateX(-50%) scale(1.1);
	transform-origin: center bottom;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 14px;
	background: rgba(255, 255, 255, .93);
	color: #171724;
	box-shadow: 0 14px 36px rgba(25, 22, 55, .15), 0 2px 6px rgba(25, 22, 55, .06);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	animation: th-cookie-in .28s ease-out both;
}

#task-helper-cookie * { box-sizing: border-box; }

#task-helper-cookie[data-position="left"] {
	left: 12px;
	right: auto;
	transform: scale(1.1);
	transform-origin: left bottom;
}

#task-helper-cookie[data-position="right"] {
	left: auto;
	right: 12px;
	transform: scale(1.1);
	transform-origin: right bottom;
}

.th-cookie-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: #fff;
	background: var(--th-accent);
	box-shadow: 0 5px 12px rgba(25, 22, 55, .14);
}

.th-cookie-icon svg { display: block; width: 24px; height: 24px; }
.th-cookie-copy { min-width: 0; text-align: left; }
#task-helper-cookie p { margin: 0; color: #383744; font-size: 12.5px; line-height: 1.35; }

.th-cookie-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 2px 10px;
	margin-top: 2px;
	font-size: 11.4px;
	line-height: 1.3;
}

#task-helper-cookie a {
	display: inline-block;
	margin: 0;
	color: var(--th-accent);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

#task-helper-cookie a:hover { text-decoration: underline; }
.th-actions { display: flex; gap: 5px; align-items: center; flex: none; }

.th-actions button {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
	min-height: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--th-accent) !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-image: none !important;
	color: var(--th-accent) !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease !important;
}

.th-actions button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 9px rgba(25, 22, 55, .1) !important;
	opacity: .88;
}

.th-actions button:focus-visible { outline: 2px solid var(--th-accent) !important; outline-offset: 2px !important; }
.th-actions .th-accept { border-color: var(--th-accent) !important; background: var(--th-accent) !important; color: #fff !important; box-shadow: 0 4px 10px rgba(25, 22, 55, .15) !important; }
.th-actions .th-accept:hover { background: var(--th-accent) !important; color: #fff !important; box-shadow: 0 6px 13px rgba(25, 22, 55, .19) !important; }

@keyframes th-cookie-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 712px) {
	#task-helper-cookie { transform: translateX(-50%); }
	#task-helper-cookie[data-position="left"],
	#task-helper-cookie[data-position="right"] { transform: none; }
}

@media (max-width: 680px) {
	#task-helper-cookie { bottom: 7px; width: calc(100% - 14px); grid-template-columns: auto minmax(0, 1fr); gap: 7px; padding: 8px; border-radius: 13px; }
	#task-helper-cookie[data-position="left"] { left: 7px; }
	#task-helper-cookie[data-position="right"] { right: 7px; }
	.th-cookie-icon { width: 33px; height: 33px; }
	.th-cookie-copy { text-align: left; }
	.th-cookie-links { justify-content: flex-start; }
	.th-actions { grid-column: 1 / -1; width: 100%; }
	.th-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
	#task-helper-cookie { animation: none; }
	.th-actions button { transition: none !important; }
}
