.vma-consent[hidden],
.vma-consent-manage[hidden] {
	display: none !important;
}

.vma-consent {
	position: fixed;
	right: 20px;
	bottom: 20px;
	left: 20px;
	z-index: 100000;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: end;
	max-width: 1180px;
	max-height: calc(100vh - 40px);
	margin: 0 auto;
	padding: 22px;
	overflow-y: auto;
	border: 1px solid var(--vma-border);
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(23, 33, 43, 0.2);
}

.vma-consent__copy {
	max-width: 720px;
}

.vma-consent__eyebrow {
	margin: 0 0 4px !important;
	color: var(--vma-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.vma-consent h2,
.vma-consent-dialog h2 {
	margin: 0 0 8px;
	font-size: clamp(21px, 3vw, 28px);
	line-height: 1.2;
}

.vma-consent p,
.vma-consent-dialog p {
	margin: 0 0 8px;
	color: var(--vma-muted);
}

.vma-consent__actions,
.vma-consent-dialog__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(150px, 1fr));
	gap: 8px;
}

.vma-consent__button {
	min-width: 150px;
	border-radius: 5px !important;
}

.vma-consent__button--secondary {
	border-color: var(--vma-ink) !important;
	background: var(--vma-ink) !important;
	color: #fff !important;
}

.vma-consent__button--outline {
	background: #fff !important;
	color: var(--vma-ink) !important;
}

.vma-consent-dialog {
	width: min(640px, calc(100% - 32px));
	max-width: calc(100% - 32px);
	max-height: calc(100vh - 32px);
	padding: 0;
	overflow-y: auto;
	overflow-x: hidden;
	border: 0;
	border-radius: 5px;
	background: #fff;
	color: var(--vma-ink);
	box-shadow: 0 24px 70px rgba(23, 33, 43, 0.28);
}

.vma-consent-dialog::backdrop {
	background: rgba(23, 33, 43, 0.58);
}

.vma-consent-dialog__panel {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 24px;
	overflow: hidden;
}

.vma-consent-dialog header {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--vma-border);
}

.vma-consent-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--vma-border);
	cursor: pointer;
}

.vma-consent-option > div {
	min-width: 0;
}

.vma-consent-option strong {
	display: block;
	margin-bottom: 3px;
	font-size: 17px;
}

.vma-consent-option p {
	margin: 0;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.vma-consent-option__required {
	padding: 6px 9px;
	border-radius: 5px;
	background: #e6f5f2;
	color: var(--vma-accent);
	font-size: 12px;
	font-weight: 800;
}

.vma-consent-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.vma-consent-switch {
	position: relative;
	width: 48px;
	height: 26px;
	border: 1px solid #7b8791;
	border-radius: 13px;
	background: #e6e8e7;
	transition: background 160ms ease, border-color 160ms ease;
}

.vma-consent-switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #687383;
	transition: transform 160ms ease, background 160ms ease;
}

.vma-consent-option input:checked + .vma-consent-switch {
	border-color: var(--vma-accent);
	background: var(--vma-accent);
}

.vma-consent-option input:checked + .vma-consent-switch::after {
	transform: translateX(22px);
	background: #fff;
}

.vma-consent-option input:focus-visible + .vma-consent-switch {
	outline: 3px solid rgba(15, 118, 110, 0.28);
	outline-offset: 3px;
}

.vma-consent-dialog__actions {
	grid-template-columns: 1fr 1fr;
	padding-top: 20px;
}

.vma-consent-dialog__policy {
	margin: 14px 0 0 !important;
	text-align: center;
}

.vma-consent-manage {
	position: fixed;
	bottom: 14px;
	left: 14px;
	z-index: 99990;
	width: 152px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid var(--vma-ink) !important;
	border-radius: 5px !important;
	background: #fff !important;
	color: var(--vma-ink) !important;
	box-shadow: 0 8px 22px rgba(23, 33, 43, 0.16);
	font-size: 12px;
	transition: bottom 180ms ease, opacity 160ms ease, transform 160ms ease;
}

.vma-consent-manage:hover {
	border-color: var(--vma-accent) !important;
	background: #fff !important;
	color: var(--vma-accent) !important;
	transform: translateY(-1px);
}

body.vma-has-ai-assistant .vma-consent-manage {
	bottom: 64px;
}

body.vma-has-ai-assistant .vmaa-floating {
	right: auto !important;
	bottom: 14px !important;
	left: 14px !important;
}

body.vma-has-ai-assistant .vmaa-floating-toggle {
	width: 152px !important;
	min-width: 152px !important;
	min-height: 42px !important;
	border-radius: 5px !important;
	box-shadow: 0 8px 22px rgba(23, 33, 43, 0.16) !important;
}

body.vma-consent-pending .vmaa-floating,
body.vmaa-floating-open .vma-consent-manage {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 860px) {
	.vma-consent {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vma-consent__actions {
		grid-template-columns: 1fr;
	}

	.vma-consent__button {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.vma-consent {
		right: 10px;
		bottom: 10px;
		left: 10px;
		padding: 17px;
	}

	.vma-consent-dialog__panel {
		padding: 18px;
	}

	.vma-consent-option {
		gap: 12px;
	}

	.vma-consent-dialog__actions {
		grid-template-columns: 1fr;
	}
}
