/* Astor Cookie Manager — frontend 1.1.1 */
html.acm-is-open,
html.acm-is-open body {
	overflow: hidden !important;
}

.acm-root,
.acm-root * {
	box-sizing: border-box;
}

.acm-root {
	position: relative;
	z-index: 2147483000;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: var(--acm-text, #1f2024);
}

.acm-root [hidden],
.acm-embed [hidden] {
	display: none !important;
}

.acm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(17, 21, 18, 0.34);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 180ms ease;
}

.acm-backdrop.is-visible {
	opacity: 1;
}

/* Compact first layer */
.acm-banner {
	position: fixed;
	z-index: 2147483001;
	left: max(18px, env(safe-area-inset-left));
	bottom: max(18px, env(safe-area-inset-bottom));
	width: min(590px, calc(100vw - 36px));
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: 14px;
	row-gap: 0;
	align-items: start;
	padding: 16px;
	border: 1px solid rgba(31, 32, 36, 0.10);
	border-radius: min(var(--acm-radius, 14px), 18px);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 14px 40px rgba(17, 24, 20, 0.14);
	backdrop-filter: blur(18px) saturate(1.05);
	-webkit-backdrop-filter: blur(18px) saturate(1.05);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 180ms ease, transform 180ms ease;
}

#astor-cookie-manager .acm-banner.is-visible {
	visibility: visible !important;
	pointer-events: auto !important;
	opacity: 1 !important;
	transform: translateY(0) !important;
}

.acm-banner-brand,
.acm-modal-brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.acm-banner-brand {
	align-self: start;
	justify-content: center;
}

.acm-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 42px;
	object-fit: contain;
	object-position: center;
}

.acm-banner .acm-logo {
	width: 36px;
	height: 36px;
}

.acm-banner-copy {
	min-width: 0;
}

