/* Ayzen Consent – banner styles. Colours come from CSS variables set in the admin. */
.ayc-root {
	--ayc-bg: #ffffff;
	--ayc-text: #0a1a33;
	--ayc-primary: #0a1a33;
	--ayc-btn-text: #ffffff;
	--ayc-accent: #07feff;
	--ayc-border: #e6e9ef;
	--ayc-radius: 12px;
	--ayc-font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ayc-muted: color-mix(in srgb, var(--ayc-text) 68%, transparent);
	--ayc-soft: color-mix(in srgb, var(--ayc-text) 5%, var(--ayc-bg));
	--ayc-shadow: 0 1px 2px rgba(10, 26, 51, .06), 0 12px 32px rgba(10, 26, 51, .12);
	font-family: var(--ayc-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--ayc-text);
	-webkit-font-smoothing: antialiased;
}
#ayzen-consent *, #ayzen-consent *::before, #ayzen-consent *::after { box-sizing: border-box; }
#ayzen-consent [hidden] { display: none !important; }

/* Theme-proofing: page builders (Elementor, Divi, Astra…) style every <button> globally.
   Neutralise the properties they usually set; the rules below then style our buttons. */
#ayzen-consent button {
	width: auto; height: auto; min-width: 0; min-height: 0; margin: 0;
	text-transform: none; letter-spacing: normal; text-shadow: none; box-shadow: none;
	background-image: none; font-family: var(--ayc-font); line-height: 1.2;
}
#ayzen-consent button svg { display: inline-block; }

/* ---------- Banner ---------- */
#ayzen-consent .ayc-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--ayc-bg);
	color: var(--ayc-text);
	border: 1px solid var(--ayc-border);
	box-shadow: var(--ayc-shadow);
	font-family: var(--ayc-font);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
	overflow: hidden;
}
#ayzen-consent .ayc-banner.ayc-in { opacity: 1; transform: none; }
#ayzen-consent .ayc-has-accent { border-top: 3px solid var(--ayc-accent) !important; }

#ayzen-consent .ayc-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ayc-text); }
#ayzen-consent .ayc-msg { margin: 0; font-size: 14px; color: var(--ayc-muted); }
#ayzen-consent .ayc-msg p { margin: 0 0 6px; }
#ayzen-consent .ayc-link { color: var(--ayc-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#ayzen-consent .ayc-link:hover { text-decoration-color: var(--ayc-accent); }

#ayzen-consent .ayc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Box positions */
#ayzen-consent .ayc-pos-box-left, #ayzen-consent .ayc-pos-box-right { bottom: 20px; width: 400px; max-width: calc(100vw - 32px); border-radius: var(--ayc-radius); }
#ayzen-consent .ayc-pos-box-left { left: 20px; }
#ayzen-consent .ayc-pos-box-right { right: 20px; }
#ayzen-consent .ayc-pos-box-left .ayc-banner-inner, #ayzen-consent .ayc-pos-box-right .ayc-banner-inner { padding: 22px; }
#ayzen-consent .ayc-pos-box-left .ayc-actions, #ayzen-consent .ayc-pos-box-right .ayc-actions { margin-top: 18px; }
#ayzen-consent .ayc-pos-box-left .ayc-btn, #ayzen-consent .ayc-pos-box-right .ayc-btn { flex: 1 1 auto; }

/* Bar positions */
#ayzen-consent .ayc-pos-bar-bottom, #ayzen-consent .ayc-pos-bar-top { left: 0; right: 0; border-left: 0; border-right: 0; border-radius: 0; }
#ayzen-consent .ayc-pos-bar-bottom { bottom: 0; border-bottom: 0; }
#ayzen-consent .ayc-pos-bar-top { top: 0; border-top: 0; transform: translateY(-12px); }
#ayzen-consent .ayc-pos-bar-top.ayc-has-accent { border-top: 0 !important; border-bottom: 3px solid var(--ayc-accent); }
#ayzen-consent .ayc-pos-bar-bottom .ayc-banner-inner, #ayzen-consent .ayc-pos-bar-top .ayc-banner-inner {
	max-width: 1200px; margin: 0 auto; padding: 18px 24px;
	display: flex; align-items: center; gap: 24px;
}
#ayzen-consent .ayc-pos-bar-bottom .ayc-copy, #ayzen-consent .ayc-pos-bar-top .ayc-copy { flex: 1 1 auto; }
#ayzen-consent .ayc-pos-bar-bottom .ayc-actions, #ayzen-consent .ayc-pos-bar-top .ayc-actions { flex: 0 0 auto; }

