/* VC Forms: cookie notice and settings dialog. Colours come from Forms → Cookies and are set by consent.js. */

.vc-consent-banner,
.vc-consent__overlay {
	--vc-cb-bg: #ffffff;
	--vc-cb-text: #1f2937;
	--vc-cb-button: #1d4ed8;
	--vc-cb-button-text: #ffffff;
}

.vc-consent-banner[hidden],
.vc-consent__overlay[hidden] {
	display: none !important;
}

.vc-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	padding: 1rem;
	color: var(--vc-cb-text, #1f2937);
	background: var(--vc-cb-bg, #ffffff);
	border-top: 3px solid var(--vc-cb-button, #1d4ed8);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
	font: inherit;
	line-height: 1.5;
}

.vc-consent__inner {
	max-width: 60rem;
	margin: 0 auto;
	display: grid;
	gap: 0.6rem;
}

.vc-consent-banner .vc-consent__title,
.vc-consent__dialog .vc-consent__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
	color: inherit;
}

.vc-consent-banner .vc-consent__text,
.vc-consent__dialog .vc-consent__text {
	margin: 0;
	color: inherit;
}

.vc-consent-banner a.vc-consent__link,
.vc-consent__dialog a.vc-consent__link {
	color: inherit;
	text-decoration: underline;
}

.vc-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* Accept and Reject share one style, so neither is more prominent. */
.vc-consent-banner .vc-consent__btn,
.vc-consent__dialog .vc-consent__btn {
	min-height: 44px;
	padding: 0.5rem 1.1rem;
	font: inherit;
	font-weight: 600;
	color: var(--vc-cb-button-text, #ffffff);
	background: var(--vc-cb-button, #1d4ed8);
	border: 2px solid var(--vc-cb-button, #1d4ed8);
	border-radius: 999px;
	cursor: pointer;
}

.vc-consent-banner .vc-consent__btn--quiet {
	color: var(--vc-cb-button, #1d4ed8);
	background: transparent;
}

.vc-consent-banner .vc-consent__btn:focus-visible,
.vc-consent__dialog .vc-consent__btn:focus-visible,
.vc-consent__close:focus-visible,
.vc-consent__category-head input:focus-visible,
.vc-consent-banner a:focus-visible,
.vc-consent__dialog a:focus-visible,
.vc-cookie-settings:focus-visible {
	outline: 3px solid var(--vc-cb-text, #1f2937);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--vc-cb-bg, #ffffff);
}

/* Settings dialog */

.vc-consent__overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.6);
}

.vc-consent__dialog {
	width: 100%;
	max-width: 40rem;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 1.4rem;
	color: var(--vc-cb-text, #1f2937);
	background: var(--vc-cb-bg, #ffffff);
	border-radius: 12px;
	display: grid;
	gap: 1rem;
	font: inherit;
	line-height: 1.5;
}

.vc-consent__dialog-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.vc-consent__close {
	min-height: 44px;
	min-width: 44px;
	padding: 0.4rem 1rem;
	font: inherit;
	color: var(--vc-cb-text, #1f2937);
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 999px;
	cursor: pointer;
}

.vc-consent__categories {
	display: grid;
	gap: 0.75rem;
}

.vc-consent__category {
	padding: 0.8rem;
	border: 2px solid rgba(0, 0, 0, 0.18);
	border-radius: 8px;
}

.vc-consent__category-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.vc-consent__category-head input[type="checkbox"] {
	width: 1.4rem;
	height: 1.4rem;
	margin: 0;
	accent-color: var(--vc-cb-button, #1d4ed8);
}

.vc-consent__category-label {
	font-weight: 600;
	cursor: pointer;
}

.vc-consent__always {
	margin-left: auto;
	font-size: 0.9em;
	opacity: 0.8;
}

.vc-consent__category-desc {
	margin: 0.4rem 0 0;
	font-size: 0.95em;
	opacity: 0.9;
}

body.vc-consent-open {
	overflow: hidden;
}

.vc-cookie-settings {
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.vc-consent-banner *,
	.vc-consent__overlay * {
		transition: none !important;
		animation: none !important;
	}
}
