.aa-consent[hidden],
.aa-consent__dialog[hidden],
.aa-consent-open[hidden] {
	display: none !important;
}

.aa-consent {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
}

.aa-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 70%);
}

.aa-consent__dialog {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	width: min(720px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	padding: 28px;
	border-radius: 8px;
	background: #fff;
	color: #111;
	box-shadow: 0 12px 48px rgb(0 0 0 / 35%);
}

.aa-consent__dialog:focus {
	outline: 3px solid #e74e1e;
	outline-offset: 2px;
}

.aa-consent__dialog h2 {
	margin: 0 0 12px;
	color: inherit;
	font-size: 1.35rem;
}

.aa-consent__copy {
	font-size: .95rem;
	line-height: 1.55;
}

.aa-consent__copy a {
	color: inherit;
	text-decoration: underline;
}

.aa-consent__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
	flex-wrap: wrap;
}

.aa-consent__button {
	min-height: 44px;
	padding: 9px 20px;
	border: 2px solid #e74e1e;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.aa-consent__button--primary {
	background: #e74e1e;
	color: #fff;
}

.aa-consent__button--secondary {
	background: #fff;
	color: #9f2b0a;
}

.aa-consent__button:hover,
.aa-consent__button:focus-visible {
	filter: brightness(.9);
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

.aa-consent__purposes {
	margin: 22px 0 0;
	padding: 0;
	border: 0;
}

.aa-consent__purposes label {
	display: flex;
	gap: 10px;
	padding: 14px 0;
	border-bottom: 1px solid #ddd;
	cursor: pointer;
}

.aa-consent__purposes input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.aa-consent__purposes span,
.aa-consent__purposes small {
	display: block;
}

.aa-consent__purposes small {
	margin-top: 3px;
	font-size: .9rem;
}

.aa-consent-open {
	position: fixed;
	z-index: 2147483645;
	left: 0;
	bottom: 10%;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: #e74e1e;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.aa-consent-active {
	overflow: hidden;
}

@media (max-width: 600px) {
	.aa-consent__dialog {
		width: 100%;
		max-height: 100%;
		min-height: 100%;
		border-radius: 0;
		padding: 22px 18px;
	}

	.aa-consent__actions,
	.aa-consent__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aa-consent *,
	.aa-consent-open {
		scroll-behavior: auto !important;
	}
}
