/* Coorie Cookie Consent: banner and preferences. Brand palette: #4B3217 #E8E4D5 #87775F #B7AB96 #AF6638 #753352 */

#ccc-root {
	--ccc-brown: #4B3217;
	--ccc-cream: #E8E4D5;
	--ccc-taupe: #87775F;
	--ccc-stone: #B7AB96;
	--ccc-orange: #AF6638;
	--ccc-earth: #753352;
	--ccc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--ccc-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ccc-radius: 12px;
	--ccc-shadow: 0 12px 40px rgba(75, 50, 23, 0.28);
	font-family: var(--ccc-sans);
	-webkit-font-smoothing: antialiased;
}

#ccc-root [hidden] { display: none !important; }
#ccc-root *, #ccc-root *::before, #ccc-root *::after { box-sizing: border-box; }

/* Reset anything a theme might apply to headings, paragraphs and buttons. */
#ccc-root h2, #ccc-root p, #ccc-root ul, #ccc-root li { margin: 0; padding: 0; list-style: none; letter-spacing: normal; text-transform: none; }
#ccc-root button { all: unset; box-sizing: border-box; cursor: pointer; font-family: var(--ccc-sans); -webkit-tap-highlight-color: transparent; }
#ccc-root button:focus-visible,
#ccc-root a:focus-visible,
#ccc-root .ccc-dialog:focus-visible { outline: 2px solid var(--ccc-orange); outline-offset: 3px; border-radius: 6px; }
#ccc-root .ccc-dialog:focus { outline: none; }

/* ---------- shared type ---------- */
#ccc-root .ccc-eyebrow {
	font: 600 11px/1.2 var(--ccc-sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 8px;
}
#ccc-root .ccc-title {
	font: 400 24px/1.25 var(--ccc-serif);
	margin-bottom: 10px;
}
#ccc-root .ccc-text {
	font: 300 14px/1.65 var(--ccc-sans);
}
#ccc-root .ccc-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	font-weight: 400;
	white-space: nowrap;
}
#ccc-root .ccc-link:hover { text-decoration-thickness: 2px; }

/* ---------- buttons ---------- */
#ccc-root .ccc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 20px;
}
#ccc-root .ccc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 8px;
	font: 500 14px/1.2 var(--ccc-sans);
	letter-spacing: 0.02em;
	text-align: center;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
#ccc-root .ccc-btn:active { transform: translateY(1px); }

/* ---------- banner (dark card) ---------- */
#ccc-root .ccc-banner {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 2147483000;
	width: 440px;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 28px 28px 22px;
	background: var(--ccc-brown);
	color: var(--ccc-cream);
	border-radius: var(--ccc-radius);
	box-shadow: var(--ccc-shadow);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .35s ease, transform .35s ease;
}
#ccc-root .ccc-banner.is-visible { opacity: 1; transform: none; }
#ccc-root .ccc-banner::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(232, 228, 213, 0.18);
	border-radius: 8px;
	pointer-events: none;
}
#ccc-root .ccc-banner .ccc-eyebrow { color: var(--ccc-stone); }
#ccc-root .ccc-banner .ccc-title { color: var(--ccc-cream); }
#ccc-root .ccc-banner .ccc-text { color: var(--ccc-cream); opacity: .92; }
#ccc-root .ccc-banner .ccc-btn {
	background: var(--ccc-cream);
	color: var(--ccc-brown);
	border: 1px solid var(--ccc-cream);
}
#ccc-root .ccc-banner .ccc-btn:hover { background: var(--ccc-stone); border-color: var(--ccc-stone); }
#ccc-root .ccc-manage {
	display: block;
	position: relative;
	margin: 14px auto 0;
	padding: 6px 4px;
	color: var(--ccc-cream);
	font: 400 13px/1.3 var(--ccc-sans);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-align: center;
}
#ccc-root .ccc-manage:hover { color: var(--ccc-stone); }

/* ---------- preferences dialog (light) ---------- */
#ccc-root .ccc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .25s ease;
}
#ccc-root .ccc-modal.is-visible { opacity: 1; }
#ccc-root .ccc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(75, 50, 23, 0.5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
#ccc-root .ccc-dialog {
	position: relative;
	width: 560px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 36px 32px 26px;
	background: var(--ccc-cream);
	color: var(--ccc-brown);
	border-radius: var(--ccc-radius);
	box-shadow: var(--ccc-shadow);
	transform: translateY(12px);
	transition: transform .3s ease;
}
#ccc-root .ccc-modal.is-visible .ccc-dialog { transform: none; }
#ccc-root .ccc-dialog .ccc-eyebrow { color: var(--ccc-earth); }
#ccc-root .ccc-dialog .ccc-title { color: var(--ccc-brown); font-size: 28px; }
#ccc-root .ccc-dialog .ccc-text { color: var(--ccc-brown); }

