/*! Amafilph Cookie Consent 1.3.0 */
#afcc-root {
	--afcc-bg: #fff;
	--afcc-text: #111;
	--afcc-accent: #111;
	--afcc-on-accent: #fff;
	--afcc-secondary: #f0f0f0;
	--afcc-on-secondary: #111;
	--afcc-link: #2b59c3;
	--afcc-body: #6b6b6b;
	--afcc-border: #e5e5e5;
	--afcc-toggle-on: #111;
	--afcc-toggle-off: #d1d1d1;
	--afcc-toggle-knob: #fff;
	--afcc-icon-bg: #fff;
	--afcc-icon-fg: #111;
	--afcc-icon-size: 42px;
	--afcc-icon-bottom: 16px;
	--afcc-overlay: .45;
	--afcc-btn-radius: 999px;
	--afcc-muted: var(--afcc-body);
	--afcc-line: var(--afcc-border);
	--afcc-radius: 16px;
	--afcc-shadow: 0 12px 40px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06);
	--afcc-ease: cubic-bezier(.22, .8, .3, 1);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.55;
	color: var(--afcc-text);
	-webkit-font-smoothing: antialiased;
}

#afcc-root *,
#afcc-root *::before,
#afcc-root *::after { box-sizing: border-box; }

#afcc-root [hidden] { display: none !important; }

/* Isolate from theme (WoodMart) button/link/input styling */
#afcc-root button {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}
#afcc-root button:focus-visible,
#afcc-root a:focus-visible,
#afcc-root .afcc-dialog:focus-visible {
	outline: 2px solid var(--afcc-accent);
	outline-offset: 2px;
}
#afcc-root .afcc-dialog:focus { outline: none; }

#afcc-root p { margin: 0; padding: 0; }
#afcc-root a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

#afcc-root .afcc-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	margin-top: 12px;
	text-align: center;
	font-size: 12.5px;
	line-height: 1.4;
}
#afcc-root .afcc-links a {
	color: var(--afcc-link);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}
#afcc-root .afcc-links a:hover { text-decoration-thickness: 2px; }

/* ---------- Banner ---------- */
#afcc-root .afcc-banner {
	position: fixed;
	z-index: 99998;
	bottom: 20px;
	left: 20px;
	width: min(460px, calc(100vw - 40px));
	padding: 22px;
	background: var(--afcc-bg);
	border-radius: var(--afcc-radius);
	box-shadow: var(--afcc-shadow);
	border: 1px solid var(--afcc-line);
	transform: translateY(16px);
	opacity: 0;
	transition: transform .45s var(--afcc-ease), opacity .45s var(--afcc-ease);
}
#afcc-root.afcc--ready .afcc-banner { transform: none; opacity: 1; }
#afcc-root.afcc--right .afcc-banner { left: auto; right: 20px; }

#afcc-root.afcc--bar .afcc-banner {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	border-radius: 0;
	border-width: 1px 0 0;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "title actions" "text actions" "links actions";
	column-gap: 32px;
	padding: 20px max(24px, calc((100vw - 1600px) / 2 + 24px));
}
#afcc-root.afcc--bar .afcc-title { grid-area: title; }
#afcc-root.afcc--bar .afcc-text { grid-area: text; }
#afcc-root.afcc--bar .afcc-links { grid-area: links; }
#afcc-root.afcc--bar .afcc-actions { grid-area: actions; align-self: center; margin: 0; min-width: 440px; }

#afcc-root .afcc-title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.01em;
	margin-bottom: 6px;
	color: var(--afcc-text);
}
#afcc-root .afcc-text { color: var(--afcc-muted); font-size: 13.5px; }
#afcc-root .afcc-text a { color: var(--afcc-text); }

#afcc-root .afcc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1.35fr;
	gap: 8px;
	margin-top: 16px;
}

#afcc-root .afcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: var(--afcc-btn-radius, 999px);
	background: var(--afcc-accent);
	color: var(--afcc-on-accent);
	font-size: 13.5px;
	white-space: nowrap;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	transition: transform .15s ease, opacity .15s ease;
}
#afcc-root .afcc-btn:hover { opacity: .88; }
#afcc-root .afcc-btn--secondary {
	background: var(--afcc-secondary);
	color: var(--afcc-on-secondary);
}
#afcc-root .afcc-btn--secondary:hover { opacity: 1; filter: brightness(.95); }
#afcc-root .afcc-btn:active { transform: scale(.98); }

#afcc-root .afcc-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--afcc-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Preferences modal ---------- */
#afcc-root .afcc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
#afcc-root .afcc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--afcc-overlay));
	opacity: 0;
	transition: opacity .3s ease;
}
#afcc-root .afcc-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(520px, 100%);
	max-height: min(680px, calc(100vh - 40px));
	background: var(--afcc-bg);
	border-radius: var(--afcc-radius);
	box-shadow: var(--afcc-shadow);
	transform: translateY(12px) scale(.98);
	opacity: 0;
	transition: transform .35s var(--afcc-ease), opacity .35s var(--afcc-ease);
}
#afcc-root.afcc--modal-open .afcc-overlay { opacity: 1; }
#afcc-root.afcc--modal-open .afcc-dialog { transform: none; opacity: 1; }

#afcc-root .afcc-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px 12px;
}
#afcc-root .afcc-dialog__head .afcc-title { margin: 0; font-size: 18px; }
#afcc-root .afcc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--afcc-text);
	transition: background .15s ease;
}
#afcc-root .afcc-close:hover { background: var(--afcc-line); }