/* Centered popup */
#ayzen-consent .ayc-pos-popup {
	top: 50%; left: 50%; width: 520px; max-width: calc(100vw - 32px);
	border-radius: var(--ayc-radius);
	transform: translate(-50%, calc(-50% + 12px));
}
#ayzen-consent .ayc-pos-popup.ayc-in { transform: translate(-50%, -50%); }
#ayzen-consent .ayc-pos-popup .ayc-banner-inner { padding: 28px; }
#ayzen-consent .ayc-pos-popup .ayc-actions { margin-top: 20px; justify-content: flex-end; }

#ayzen-consent.ayc-locked::before {
	content: ""; position: fixed; inset: 0; z-index: 2147482999;
	background: rgba(10, 26, 51, .35); backdrop-filter: blur(2px);
}

/* ---------- Buttons ---------- */
#ayzen-consent .ayc-btn {
	appearance: none; -webkit-appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 9px 18px; margin: 0;
	font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
	border-radius: calc(var(--ayc-radius) * .66);
	border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	text-transform: none; box-shadow: none; text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
#ayzen-consent .ayc-btn:active { transform: translateY(1px); }
#ayzen-consent .ayc-btn-primary { background: var(--ayc-primary); color: var(--ayc-btn-text); border-color: var(--ayc-primary); }
#ayzen-consent .ayc-btn-primary:hover { background: color-mix(in srgb, var(--ayc-primary) 88%, #000); color: var(--ayc-btn-text); }
#ayzen-consent .ayc-btn-outline { background: transparent; color: var(--ayc-text); border-color: var(--ayc-border); }
#ayzen-consent .ayc-btn-outline:hover { border-color: var(--ayc-text); background: transparent; color: var(--ayc-text); }
#ayzen-consent .ayc-btn-ghost { background: transparent; color: var(--ayc-text); border-color: transparent; padding-left: 10px; padding-right: 10px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#ayzen-consent .ayc-btn-ghost:hover { background: var(--ayc-soft); color: var(--ayc-text); }

#ayzen-consent button:focus-visible, #ayzen-consent a:focus-visible, #ayzen-consent .ayc-switch input:focus-visible + .ayc-slider, .ayc-open-settings:focus-visible {
	outline: 2px solid var(--ayc-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ayc-primary) 25%, transparent);
}

/* ---------- Modal ---------- */
#ayzen-consent .ayc-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; padding: 16px; }
#ayzen-consent .ayc-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 26, 51, .4); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s ease; }
#ayzen-consent .ayc-modal-box {
	position: relative; width: 560px; max-width: 100%; max-height: calc(100vh - 32px);
	display: flex; flex-direction: column;
	background: var(--ayc-bg); color: var(--ayc-text);
	border: 1px solid var(--ayc-border); border-radius: var(--ayc-radius);
	box-shadow: var(--ayc-shadow); overflow: hidden;
	opacity: 0; transform: translateY(10px) scale(.99); transition: opacity .2s ease, transform .2s ease;
}
#ayzen-consent .ayc-modal.ayc-in .ayc-modal-backdrop { opacity: 1; }
#ayzen-consent .ayc-modal.ayc-in .ayc-modal-box { opacity: 1; transform: none; }

#ayzen-consent .ayc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--ayc-border); }
#ayzen-consent .ayc-modal-title { margin: 0; font-family: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ayc-text); line-height: 1.3; }
#ayzen-consent .ayc-icon-btn { appearance: none; background: transparent; border: 0; padding: 6px; margin: -6px; border-radius: 8px; color: var(--ayc-text); cursor: pointer; display: inline-flex; }
#ayzen-consent .ayc-icon-btn:hover { background: var(--ayc-soft); }

#ayzen-consent .ayc-modal-body { padding: 18px 22px; overflow-y: auto; }
#ayzen-consent .ayc-intro { font-size: 14px; color: var(--ayc-muted); margin-bottom: 14px; }
#ayzen-consent .ayc-intro p { margin: 0 0 8px; }

#ayzen-consent .ayc-cat { border-top: 1px solid var(--ayc-border); }
#ayzen-consent .ayc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
#ayzen-consent .ayc-cat-toggle {
	appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
	display: inline-flex; align-items: center; gap: 8px;
	font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ayc-text); text-align: left;
}
#ayzen-consent .ayc-cat-toggle svg { transition: transform .15s ease; flex: 0 0 auto; }
#ayzen-consent .ayc-cat-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
#ayzen-consent .ayc-cat-desc { font-size: 14px; color: var(--ayc-muted); padding: 0 0 14px 24px; }
#ayzen-consent .ayc-always { font-size: 13px; font-weight: 500; color: var(--ayc-text); white-space: nowrap; }