.acm-kicker {
	margin: 0 0 8px;
	color: var(--acm-primary, #347b45);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 1.2;
	text-transform: uppercase;
}

.acm-banner .acm-kicker {
	display: none;
}

.acm-banner h2,
.acm-modal h2,
.acm-modal h3 {
	font-family: inherit;
	color: var(--acm-text, #1f2024);
	font-weight: 400;
	letter-spacing: -0.025em;
}

.acm-banner h2 {
	margin: 0 0 5px;
	font-size: 17px;
	line-height: 1.25;
}

.acm-banner-copy > p:not(.acm-kicker) {
	max-width: 500px;
	margin: 0;
	color: rgba(31, 32, 36, 0.70);
	font-size: 12.5px;
	line-height: 1.5;
}

.acm-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 8px;
}

.acm-policy-links a {
	color: rgba(31, 32, 36, 0.72);
	font-size: 11px;
	font-weight: 500;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.acm-policy-links a:hover {
	color: var(--acm-primary, #347b45);
}

.acm-banner-actions {
	grid-column: 2;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.acm-modal-actions {
	display: grid;
	gap: 8px;
}

.acm-button,
.acm-shortcode-button,
.acm-floating-button,
.acm-icon-button {
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	cursor: pointer;
}

.acm-button {
	min-height: 34px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.055em;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.acm-button:hover {
	opacity: 0.88;
}

.acm-button-primary {
	background: var(--acm-primary, #347b45);
	color: #fff;
}

.acm-button-primary:hover {
	color: #fff;
}

.acm-button-dark {
	border-color: rgba(31, 32, 36, 0.24);
	background: transparent;
	color: var(--acm-text, #1f2024);
}

.acm-button-dark:hover {
	border-color: var(--acm-text, #1f2024);
	background: transparent;
	color: var(--acm-text, #1f2024);
}

.acm-button-ghost {
	min-height: 30px;
	padding: 6px 4px;
	border: 0;
	border-bottom: 1px solid rgba(31, 32, 36, 0.35);
	border-radius: 0;
	background: transparent;
	color: rgba(31, 32, 36, 0.78);
}

.acm-button-ghost:hover {
	border-bottom-color: var(--acm-primary, #347b45);
	color: var(--acm-primary, #347b45);
}

/* Preferences panel */
.acm-modal {
	position: fixed;
	z-index: 2147483002;
	top: 50%;
	left: 50%;
	width: min(650px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 32px));
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	border: 1px solid rgba(31, 32, 36, 0.10);
	border-radius: min(var(--acm-radius, 14px), 20px);
	background: var(--acm-bg, #fff);
	box-shadow: 0 28px 90px rgba(17, 24, 20, 0.28);
	overflow: hidden;
	opacity: 0;
	transform: translate(-50%, calc(-50% + 14px));
	transition: opacity 180ms ease, transform 180ms ease;
}

.acm-modal.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.acm-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 22px;
	border-bottom: 1px solid rgba(31, 32, 36, 0.08);
}

.acm-modal-brand .acm-logo {
	width: 38px;
	height: 38px;
}

.acm-icon-button {
	position: relative;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border: 1px solid rgba(31, 32, 36, 0.12);
	border-radius: 50%;
	background: #fff;
	color: var(--acm-text, #1f2024);
}

.acm-icon-button span::before,
.acm-icon-button span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 1px;
	background: currentColor;
}

.acm-icon-button span::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.acm-icon-button span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.acm-modal-scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 26px 26px 20px;
}

.acm-modal h2 {
	margin: 0 0 8px;
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.08;
}

.acm-modal-intro {
	max-width: 580px;
	margin: 0;
	color: rgba(31, 32, 36, 0.69);
	font-size: 13px;
	line-height: 1.58;
}

.acm-category-list {
	margin-top: 22px;
	border-top: 1px solid rgba(31, 32, 36, 0.10);
}

.acm-category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 17px 0;
	border-bottom: 1px solid rgba(31, 32, 36, 0.10);
}

.acm-category-title-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.acm-category h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.2;
}

.acm-category p {
	margin: 6px 0 0;
	color: rgba(31, 32, 36, 0.64);
	font-size: 12px;
	line-height: 1.52;
}

.acm-required-label {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(52, 123, 69, 0.09);
	color: var(--acm-primary, #347b45);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.acm-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.acm-toggle input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.acm-toggle > span[aria-hidden="true"] {
	position: relative;
	display: block;
	width: 44px;
	height: 25px;
	border: 1px solid rgba(31, 32, 36, 0.16);
	border-radius: 999px;
	background: #e5e7e6;
	transition: background 150ms ease, border-color 150ms ease;
}

.acm-toggle > span[aria-hidden="true"]::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 5px rgba(15, 20, 17, 0.16);
	transition: transform 150ms ease;
}

.acm-toggle input:checked + span {
	border-color: var(--acm-primary, #347b45);
	background: var(--acm-primary, #347b45);
}

.acm-toggle input:checked + span::after {
	transform: translateX(19px);
}

.acm-toggle input:disabled + span {
	opacity: 0.66;
	cursor: not-allowed;
}

.acm-modal-actions {
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	padding: 14px 22px;
	border-top: 1px solid rgba(31, 32, 36, 0.09);
	background: #fafbfa;
}

.acm-modal-actions .acm-button {
	min-height: 40px;
}

/* Small preference trigger */
.acm-floating-button {
	position: fixed;
	z-index: 2147482998;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(31, 32, 36, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 8px 22px rgba(17, 24, 20, 0.13);
	color: var(--acm-text, #1f2024);
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.acm-floating-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px rgba(17, 24, 20, 0.17);
	color: var(--acm-text, #1f2024);
}

.acm-floating-button > span:last-child {
	display: none;
}

.acm-floating-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: var(--acm-primary, #347b45);
}

.acm-floating-icon i {
	position: absolute;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #fff;
}

.acm-floating-icon i:nth-child(1) { transform: translate(-4px, -2px); }
.acm-floating-icon i:nth-child(2) { transform: translate(3px, -4px); }
.acm-floating-icon i:nth-child(3) { transform: translate(2px, 4px); }

.acm-shortcode-button {
	padding: 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font-weight: 600;
	text-underline-offset: 4px;
}

.acm-embed {
	position: relative;
	width: 100%;
	min-height: 260px;
	border-radius: var(--acm-radius, 14px);
	overflow: hidden;
	background: #eef1ee;
}

.acm-embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

.acm-embed-placeholder {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: linear-gradient(135deg, #f6f7f5, #e8eee8);
	text-align: center;
}

.acm-embed-placeholder strong {
	margin-top: 16px;
	font-size: 20px;
	font-weight: 500;
}

.acm-embed-placeholder p {
	max-width: 520px;
	margin: 8px 0 20px;
	color: rgba(31, 32, 36, 0.70);
}

.acm-embed-placeholder .acm-button {
	min-width: 180px;
}

.acm-button:focus-visible,
.acm-icon-button:focus-visible,
.acm-toggle input:focus-visible + span,
.acm-floating-button:focus-visible,
.acm-shortcode-button:focus-visible,
.acm-policy-links a:focus-visible {
	outline: 2px solid rgba(52, 123, 69, 0.45);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.acm-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		grid-template-columns: 34px minmax(0, 1fr);
		column-gap: 11px;
		padding: 13px;
	}

	.acm-banner .acm-logo {
		width: 31px;
		height: 31px;
	}

	.acm-banner h2 {
		font-size: 15px;
	}

	.acm-banner-copy > p:not(.acm-kicker) {
		font-size: 11.5px;
		line-height: 1.45;
	}

	.acm-policy-links {
		margin-top: 6px;
	}

	.acm-banner-actions {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 7px;
		margin-top: 11px;
	}

	.acm-banner-actions .acm-button-ghost {
		grid-column: 1 / -1;
		justify-self: center;
	}

	.acm-modal {
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 8px);
		border-radius: min(var(--acm-radius, 14px), 18px) min(var(--acm-radius, 14px), 18px) 0 0;
		transform: translateY(20px);
	}

	.acm-modal.is-visible {
		transform: translateY(0);
	}

	.acm-modal-header {
		padding: 13px 17px;
	}

	.acm-modal-scroll {
		padding: 22px 18px 18px;
	}

	.acm-modal h2 {
		font-size: 27px;
	}

	.acm-category {
		gap: 14px;
		padding: 15px 0;
	}

	.acm-modal-actions {
		grid-template-columns: 1fr;
		padding: 11px 17px max(11px, env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.acm-backdrop,
	.acm-banner,
	.acm-modal,
	.acm-button,
	.acm-floating-button,
	.acm-toggle > span,
	.acm-toggle > span::after {
		transition: none !important;
	}
}
