:root {
	--cs-cookie-navy: #1f204d;
	--cs-cookie-amber: #fdac1a;
	--cs-cookie-teal: #0cc194;
	--cs-cookie-cream: #f9f9f7;
	--cs-cookie-text: #31324f;
	--cs-cookie-muted: #65667c;
}

.cs-cookie-dialog,
.cs-cookie-manage {
	box-sizing: border-box;
	font-family: "DM Sans", Arial, sans-serif !important;
}

.cs-cookie-dialog *,
.cs-cookie-manage * {
	box-sizing: border-box;
}

.cs-cookie-dialog[hidden],
.cs-cookie-manage[hidden],
.cs-cookie-preferences[hidden],
.cs-cookie-dialog__actions[hidden] {
	display: none !important;
}

.cs-cookie-dialog {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 2147483000;
	width: min(610px, calc(100vw - 36px));
	overflow: hidden;
	border: 1px solid rgba(31, 32, 77, 0.12);
	border-radius: 16px;
	background: #fff !important;
	box-shadow: 0 14px 38px rgba(31, 32, 77, 0.16);
	color: var(--cs-cookie-text) !important;
}

.cs-cookie-dialog:focus {
	outline: 0;
}

.cs-cookie-dialog__accent {
	height: 4px;
	background: linear-gradient(90deg, var(--cs-cookie-amber) 0 58%, var(--cs-cookie-teal) 58% 100%);
}

.cs-cookie-dialog__body {
	padding: 20px 22px 22px;
}

