:root {
	--vp-consent-blue: #073b7a;
	--vp-consent-blue-dark: #052f63;
	--vp-consent-border: #c8d8e8;
	--vp-consent-text: #17395f;
	--vp-consent-muted: #526d8b;
	--vp-consent-bg: #ffffff;
	--vp-consent-soft: #f4f8fc;
}

[hidden] {
	display: none !important;
}

.vp-consent-banner,
.vp-consent-dialog,
.vp-consent-revisit {
	box-sizing: border-box;
	font-family: inherit;
}

.vp-consent-banner {
	position: fixed;
	right: 18px;
	bottom: 18px;
	left: 18px;
	z-index: 999990;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 22px;
	border: 1px solid var(--vp-consent-border);
	border-left: 5px solid var(--vp-consent-blue);
	border-radius: 10px;
	background: var(--vp-consent-bg);
	box-shadow: 0 12px 38px rgba(7, 40, 82, .2);
	color: var(--vp-consent-text);
}

.vp-consent-banner h2,
.vp-consent-dialog h2,
.vp-consent-dialog h3 {
	color: var(--vp-consent-blue);
}

.vp-consent-banner h2 {
	margin: 0 0 5px;
	font-size: 22px;
	line-height: 1.2;
}

.vp-consent-banner p {
	max-width: 760px;
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.55;
}

.vp-consent-banner a,
.vp-consent-privacy a {
	color: var(--vp-consent-blue);
	font-size: 13px;
	font-weight: 700;
	text-underline-offset: 2px;
}

.vp-consent-actions,
.vp-consent-dialog__footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
}

.vp-consent-button,
.vp-consent-inline-settings {
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid var(--vp-consent-blue);
	border-radius: 6px;
	background: #fff;
	color: var(--vp-consent-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	cursor: pointer;
}

.vp-consent-button:hover,
.vp-consent-button:focus-visible,
.vp-consent-inline-settings:hover,
.vp-consent-inline-settings:focus-visible {
	outline: 3px solid rgba(7, 59, 122, .18);
	outline-offset: 2px;
}

.vp-consent-button--primary {
	background: var(--vp-consent-blue);
	color: #fff;
}

.vp-consent-button--primary:hover,
.vp-consent-button--primary:focus-visible {
	background: var(--vp-consent-blue-dark);
}

.vp-consent-button--equal {
	min-width: 132px;
}

.vp-consent-button--secondary {
	border-color: #93acc7;
	background: var(--vp-consent-soft);
}

.vp-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 999991;
	background: rgba(4, 23, 47, .56);
}

.vp-consent-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 999992;
	width: min(650px, calc(100vw - 28px));
	max-height: min(760px, calc(100vh - 28px));
	overflow: auto;
	transform: translate(-50%, -50%);
	border: 1px solid var(--vp-consent-border);
	border-radius: 11px;
	background: var(--vp-consent-bg);
	box-shadow: 0 22px 60px rgba(0, 20, 48, .3);
	color: var(--vp-consent-text);
}

.vp-consent-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 21px 22px 16px;
	border-bottom: 1px solid #dbe5ef;
}

.vp-consent-eyebrow {
	margin: 0 0 2px;
	color: #0b5aa5;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.vp-consent-dialog h2 {
	margin: 0;
	font-size: 26px;
	line-height: 1.18;
}

.vp-consent-close {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #b8cade;
	border-radius: 50%;
	background: #fff;
	color: var(--vp-consent-blue);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.vp-consent-close:focus-visible {
	outline: 3px solid rgba(7, 59, 122, .2);
	outline-offset: 2px;
}

.vp-consent-dialog__body {
	padding: 18px 22px;
}

.vp-consent-dialog__body > p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
}

.vp-consent-category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	margin-top: 10px;
	padding: 14px 15px;
	border: 1px solid #d8e3ee;
	border-radius: 7px;
	background: #fbfdff;
}

.vp-consent-category h3,
.vp-consent-category strong {
	display: block;
	margin: 0 0 3px;
	font-size: 15px;
	line-height: 1.3;
}

.vp-consent-category p,
.vp-consent-category small {
	display: block;
	margin: 0;
	color: var(--vp-consent-muted);
	font-size: 12.5px;
	line-height: 1.45;
}

.vp-consent-always {
	color: #14733b;
	font-size: 12px;
	font-weight: 900;
	white-space: nowrap;
}

.vp-consent-category input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--vp-consent-blue);
}

.vp-consent-dialog__footer {
	justify-content: flex-end;
	padding: 16px 22px 20px;
	border-top: 1px solid #dbe5ef;
	background: var(--vp-consent-soft);
}

.vp-consent-revisit {
	position: fixed;
	bottom: 15px;
	left: 15px;
	z-index: 999980;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 39px;
	padding: 7px 11px;
	border: 1px solid #a9bdd2;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 5px 16px rgba(7, 40, 82, .14);
	color: var(--vp-consent-blue);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.vp-consent-revisit:hover,
.vp-consent-revisit:focus-visible {
	border-color: var(--vp-consent-blue);
	outline: 3px solid rgba(7, 59, 122, .16);
	outline-offset: 2px;
}

.vp-consent-privacy {
	margin-top: 24px;
	padding-top: 8px;
}

.vp-consent-inline-settings {
	display: inline-block;
}

@media (max-width: 840px) {
	.vp-consent-banner {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.vp-consent-actions {
		justify-content: stretch;
	}

	.vp-consent-actions .vp-consent-button {
		flex: 1 1 150px;
	}
}

@media (max-width: 560px) {
	.vp-consent-banner {
		right: 8px;
		bottom: 8px;
		left: 8px;
		gap: 12px;
		max-height: calc(100vh - 16px);
		overflow: auto;
		padding: 16px;
	}

	.vp-consent-banner h2 {
		font-size: 19px;
	}

	.vp-consent-banner p {
		font-size: 13px;
	}

	.vp-consent-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.vp-consent-actions .vp-consent-button--secondary {
		grid-column: 1 / -1;
	}

	.vp-consent-dialog {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
	}

	.vp-consent-dialog__header,
	.vp-consent-dialog__body {
		padding-right: 16px;
		padding-left: 16px;
	}

	.vp-consent-dialog__footer {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding: 14px 16px 16px;
	}

	.vp-consent-dialog__footer .vp-consent-button--secondary {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.vp-consent-revisit__label {
		display: none;
	}

	.vp-consent-revisit {
		width: 40px;
		justify-content: center;
		padding: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vp-consent-banner,
	.vp-consent-dialog,
	.vp-consent-revisit {
		scroll-behavior: auto;
	}
}
