:root {
	--wg-consent-navy: #0b1b31;
	--wg-consent-panel: #12243d;
	--wg-consent-line: #294260;
	--wg-consent-blue: #1478ff;
	--wg-consent-green: #12bf8a;
	--wg-consent-text: #f7fbff;
	--wg-consent-muted: #adc0d9;
}

.wg-consent,
.wg-consent-modal {
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: 0;
}

.wg-consent *,
.wg-consent-modal * {
	box-sizing: border-box;
}

.wg-consent[hidden],
.wg-consent-modal[hidden] {
	display: none !important;
}

.wg-consent {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100020;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 16px 18px;
	width: min(720px, calc(100vw - 48px));
	padding: 22px;
	border: 1px solid var(--wg-consent-line);
	border-radius: 8px;
	background: var(--wg-consent-navy);
	box-shadow: 0 16px 40px rgba(5, 18, 36, .18);
	color: var(--wg-consent-text);
}

.wg-consent::before,
.wg-consent-panel::before {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(120, 157, 201, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 157, 201, .045) 1px, transparent 1px);
	background-size: 48px 48px;
	content: '';
}

.wg-consent-mark {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 4px;
	width: 56px;
	height: 56px;
	padding: 12px;
	border: 1px solid #315276;
	border-radius: 6px;
	background: #142944;
}

.wg-consent-mark span {
	display: block;
	width: 7px;
	border-radius: 2px 2px 0 0;
	background: var(--wg-consent-blue);
}

.wg-consent-mark span:nth-child(1) { height: 13px; }
.wg-consent-mark span:nth-child(2) { height: 24px; }
.wg-consent-mark span:nth-child(3) { height: 18px; background: var(--wg-consent-green); }

.wg-consent-copy {
	position: relative;
	display: grid;
	gap: 5px;
	min-width: 0;
}

.wg-consent-kicker {
	color: #69aaff;
	font-size: 11px;
	font-weight: 850;
	line-height: 1.2;
	text-transform: uppercase;
}

.wg-consent-copy > strong {
	font-size: clamp(18px, 2vw, 23px);
	font-weight: 850;
	line-height: 1.15;
}

.wg-consent-copy p,
.wg-consent-intro {
	margin: 0;
	color: var(--wg-consent-muted);
	font-size: 14px;
	line-height: 1.55;
}