#afcc-root .afcc-dialog__body {
	padding: 0 22px 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
#afcc-root .afcc-dialog__body > .afcc-text { margin-bottom: 8px; }

#afcc-root .afcc-cat { padding: 16px 0; border-top: 1px solid var(--afcc-line); }
#afcc-root .afcc-cat:first-of-type { border-top: 0; }
#afcc-root .afcc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#afcc-root .afcc-cat__label { font-weight: 700; font-size: 14.5px; cursor: pointer; margin: 0; color: var(--afcc-text); }
#afcc-root .afcc-cat__desc { margin-top: 4px; color: var(--afcc-muted); font-size: 13px; }
#afcc-root .afcc-cat__services { margin-top: 6px; font-size: 12px; color: var(--afcc-muted); opacity: .85; }

/* Toggle switch */
#afcc-root .afcc-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; }
/* Hidden real checkbox. Hardened against theme (WoodMart) and iOS Safari form styling. */
#afcc-root .afcc-switch input[type="checkbox"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	opacity: 0 !important;
	z-index: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
#afcc-root .afcc-switch input[type="checkbox"]::before,
#afcc-root .afcc-switch input[type="checkbox"]::after { content: none !important; display: none !important; }

/* Essential: always on, not clickable */
#afcc-root .afcc-switch--locked { cursor: default; }
#afcc-root .afcc-switch--locked .afcc-switch__track { background: var(--afcc-toggle-on); opacity: .45; }
#afcc-root .afcc-switch--locked .afcc-switch__track::after { transform: translateX(18px); }
#afcc-root .afcc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--afcc-toggle-off);
	transition: background .2s ease;
}
#afcc-root .afcc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--afcc-toggle-knob);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .25s var(--afcc-ease);
}
#afcc-root .afcc-switch input[type="checkbox"]:checked + .afcc-switch__track { background: var(--afcc-toggle-on); }
#afcc-root .afcc-switch input[type="checkbox"]:checked + .afcc-switch__track::after { transform: translateX(18px); }
#afcc-root .afcc-switch input[type="checkbox"]:focus-visible + .afcc-switch__track { outline: 2px solid var(--afcc-toggle-on); outline-offset: 2px; }

#afcc-root .afcc-dialog__foot {
	display: grid;
	grid-template-columns: 1fr 1fr 1.3fr;
	gap: 8px;
	padding: 14px 22px 6px;
	border-top: 1px solid var(--afcc-line);
}
#afcc-root .afcc-dialog__links { padding: 0 22px 18px; }
#afcc-root .afcc-dialog__links .afcc-links { margin-top: 8px; }
#afcc-root .afcc-dialog__foot:last-child { padding-bottom: 20px; }

/* ---------- Revisit button ---------- */
#afcc-root .afcc-revisit {
	position: fixed;
	z-index: 99990;
	left: 16px;
	bottom: var(--afcc-icon-bottom);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--afcc-icon-size);
	height: var(--afcc-icon-size);
	border-radius: 50%;
	background: var(--afcc-icon-bg);
	color: var(--afcc-icon-fg);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
	border: 1px solid var(--afcc-line);
	overflow: hidden;
	transition: transform .2s var(--afcc-ease);
}
#afcc-root .afcc-revisit svg { width: 52%; height: 52%; }
#afcc-root .afcc-revisit img { display: block; width: 62%; height: 62%; object-fit: contain; }
#afcc-root .afcc-revisit.afcc-revisit--image-fill img { width: 100%; height: 100%; object-fit: cover; }
#afcc-root .afcc-revisit:hover { transform: scale(1.06); }
#afcc-root.afcc--icon-right .afcc-revisit { left: auto; right: 16px; }

html.afcc-locked { overflow: hidden; }

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 600px) {
	#afcc-root .afcc-banner,
	#afcc-root.afcc--right .afcc-banner,
	#afcc-root.afcc--bar .afcc-banner {
		display: block;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		border-radius: var(--afcc-radius) var(--afcc-radius) 0 0;
		border-width: 1px 0 0;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
	}
	#afcc-root.afcc--bar .afcc-actions { min-width: 0; margin-top: 16px; }
	#afcc-root .afcc-actions { grid-template-columns: 1fr 1fr; }
	#afcc-root .afcc-actions [data-afcc="manage"] { grid-column: 1 / -1; }

	#afcc-root .afcc-modal { padding: 0; align-items: flex-end; }
	#afcc-root .afcc-dialog {
		width: 100%;
		max-height: 88vh;
		border-radius: var(--afcc-radius) var(--afcc-radius) 0 0;
		transform: translateY(40px);
	}
	#afcc-root .afcc-dialog__head { padding: 18px 16px 10px; }
	#afcc-root .afcc-dialog__body { padding: 0 16px 8px; }
	#afcc-root .afcc-dialog__foot {
		grid-template-columns: 1fr 1fr;
		padding: 12px 16px 6px;
	}
	#afcc-root .afcc-dialog__links { padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
	#afcc-root .afcc-dialog__foot [data-afcc="save"] { grid-column: 1 / -1; }

	/* Keep clear of WoodMart's mobile bottom toolbar */
	body.sticky-toolbar-on #afcc-root .afcc-revisit { bottom: calc(var(--afcc-icon-bottom) + 54px); }
}

@media (prefers-reduced-motion: reduce) {
	#afcc-root *,
	#afcc-root .afcc-banner,
	#afcc-root .afcc-dialog { transition: none !important; }
}

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