#ccc-root .ccc-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--ccc-brown);
	transition: background-color .2s ease;
}
#ccc-root .ccc-close:hover { background: rgba(75, 50, 23, 0.08); }

#ccc-root .ccc-cats { margin-top: 22px; border-top: 1px solid var(--ccc-stone); }
#ccc-root .ccc-cat { padding: 18px 0; border-bottom: 1px solid var(--ccc-stone); }
#ccc-root .ccc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}
#ccc-root .ccc-cat-name {
	font: 400 18px/1.3 var(--ccc-serif);
	color: var(--ccc-brown);
	cursor: pointer;
}
#ccc-root .ccc-cat-text {
	font: 300 13px/1.6 var(--ccc-sans);
	color: var(--ccc-brown);
	max-width: 44ch;
}
#ccc-root .ccc-always {
	font: 600 10.5px/1 var(--ccc-sans);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ccc-brown);
	padding: 7px 10px;
	border: 1px solid var(--ccc-stone);
	border-radius: 999px;
	white-space: nowrap;
}

/* Switch */
#ccc-root .ccc-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
#ccc-root .ccc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
#ccc-root .ccc-track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--ccc-stone);
	transition: background-color .2s ease;
}
#ccc-root .ccc-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ccc-cream);
	box-shadow: 0 1px 3px rgba(75, 50, 23, 0.35);
	transition: transform .2s ease;
}
#ccc-root .ccc-switch input:checked + .ccc-track { background: var(--ccc-orange); }
#ccc-root .ccc-switch input:checked + .ccc-track::after { transform: translateX(20px); }
#ccc-root .ccc-switch input:focus-visible + .ccc-track { outline: 2px solid var(--ccc-brown); outline-offset: 3px; }

#ccc-root .ccc-actions--three { grid-template-columns: 1fr 1fr 1fr; margin-top: 24px; }
#ccc-root .ccc-dialog .ccc-btn {
	background: var(--ccc-brown);
	color: var(--ccc-cream);
	border: 1.5px solid var(--ccc-brown);
}
#ccc-root .ccc-dialog .ccc-btn:hover { background: #5e4122; border-color: #5e4122; }
#ccc-root .ccc-dialog .ccc-btn--outline { background: transparent; color: var(--ccc-brown); }
#ccc-root .ccc-dialog .ccc-btn--outline:hover { background: rgba(75, 50, 23, 0.08); color: var(--ccc-brown); }
#ccc-root .ccc-foot { margin-top: 16px; text-align: center; font: 300 13px/1.4 var(--ccc-sans); color: var(--ccc-brown); }

/* ---------- reopen button ---------- */
#ccc-root .ccc-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--ccc-brown);
	color: var(--ccc-cream);
	box-shadow: 0 4px 16px rgba(75, 50, 23, 0.25);
	transition: transform .2s ease, background-color .2s ease;
}
#ccc-root .ccc-fab:hover { transform: scale(1.06); background: #5e4122; }

html.ccc-lock, html.ccc-lock body { overflow: hidden !important; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
	#ccc-root .ccc-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		max-width: none;
		padding: 22px 20px 16px;
	}
	#ccc-root .ccc-title { font-size: 21px; }
	#ccc-root .ccc-dialog { padding: 30px 20px 20px; }
	#ccc-root .ccc-dialog .ccc-title { font-size: 24px; }
	#ccc-root .ccc-actions--three { grid-template-columns: 1fr 1fr; }
	#ccc-root .ccc-actions--three .ccc-btn--outline { grid-column: 1 / -1; order: 3; }
	#ccc-root .ccc-fab { left: 12px; bottom: 12px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	#ccc-root .ccc-banner, #ccc-root .ccc-modal, #ccc-root .ccc-dialog, #ccc-root .ccc-btn, #ccc-root .ccc-fab, #ccc-root .ccc-track::after { transition: none !important; }
}

@media print { #ccc-root { display: none !important; } }