#ayzen-consent .ayc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 auto; margin: 0; }
#ayzen-consent .ayc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
#ayzen-consent .ayc-slider { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--ayc-text) 18%, var(--ayc-bg)); transition: background-color .2s ease; }
#ayzen-consent .ayc-slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s ease, background-color .2s ease; }
#ayzen-consent .ayc-switch input:checked + .ayc-slider { background: var(--ayc-primary); }
#ayzen-consent .ayc-switch input:checked + .ayc-slider::before { transform: translateX(18px); background: var(--ayc-btn-text); }
#ayzen-consent .ayc-switch input:disabled + .ayc-slider { opacity: .5; }

#ayzen-consent .ayc-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--ayc-border); background: var(--ayc-soft); }

/* ---------- Cookie settings (revisit) button ---------- */
/* Ayzen style: primary-colour tile, accent cookie icon and ring; the label slides out on hover. */
#ayzen-consent .ayc-revisit {
	position: fixed; bottom: 20px; z-index: 2147482998;
	display: inline-flex; align-items: center; justify-content: flex-start;
	width: auto; height: 48px; min-width: 48px; max-width: none; padding: 0 12px; margin: 0;
	border-radius: 14px;
	background-color: var(--ayc-primary);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%);
	color: var(--ayc-revisit-icon, var(--ayc-accent));
	border: 1px solid var(--ayc-accent);
	border-color: color-mix(in srgb, var(--ayc-accent) 45%, transparent);
	box-shadow: 0 6px 18px rgba(10, 26, 51, .22);
	opacity: var(--ayc-revisit-opacity, .6);
	font: 600 13px/1 var(--ayc-font); text-transform: none; letter-spacing: 0; text-decoration: none;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#ayzen-consent .ayc-revisit svg { display: block; flex: 0 0 auto; width: 22px; height: 22px; }
#ayzen-consent .ayc-revisit-label {
	display: inline-block; max-width: 0; margin: 0; overflow: hidden; white-space: nowrap;
	opacity: 0; color: var(--ayc-btn-text);
	transition: max-width .25s ease, opacity .2s ease, margin .25s ease;
}
#ayzen-consent .ayc-revisit:hover, #ayzen-consent .ayc-revisit:focus-visible {
	opacity: 1; transform: translateY(-2px);
	background-color: var(--ayc-primary);
	color: var(--ayc-revisit-icon, var(--ayc-accent));
	border-color: var(--ayc-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ayc-accent) 28%, transparent), 0 10px 24px rgba(10, 26, 51, .28);
}
#ayzen-consent .ayc-revisit:hover .ayc-revisit-label, #ayzen-consent .ayc-revisit:focus-visible .ayc-revisit-label {
	max-width: 220px; margin: 0 4px 0 10px; opacity: 1;
}
#ayzen-consent .ayc-revisit-left { left: 20px; right: auto; }
#ayzen-consent .ayc-revisit-right { right: 20px; left: auto; }
@media (hover: none) {
	#ayzen-consent .ayc-revisit .ayc-revisit-label { display: none; }
}
@media (max-width: 782px) {
	#ayzen-consent .ayc-revisit { height: 44px; min-width: 44px; padding: 0 10px; bottom: 16px; }
	#ayzen-consent .ayc-revisit-left { left: 16px; }
	#ayzen-consent .ayc-revisit-right { right: 16px; }
	#ayzen-consent .ayc-revisit-desktop-only { display: none !important; }
}

/* Blocked embeds */
iframe[data-ayc-src] { background: #f4f6f9; }

html.ayc-noscroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	#ayzen-consent .ayc-pos-bar-bottom .ayc-banner-inner, #ayzen-consent .ayc-pos-bar-top .ayc-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
	#ayzen-consent .ayc-pos-box-left, #ayzen-consent .ayc-pos-box-right { left: 16px; right: 16px; bottom: 16px; width: auto; }
}
@media (max-width: 480px) {
	#ayzen-consent .ayc-actions, #ayzen-consent .ayc-modal-foot { flex-direction: column-reverse; }
	#ayzen-consent .ayc-actions .ayc-btn, #ayzen-consent .ayc-modal-foot .ayc-btn { width: 100%; }
	#ayzen-consent .ayc-modal { padding: 0; align-items: flex-end; }
	#ayzen-consent .ayc-modal-box { max-height: 92vh; border-radius: var(--ayc-radius) var(--ayc-radius) 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	#ayzen-consent .ayc-banner, #ayzen-consent .ayc-modal-box, #ayzen-consent .ayc-modal-backdrop, #ayzen-consent .ayc-slider, #ayzen-consent .ayc-slider::before { transition: none !important; }
}
