/* === 3Demon cookie consent banner (r12, 2026-08-20) ======================
 * r12: full-width bottom bar replaced with a traditional compact card
 * (Shopify-style floating box, bottom-left corner, ~420px wide, rounded,
 * #0c0c0c bg, subtle border, yellow Accept). Same markup ids/classes as
 * r7 — cookie-consent-shopify.js is unchanged. Markup is printed hidden
 * on every page (cache-safe); the JS reveals it.
 * ======================================================================== */

.td-cc-banner {
	position: fixed;
	left: 20px;
	right: auto;
	bottom: 20px;
	z-index: 2000001;
	width: min(378px, calc(100vw - 24px));
	background: #0c0c0c;
	color: rgba(255, 255, 255, 0.92);
	font-family: 'Lato', sans-serif;
	padding: 20px 20px 16px;
	display: block;
	border-radius: 10px;
	border: 1px solid #2f2f2f;
	border-top: 3px solid #ffe200;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}
.td-cc-banner[hidden],
.td-cc-prefs[hidden] {
	display: none !important;
}
.td-cc-banner .td-cc-body {
	min-width: 0;
}
.td-cc-banner h2 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
	font-family: 'Lato', sans-serif;
	text-transform: none;
	letter-spacing: 0;
}
.td-cc-banner p {
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
}
.td-cc-banner a {
	color: #ffe200;
	text-decoration: underline;
}
.td-cc-banner a:hover,
.td-cc-banner a:focus {
	color: #fff;
}
.td-cc-btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}
.td-cc-btns button,
.td-cc-prefs__actions button {
	font-family: 'Lato', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border-radius: 999px;
	padding: 10px 22px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease;
}
.td-cc-btns button:focus-visible,
.td-cc-prefs button:focus-visible,
.td-cc-prefs input:focus-visible,
.td-cc-banner a:focus-visible {
	outline: 3px solid #ffe200;
	outline-offset: 2px;
}
/* Accept + Decline share one row (each grows to half width);
 * the prefs link gets its own full-width row below — no orphan buttons. */
.td-cc-btn-accept,
.td-cc-btn-decline {
	flex: 1 1 40%;
	text-align: center;
	padding: 10px 12px;
}
.td-cc-btn-accept {
	background: #ffe200;
	color: #010002;
	border-color: #ffe200;
}
.td-cc-btn-accept:hover {
	background: #fff;
	border-color: #fff;
	color: #010002;
}
.td-cc-btn-decline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}
.td-cc-btn-decline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}
.td-cc-btn-prefs {
	flex: 1 1 100%;
	order: 3;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	border: none;
	text-decoration: underline;
	padding: 6px 4px 2px;
	text-align: center;
}
.td-cc-btn-prefs:hover {
	color: #ffe200;
}

/* ---- preferences dialog ("Modify consent scroll") ---- */
.td-cc-prefs {
	position: fixed;
	inset: 0;
	z-index: 2000002;
	font-family: 'Lato', sans-serif;
}
.td-cc-prefs__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}
.td-cc-prefs__dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(680px, 92vw);
	max-height: 82vh;
	overflow-y: auto;
	background: #141414;
	color: rgba(255, 255, 255, 0.92);
	border-radius: 8px;
	border: 1px solid #2a2a2a;
	border-top: 3px solid #ffe200;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	padding: 24px 28px 28px;
}
.td-cc-prefs__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.td-cc-prefs__dialog h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	font-family: 'Lato', sans-serif;
	text-transform: none;
}
/* Close control (r25, 2026-08-26).
 * Before: a 31x30 box with lopsided 2px/8px padding, which openPrefs()
 * focused programmatically on open — so the generic
 * `.td-cc-prefs button:focus-visible` rule below painted a 3px yellow
 * ring around it and the X read as "an awkward rounded box with a yellow
 * ring". Now: a borderless 36px round hit area with the glyph optically
 * centred, a soft hover wash, and a focus ring that only shows for real
 * keyboard focus (the JS now focuses the dialog, not this button). */
.td-cc-prefs__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -4px -8px 0 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.7);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.td-cc-prefs__close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffe200;
}
.td-cc-prefs__close:active {
	background: rgba(255, 255, 255, 0.16);
}
/* Beats the generic `.td-cc-prefs button:focus-visible` ring above
 * (2 classes + pseudo-class > 1 class + element + pseudo-class) so the
 * ring hugs the round button instead of boxing it. */
.td-cc-prefs .td-cc-prefs__close:focus {
	outline: none;
}
.td-cc-prefs .td-cc-prefs__close:focus-visible {
	outline: 2px solid #ffe200;
	outline-offset: 2px;
}
/* the dialog itself is focused on open (see cookie-consent-shopify.js) —
 * it must never paint a ring of its own */
.td-cc-prefs__dialog:focus,
.td-cc-prefs__dialog:focus-visible {
	outline: none;
}
.td-cc-prefs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 18px;
}
.td-cc-prefs__actions .td-cc-accept-all {
	background: #ffe200;
	color: #010002;
	border-color: #ffe200;
}
.td-cc-prefs__actions .td-cc-accept-all:hover {
	background: #fff;
	border-color: #fff;
}
.td-cc-prefs__actions .td-cc-decline-all {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}
.td-cc-prefs__actions .td-cc-decline-all:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}
.td-cc-prefs__actions .td-cc-save {
	background: transparent;
	color: #ffe200;
	border-color: #ffe200;
}
.td-cc-prefs__actions .td-cc-save:hover {
	background: #ffe200;
	color: #010002;
}
.td-cc-prefs__intro h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	font-family: 'Lato', sans-serif;
	text-transform: none;
}
.td-cc-prefs__intro p {
	margin: 0 0 14px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}
.td-cc-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #2a2a2a;
}
.td-cc-option input[type='checkbox'] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: #ffe200;
	cursor: pointer;
}
.td-cc-option input[type='checkbox']:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}
.td-cc-option label {
	cursor: pointer;
	color: rgba(255, 255, 255, 0.92);
}
.td-cc-option strong {
	display: block;
	font-size: 15px;
	color: #fff;
	margin-bottom: 2px;
}
.td-cc-option span {
	font-size: 13.5px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 640px) {
	.td-cc-banner {
		left: 12px;
		right: 12px;
		width: auto;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		padding: 16px 16px 12px;
	}
	.td-cc-banner h2 {
		font-size: 15px;
	}
	.td-cc-prefs__dialog {
		padding: 18px 16px 22px;
	}
}