.cs-cookie-dialog__eyebrow {
	margin: 0 0 5px;
	color: var(--cs-cookie-teal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.cs-cookie-dialog h2 {
	margin: 0 0 8px;
	color: var(--cs-cookie-navy) !important;
	font-family: "DM Sans", Arial, sans-serif !important;
	font-size: clamp(22px, 2.5vw, 27px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.cs-cookie-dialog p {
	margin: 0;
	color: var(--cs-cookie-muted) !important;
	font-family: "DM Sans", Arial, sans-serif !important;
	font-size: 14px;
	line-height: 1.55;
}

.cs-cookie-dialog__privacy {
	display: inline-flex;
	margin-top: 10px;
	color: var(--cs-cookie-navy);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--cs-cookie-amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.cs-cookie-dialog__privacy:hover,
.cs-cookie-dialog__privacy:focus-visible {
	color: #3e3ff0;
}

.cs-cookie-dialog__actions {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.cs-cookie-dialog__actions [data-cs-cookie-accept] {
	grid-column: 1;
	justify-self: start;
}

.cs-cookie-dialog__actions [data-cs-cookie-customize] {
	grid-column: 2;
	justify-self: center;
}

.cs-cookie-dialog__actions [data-cs-cookie-reject] {
	grid-column: 3;
	justify-self: end;
}

.cs-cookie-dialog__actions--preferences {
	grid-template-columns: auto 1fr;
}

.cs-cookie-button,
.cs-cookie-manage {
	min-height: 42px;
	border: 1px solid var(--cs-cookie-navy) !important;
	border-radius: 10px;
	font-family: "DM Sans", Arial, sans-serif !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.cs-cookie-button {
	padding: 10px 14px;
}

.cs-cookie-button--primary {
	background: var(--cs-cookie-navy) !important;
	color: #fff !important;
}

.cs-cookie-button--accept {
	border-color: var(--cs-cookie-amber) !important;
	background: var(--cs-cookie-amber) !important;
	box-shadow: 0 7px 18px rgba(253, 172, 26, 0.28);
	color: var(--cs-cookie-navy) !important;
	font-size: 14px;
}

.cs-cookie-button--secondary {
	background: #fff !important;
	color: var(--cs-cookie-navy) !important;
}

.cs-cookie-button--tertiary {
	min-height: auto;
	padding: 8px 6px;
	border-color: transparent !important;
	background: transparent !important;
	color: var(--cs-cookie-muted) !important;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cs-cookie-button:hover,
.cs-cookie-manage:hover {
	transform: translateY(-1px);
	box-shadow: 0 7px 18px rgba(31, 32, 77, 0.18);
}

.cs-cookie-button--primary:hover {
	background: #2b2c65 !important;
}

.cs-cookie-button--accept:hover {
	background: #ffb92f !important;
	box-shadow: 0 9px 22px rgba(253, 172, 26, 0.38);
}

.cs-cookie-button--tertiary:hover {
	box-shadow: none;
	color: var(--cs-cookie-navy) !important;
}

.cs-cookie-button:focus-visible,
.cs-cookie-manage:focus-visible,
.cs-cookie-switch input:focus-visible + span {
	outline: 2px solid rgba(31, 32, 77, 0.5);
	outline-offset: 2px;
}

.cs-cookie-preferences {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.cs-cookie-preference {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 68px;
	padding: 12px 14px;
	border: 1px solid rgba(31, 32, 77, 0.14);
	border-radius: 14px;
	background: var(--cs-cookie-cream);
}

label.cs-cookie-preference {
	cursor: pointer;
}

.cs-cookie-preference strong,
.cs-cookie-preference > span:first-child {
	display: block;
}

.cs-cookie-preference strong {
	margin-bottom: 3px;
	color: var(--cs-cookie-navy);
	font-size: 15px;
	font-weight: 800;
}

.cs-cookie-preference span span,
.cs-cookie-preference > div > span {
	display: block;
	color: var(--cs-cookie-muted);
	font-size: 13px;
	line-height: 1.45;
}

.cs-cookie-required {
	flex: 0 0 auto;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(12, 193, 148, 0.13);
	color: #087d61 !important;
	font-size: 11px !important;
	font-weight: 800;
	white-space: nowrap;
}

.cs-cookie-switch {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

.cs-cookie-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.cs-cookie-switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #b7b8c4;
	transition: background-color 150ms ease;
}

.cs-cookie-switch span::after {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(31, 32, 77, 0.25);
	content: "";
	transition: transform 150ms ease;
}

.cs-cookie-switch input:checked + span {
	background: var(--cs-cookie-teal);
}

.cs-cookie-switch input:checked + span::after {
	transform: translateX(20px);
}

.cs-cookie-manage {
	position: static;
	z-index: auto;
	display: inline-flex;
	align-items: center;
	min-height: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	appearance: none;
	background: transparent !important;
	box-shadow: none;
	color: inherit !important;
	font: inherit !important;
	text-align: left;
}

.cs-cookie-manage__icon {
	display: none;
	}

.cs-cookie-manage:hover {
	transform: none;
	box-shadow: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	}

.cs-cookie-manage:focus-visible {
	border-radius: 2px;
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 680px) {
	.cs-cookie-dialog {
		right: 10px;
		bottom: 10px;
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
		overflow-y: auto;
		border-radius: 14px;
	}

	.cs-cookie-dialog__body {
		padding: 17px;
	}

	.cs-cookie-dialog__actions,
	.cs-cookie-dialog__actions--preferences {
		grid-template-columns: 1fr;
	}

	.cs-cookie-button {
		width: 100%;
	}

	.cs-cookie-dialog__actions [data-cs-cookie-accept] {
		grid-column: 1;
		order: 1;
	}

	.cs-cookie-dialog__actions [data-cs-cookie-customize] {
		grid-column: 1;
		order: 2;
		justify-self: stretch;
	}

	.cs-cookie-dialog__actions [data-cs-cookie-reject] {
		grid-column: 1;
		order: 3;
		justify-self: center;
	}

	.cs-cookie-preference {
		gap: 12px;
		padding: 12px;
	}

	.cs-cookie-required {
		white-space: normal;
		text-align: center;
	}

}

@media (prefers-reduced-motion: reduce) {
	.cs-cookie-button,
	.cs-cookie-manage,
	.cs-cookie-switch span,
	.cs-cookie-switch span::after {
		transition: none;
	}
}