.wg-consent-copy a {
	width: max-content;
	margin-top: 2px;
	color: #8bc0ff;
	font-size: 12px;
	font-weight: 750;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wg-consent-actions {
	position: relative;
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.wg-consent-button,
.wg-consent-close {
	font: inherit;
	letter-spacing: 0;
	cursor: pointer;
}

.wg-consent-button {
	min-height: 46px;
	padding: 10px 15px;
	border: 1px solid #426384;
	border-radius: 6px;
	background: transparent;
	color: #edf6ff;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.wg-consent-button:hover,
.wg-consent-button:focus-visible {
	border-color: #76b2fb;
	background: rgba(45, 126, 231, .12);
	color: #fff;
}

.wg-consent-button:active { transform: translateY(1px); }
.wg-consent-button.is-primary { border-color: var(--wg-consent-blue); background: var(--wg-consent-blue); color: #fff; }
.wg-consent-button.is-primary:hover,
.wg-consent-button.is-primary:focus-visible { border-color: #3890ff; background: #3890ff; }
.wg-consent-button.is-settings { background: #172c47; }

.wg-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 100030;
	display: grid;
	place-items: center;
	padding: 24px;
}

.wg-consent-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 13, 26, .66);
	backdrop-filter: blur(5px);
}

.wg-consent-panel {
	position: relative;
	width: min(760px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow: auto;
	padding: 28px;
	border: 1px solid var(--wg-consent-line);
	border-radius: 8px;
	background: var(--wg-consent-navy);
	box-shadow: 0 28px 80px rgba(3, 13, 27, .32);
	color: var(--wg-consent-text);
	outline: none;
}

.wg-consent-panel > * { position: relative; }
.wg-consent-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wg-consent-panel h2 { margin: 5px 0 0; color: #fff; font-size: clamp(25px, 3vw, 34px); font-weight: 850; line-height: 1.12; }
#wg-consent-settings-title {
	color: #f8fbff !important;
	-webkit-text-fill-color: #f8fbff;
}
.wg-consent-close { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #3b5778; border-radius: 6px; background: #152a45; color: #dbe9f8; font-size: 26px; line-height: 1; }
.wg-consent-close:hover,
.wg-consent-close:focus-visible { border-color: #78b5ff; background: #1a3557; color: #fff; }
.wg-consent-intro { max-width: 660px; margin-top: 16px; }

.wg-consent-options {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.wg-consent-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	min-height: 94px;
	padding: 16px;
	border: 1px solid #294563;
	border-radius: 6px;
	background: #10223a;
	cursor: pointer;
}

.wg-consent-option.is-required { cursor: default; }
.wg-consent-option > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; }
.wg-consent-option > div > span:last-child { display: grid; gap: 4px; }
.wg-consent-option strong { color: #f7fbff; font-size: 15px; font-weight: 820; line-height: 1.3; }
.wg-consent-option small { color: #9eb2cc; font-size: 12px; line-height: 1.5; }
.wg-consent-option-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #315277; border-radius: 5px; color: #73aff8; font-size: 11px; font-weight: 850; }
.wg-consent-required { color: #73d9bb; font-size: 11px; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.wg-consent-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wg-consent-switch { position: relative; display: block; width: 48px; height: 28px; border: 1px solid #44617f; border-radius: 16px; background: #20364f; transition: background-color .18s ease, border-color .18s ease; }
.wg-consent-switch::after { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #c3d1e1; content: ''; transition: transform .18s ease, background-color .18s ease; }
.wg-consent-option input:checked + .wg-consent-switch { border-color: var(--wg-consent-blue); background: var(--wg-consent-blue); }
.wg-consent-option input:checked + .wg-consent-switch::after { transform: translateX(20px); background: #fff; }
.wg-consent-option input:focus-visible + .wg-consent-switch { outline: 3px solid rgba(65, 150, 255, .35); outline-offset: 3px; }

.wg-consent-panel > footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #29425f;
}

html.wg-consent-open { overflow: hidden; }

.varuh-cookie-settings {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
}

.varuh-cookie-settings:hover,
.varuh-cookie-settings:focus-visible {
	color: #76b4ff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.varuh-info-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid #1478ff;
	border-radius: 6px;
	background: #1478ff;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0;
	cursor: pointer;
}

.varuh-info-button:hover,
.varuh-info-button:focus-visible {
	border-color: #3890ff;
	background: #3890ff;
	color: #fff;
}

@media (max-width: 700px) {
	.wg-consent { right: 12px; bottom: 12px; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; width: calc(100vw - 24px); padding: 16px; }
	.wg-consent-mark { width: 44px; height: 44px; padding: 9px; }
	.wg-consent-copy > strong { font-size: 18px; }
	.wg-consent-copy p { font-size: 12px; }
	.wg-consent-actions { grid-template-columns: 1fr 1fr; }
	.wg-consent-actions .is-primary { grid-column: 1 / -1; grid-row: 1; }
	.wg-consent-button { min-height: 44px; font-size: 12px; }
	.wg-consent-modal { padding: 12px; }
	.wg-consent-panel { max-height: calc(100vh - 24px); padding: 20px 16px; }
	.wg-consent-panel h2 { font-size: 25px; }
	.wg-consent-option { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
	.wg-consent-option > div { grid-template-columns: 38px minmax(0, 1fr); }
	.wg-consent-option-icon { width: 38px; height: 38px; }
	.wg-consent-switch { margin-left: 51px; }
	.wg-consent-required { margin-left: 51px; }
	.wg-consent-panel > footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.wg-consent-button,
	.wg-consent-switch,
	.wg-consent-switch::after { transition: none; }
}
