/* Cookie banner (devvitech-core, Consent\Consent). Uses the theme's colour tokens. */

.dvt-consent {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 35;
	box-sizing: border-box;
	width: min(440px, calc(100% - 32px));
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line-strong, #6b7589);
	border-radius: 12px;
	background: var(--wp--preset--color--raised, #161b24);
	color: var(--wp--preset--color--ink, #e8ebf0);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.55;
}

.dvt-consent[hidden] {
	display: none;
}

.dvt-consent__text {
	margin: 0 0 16px;
}

.dvt-consent__text a {
	color: var(--wp--preset--color--accent, #7b93ff);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dvt-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Both choices look the same: neither is pushed. */
.dvt-consent__button {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--wp--preset--color--ink, #e8ebf0);
	border-radius: 8px;
	background: transparent;
	color: var(--wp--preset--color--ink, #e8ebf0);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.dvt-consent__button:hover {
	background: var(--wp--preset--color--soft, #1b2340);
}

.dvt-consent__button:focus-visible,
.dvt-consent__text a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #7b93ff);
	outline-offset: 3px;
}

/* Above the mobile audit bar. */
@media (max-width: 900px) {

	.dvt-consent {
		bottom: calc(84px + env(safe-area-inset-bottom));
	}
}
