:root {
	--cp-consent-navy: #071e51;
	--cp-consent-blue: #376de8;
	--cp-consent-muted: #647291;
	--cp-consent-line: rgba(7, 30, 81, 0.12);
}

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

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

.cp-consent {
	position: relative;
	z-index: 2147483000;
	font-family: "Inter", sans-serif;
	color: var(--cp-consent-navy);
}

.cp-consent__banner {
	position: fixed;
	right: 24px;
	bottom: 24px;
	left: 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 22px 70px rgba(5, 18, 45, 0.22);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

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

.cp-consent__eyebrow {
	display: block;
	margin-bottom: 7px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cp-consent-blue);
}

.cp-consent h2,
.cp-consent h3,
.cp-consent p {
	margin: 0;
}

.cp-consent__copy h2,
.cp-consent__panel-head h2 {
	font-family: "Manrope", sans-serif;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.025em;
}

.cp-consent__copy p {
	margin-top: 9px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cp-consent-muted);
}

.cp-consent__copy a {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--cp-consent-navy);
	text-underline-offset: 3px;
}

.cp-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	gap: 9px;
	min-width: 344px;
}

.cp-consent__button {
	min-height: 44px;
	padding: 11px 18px;
	border: 1px solid var(--cp-consent-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cp-consent-navy);
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cp-consent__button:hover {
	transform: translateY(-1px);
	border-color: rgba(55, 109, 232, 0.5);
}

.cp-consent__button--primary {
	border-color: var(--cp-consent-blue);
	background: var(--cp-consent-blue);
	color: #fff;
}

.cp-consent__button--text {
	grid-column: 1 / -1;
	min-height: auto;
	padding: 5px;
	border-color: transparent;
	background: transparent;
}

.cp-consent__button:focus-visible,
.cp-consent__close:focus-visible,
.cp-consent__reopen:focus-visible,
.cp-consent__switch input:focus-visible + span {
	outline: 3px solid rgba(55, 109, 232, 0.32);
	outline-offset: 3px;
}

.cp-consent__dialog {
	width: min(680px, calc(100% - 32px));
	max-height: min(780px, calc(100vh - 32px));
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 100px rgba(5, 18, 45, 0.32);
	color: var(--cp-consent-navy);
}

.cp-consent__dialog::backdrop {
	background: rgba(4, 14, 35, 0.7);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.cp-consent__panel {
	padding: 30px;
}

.cp-consent__panel-head {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}

.cp-consent__close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0 0 3px;
	border: 1px solid var(--cp-consent-line);
	border-radius: 50%;
	background: #fff;
	font: 300 27px/1 sans-serif;
	color: var(--cp-consent-navy);
	cursor: pointer;
}

.cp-consent__intro {
	margin-top: 12px !important;
	font-size: 13px;
	line-height: 1.6;
	color: var(--cp-consent-muted);
}

.cp-consent__category {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding: 18px;
	border: 1px solid var(--cp-consent-line);
	border-radius: 16px;
	background: #f8faff;
}

.cp-consent__category h3,
.cp-consent__category strong {
	display: block;
	font: 600 15px/1.3 "Manrope", sans-serif;
}

.cp-consent__category p,
.cp-consent__category small {
	display: block;
	max-width: 470px;
	margin-top: 5px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--cp-consent-muted);
}

.cp-consent__required {
	flex: none;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cp-consent-blue);
}

.cp-consent__switch {
	position: relative;
	display: block;
	flex: 0 0 46px;
	width: 46px;
	height: 26px;
}

.cp-consent__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.cp-consent__switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #c8d0df;
	cursor: pointer;
	transition: background 160ms ease;
}

.cp-consent__switch span::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(5, 18, 45, 0.22);
	content: "";
	transition: transform 160ms ease;
}

.cp-consent__switch input:checked + span {
	background: var(--cp-consent-blue);
}

.cp-consent__switch input:checked + span::after {
	transform: translateX(20px);
}

.cp-consent__panel-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}

.cp-consent__reopen {
	position: fixed;
	right: 16px;
	bottom: 16px;
	padding: 9px 13px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(7, 30, 81, 0.92);
	box-shadow: 0 8px 24px rgba(5, 18, 45, 0.2);
	font: 600 10px/1.2 "Inter", sans-serif;
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
	.cp-consent__banner {
		right: 12px;
		bottom: 12px;
		left: 12px;
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 20px;
		border-radius: 18px;
	}

	.cp-consent__actions {
		grid-template-columns: 1fr;
		min-width: 0;
	}

	.cp-consent__button--text {
		grid-column: auto;
	}

	.cp-consent__panel {
		padding: 22px 18px;
	}

	.cp-consent__category {
		gap: 14px;
		padding: 15px;
	}

	.cp-consent__required {
		max-width: 70px;
		text-align: right;
	}

	.cp-consent__panel-actions {
		flex-direction: column-reverse;
	}

	.cp-consent__panel-actions .cp-consent__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp-consent__button,
	.cp-consent__switch span,
	.cp-consent__switch span::after {
		transition: none;
	}
}
