.aps-consent[hidden],
.aps-consent-settings[hidden],
.aps-meta-atc-fragment[hidden] {
	display: none !important;
}

.aps-consent {
	position: fixed;
	z-index: 100001;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	left: clamp(1rem, 3vw, 2rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.25rem 2rem;
	align-items: center;
	max-width: 980px;
	margin-inline: auto;
	padding: 1.15rem 1.25rem;
	border: 1px solid rgba(255, 255, 255, .18);
	background: #171615;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
	color: #f8f4ee;
}

.aps-consent__copy strong {
	display: block;
	margin-bottom: .25rem;
	font-size: 1rem;
}

.aps-consent__copy p {
	margin: 0;
	max-width: 68ch;
	color: rgba(248, 244, 238, .78);
	font-size: .88rem;
	line-height: 1.55;
}

.aps-consent__copy a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .18em;
}

.aps-consent__actions {
	display: flex;
	align-items: center;
	gap: .85rem;
	white-space: nowrap;
}

.aps-consent__actions .button {
	min-height: 42px;
	padding: .65rem 1rem;
	border: 1px solid #f8f4ee;
	background: #f8f4ee;
	color: #171615;
}

.aps-consent__refuse,
.aps-consent-settings {
	padding: .35rem 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: .82rem;
	text-decoration: underline;
	text-underline-offset: .18em;
	cursor: pointer;
}

.aps-consent-settings {
	position: fixed;
	z-index: 9999;
	right: .8rem;
	bottom: .55rem;
	padding: .3rem .5rem;
	background: rgba(248, 244, 238, .92);
	color: #4d4036;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

@media (max-width: 720px) {
	.aps-consent {
		grid-template-columns: 1fr;
		gap: .9rem;
		padding: 1rem;
	}

	.aps-consent__actions {
		justify-content: space-between;
		white-space: normal;
	}

	.aps-consent-settings {
		bottom: 4.6rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aps-consent,
	.aps-consent-settings {
		scroll-behavior: auto;
	}
}
