/* =========================================================
   VSH PRIVACY CONSENT v1.1.0
========================================================= */

html.vsh-consent-open {
	overflow: hidden !important;
}

.vsh-consent-root {
	--vsh-consent-z: 999999;
	--vsh-consent-panel-width: 660px;
	position: relative;
	z-index: var(--vsh-consent-z);
}

.vsh-consent-root[hidden],
.vsh-consent-overlay[hidden],
.vsh-consent-bar[hidden] {
	display: none !important;
}


/* =========================================================
   BANNER
========================================================= */

.vsh-consent-bar {
	position: fixed;
	z-index: var(--vsh-consent-z);
	right: 16px;
	bottom: max(16px, env(safe-area-inset-bottom));
	left: 16px;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.vsh-consent-bar__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1340px, 100%);
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--vsh-border, #e5ebf2);
	border-radius: 14px;
	box-shadow: 0 14px 42px rgba(16, 48, 90, .16);
	pointer-events: auto;
	animation: vshConsentSlideUp .28s ease both;
}

@keyframes vshConsentSlideUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vsh-consent-bar__copy {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	min-width: 0;
	max-width: 1000px;
}

.vsh-consent-bar__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--vsh-blue, var(--primary-color));
	background: var(--vsh-blue-soft, #f9fbff);
	border: 1px solid var(--vsh-border, #e5ebf2);
	border-radius: 10px;
}

.vsh-consent-bar__icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vsh-consent-bar h2 {
	margin: 0 0 5px;
	color: var(--vsh-heading, #172033);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.vsh-consent-bar p {
	margin: 0;
	color: var(--vsh-text-muted, #607086);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
}

.vsh-consent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 8px;
}

.vsh-consent-links a {
	color: var(--vsh-blue, var(--primary-color));
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.vsh-consent-links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vsh-consent-bar__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}


/* =========================================================
   BUTTONS
========================================================= */

.vsh-consent-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 9px 15px !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color .18s ease,
		border-color .18s ease,
		color .18s ease,
		box-shadow .18s ease;
}

.vsh-consent-btn--primary {
	color: #fff !important;
	background: var(--vsh-blue, var(--primary-color)) !important;
	border: 1px solid var(--vsh-blue, var(--primary-color)) !important;
}

.vsh-consent-btn--primary:hover {
	color: #fff !important;
	background: var(--vsh-blue-hover, #1149a6) !important;
	border-color: var(--vsh-blue-hover, #1149a6) !important;
}

.vsh-consent-btn--secondary {
	color: var(--vsh-heading, #172033) !important;
	background: #fff !important;
	border: 1px solid var(--vsh-border-strong, #d8e2ee) !important;
}

.vsh-consent-btn--secondary:hover {
	color: var(--vsh-blue, var(--primary-color)) !important;
	background: var(--vsh-blue-soft, #f9fbff) !important;
	border-color: var(--vsh-border-hover, #bfd0e4) !important;
}

.vsh-consent-btn--text {
	color: var(--vsh-blue, var(--primary-color)) !important;
	background: transparent !important;
	border: 1px solid transparent !important;
}

.vsh-consent-btn--text:hover {
	background: var(--vsh-blue-soft, #f9fbff) !important;
}

.vsh-consent-btn:focus-visible,
.vsh-consent-panel__close:focus-visible,
.vsh-cookie-settings-link:focus-visible {
	outline: 2px solid var(--vsh-blue, var(--primary-color));
	outline-offset: 2px;
}


/* =========================================================
   OVERLAY + PANEL
========================================================= */

.vsh-consent-overlay {
	position: fixed;
	z-index: calc(var(--vsh-consent-z) + 1);
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
	background: rgba(9, 24, 45, .44);
	backdrop-filter: blur(2px);
}

.vsh-consent-panel {
	width: min(var(--vsh-consent-panel-width), 100%);
	max-height: min(760px, calc(100vh - 40px));
	background: #fff;
	border: 1px solid rgba(229, 235, 242, .9);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(9, 31, 62, .24);
	overflow: hidden;
	animation: vshConsentPanelUp .24s ease both;
}

@keyframes vshConsentPanelUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.vsh-consent-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 22px 18px;
	border-bottom: 1px solid var(--vsh-border, #e5ebf2);
}

.vsh-consent-panel__eyebrow {
	display: block;
	margin: 0 0 5px;
	color: var(--vsh-blue, var(--primary-color));
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .04em;
}

.vsh-consent-panel__head h2 {
	margin: 0 0 7px;
	color: var(--vsh-heading, #172033);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
}

.vsh-consent-panel__head p {
	max-width: 520px;
	margin: 0;
	color: var(--vsh-text-muted, #607086);
	font-size: 13px;
	line-height: 1.55;
}

.vsh-consent-panel__close {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--vsh-text-muted, #607086) !important;
	background: var(--vsh-bg-soft, #f8fafc) !important;
	border: 1px solid var(--vsh-border, #e5ebf2) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer;
}

.vsh-consent-panel__close:hover {
	color: var(--vsh-heading, #172033) !important;
	background: var(--vsh-surface-hover, #f4f8fd) !important;
}

.vsh-consent-panel__body {
	max-height: 440px;
	padding: 8px 22px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.vsh-consent-choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 0;
	border-bottom: 1px solid var(--vsh-border, #e5ebf2);
}

.vsh-consent-choice:last-child {
	border-bottom: 0;
}

.vsh-consent-choice__copy {
	display: block;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.vsh-consent-choice__copy strong {
	display: block;
	margin-bottom: 3px;
	color: var(--vsh-heading, #172033);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.vsh-consent-choice__copy p {
	margin: 0;
	color: var(--vsh-text-muted, #607086);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.vsh-consent-required {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 5px 9px;
	color: var(--vsh-blue, var(--primary-color));
	background: var(--vsh-blue-soft, #f9fbff);
	border: 1px solid var(--vsh-border, #e5ebf2);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
}


/* =========================================================
   SWITCH
========================================================= */

.vsh-consent-switch {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	margin: 0;
	cursor: pointer;
}

.vsh-consent-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.vsh-consent-switch__ui {
	position: relative;
	display: block;
	width: 46px;
	height: 26px;
	background: #cbd5e1;
	border-radius: 999px;
	transition: background-color .18s ease;
}

.vsh-consent-switch__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(15, 23, 42, .18);
	transition: transform .18s ease;
}

.vsh-consent-switch input:checked + .vsh-consent-switch__ui {
	background: var(--vsh-blue, var(--primary-color));
}

.vsh-consent-switch input:checked + .vsh-consent-switch__ui::after {
	transform: translateX(20px);
}

.vsh-consent-switch input:focus-visible + .vsh-consent-switch__ui {
	box-shadow: var(--vsh-focus-ring, 0 0 0 3px rgba(25, 85, 181, .10));
	outline: 2px solid var(--vsh-blue, var(--primary-color));
	outline-offset: 2px;
}


/* =========================================================
   PANEL LINKS / FOOT
========================================================= */

.vsh-consent-panel__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 22px;
	background: var(--vsh-bg-soft, #f8fafc);
	border-top: 1px solid var(--vsh-border, #e5ebf2);
}

.vsh-consent-panel__links a {
	color: var(--vsh-blue, var(--primary-color));
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.vsh-consent-panel__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vsh-consent-panel__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 22px 18px;
	background: #fff;
	border-top: 1px solid var(--vsh-border, #e5ebf2);
}


/* =========================================================
   FOOTER SETTINGS SHORTCODE
========================================================= */

.vsh-cookie-settings-link {
	display: inline !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}

.vsh-cookie-settings-link:hover {
	color: var(--vsh-blue, var(--primary-color)) !important;
	background: transparent !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 849px) {
	.vsh-consent-bar__content {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		padding: 16px;
	}

	.vsh-consent-bar__copy {
		max-width: none;
	}

	.vsh-consent-bar__actions {
		width: 100%;
		justify-content: flex-end;
	}

	.vsh-consent-overlay {
		padding: 12px;
	}
}

@media (max-width: 549px) {
	.vsh-consent-bar {
		right: 8px;
		bottom: max(8px, env(safe-area-inset-bottom));
		left: 8px;
	}

	.vsh-consent-bar__content {
		gap: 13px;
		padding: 14px;
		border-radius: 13px;
	}

	.vsh-consent-bar__copy {
		gap: 10px;
	}

	.vsh-consent-bar__icon {
		width: 38px;
		height: 38px;
	}

	.vsh-consent-bar h2 {
		font-size: 16px;
	}

	.vsh-consent-links {
		gap: 5px 12px;
	}

	.vsh-consent-bar__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.vsh-consent-bar__actions .vsh-consent-btn--primary {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.vsh-consent-bar__actions .vsh-consent-btn--secondary {
		grid-column: 1;
		grid-row: 2;
	}

	.vsh-consent-bar__actions .vsh-consent-btn--text {
		grid-column: 2;
		grid-row: 2;
	}

	.vsh-consent-bar__actions > .vsh-consent-btn:only-child {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.vsh-consent-btn {
		width: 100%;
		padding-right: 10px !important;
		padding-left: 10px !important;
	}

	.vsh-consent-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.vsh-consent-panel {
		width: 100%;
		max-height: min(820px, 94vh);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 18px 18px 0 0;
	}

	.vsh-consent-panel__head {
		padding: 18px 16px 15px;
	}

	.vsh-consent-panel__head h2 {
		font-size: 20px;
	}

	.vsh-consent-panel__body {
		max-height: 50vh;
		padding: 6px 16px;
	}

	.vsh-consent-choice {
		gap: 12px;
		padding: 14px 0;
	}

	.vsh-consent-panel__links {
		padding: 11px 16px;
	}

	.vsh-consent-panel__foot {
		display: grid;
		grid-template-columns: 1fr;
		padding: 12px 16px max(16px, env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.vsh-consent-bar__content,
	.vsh-consent-panel {
		animation: none !important;
	}

	.vsh-consent-btn,
	.vsh-consent-switch__ui,
	.vsh-consent-switch__ui::after {
		transition: none !important;
	}
}
