

.cookie-consent {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	max-width: 366px;
	margin: 0 auto;
	z-index: var(--z-cookie);
}

.cookie-consent__banner,
.cookie-consent__settings,
.cookie-consent__saved {
	background: var(--ink);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}


.cookie-consent__banner[hidden],
.cookie-consent__settings[hidden],
.cookie-consent__saved[hidden] {
	display: none;
}

.cookie-consent__banner {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cookie-consent__text {
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.55;
	color: rgba(251, 251, 250, 0.85);
}

.cookie-consent__settings-link {
	display: inline;
	color: rgba(251, 251, 250, 0.6);
	text-decoration: underline;
	font: inherit;
}

.cookie-consent__actions {
	display: flex;
	gap: 10px;
}

.cookie-consent__reject,
.cookie-consent__accept {
	flex: 1;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	padding: 12px 10px;
	text-align: center;
	white-space: nowrap;
}

.cookie-consent__reject {
	border: 1px solid rgba(251, 251, 250, 0.3);
	color: rgba(251, 251, 250, 0.85);
}

.cookie-consent__accept {
	background: var(--accent);
	color: var(--paper);
}


.cookie-consent__settings {
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.cookie-consent__heading {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.18;
	color: var(--paper);
}

.cookie-consent__toggles {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cookie-consent__toggle-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.cookie-consent__toggle-label {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.cookie-consent__toggle-name {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--paper);
}

.cookie-consent__toggle-body {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.6;
	color: rgba(251, 251, 250, 0.7);
}


.cookie-consent__switch {
	width: 52px;
	height: 28px;
	flex: none;
	
	background: rgba(251, 251, 250, 0.24);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 3px;
	box-sizing: border-box;
	transition: background 200ms var(--ease);
}

.cookie-consent__switch[aria-checked="true"] {
	background: var(--accent);
	justify-content: flex-end;
}

.cookie-consent__switch--locked {
	background: var(--accent);
	opacity: 0.45;
	justify-content: flex-end;
	cursor: default;
}

.cookie-consent__switch-knob {
	width: 22px;
	height: 22px;
	background: var(--paper);
	flex: none;
}


button.cookie-consent__switch {
	height: 44px;
	padding: 0;
	align-items: center;
}

button.cookie-consent__switch .cookie-consent__switch-knob {
	margin: 0 3px;
}

button.cookie-consent__switch[aria-checked="true"] .cookie-consent__switch-knob {
	margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
	.cookie-consent__switch {
		transition: none;
	}
}

.cookie-consent__settings-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cookie-consent__save,
.cookie-consent__accept-all {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	padding: 13px 22px;
	text-align: center;
}

.cookie-consent__save {
	background: var(--accent);
	color: var(--paper);
}


.cookie-consent__accept-all {
	background: rgba(251, 251, 250, 0.12);
	color: rgba(251, 251, 250, 0.9);
}


.cookie-consent__saved {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cookie-consent__saved-text {
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.6;
	color: rgba(251, 251, 250, 0.85);
}

.cookie-consent__saved-summary {
	color: rgba(251, 251, 250, 0.6);
}

.cookie-consent__change {
	color: var(--accent-pale);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}


@media (min-width: 768px) {
	.cookie-consent {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: 736px;
	}

	.cookie-consent__banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		padding: 16px 20px;
	}

	.cookie-consent__actions {
		flex: none;
	}

	.cookie-consent__reject,
	.cookie-consent__accept {
		flex: none;
		padding: 11px 16px;
	}

	.cookie-consent__settings {
		padding: 28px;
		gap: 24px;
	}

	.cookie-consent__heading {
		font-size: 23px;
	}

	.cookie-consent__toggle-row {
		gap: 28px;
	}

	.cookie-consent__settings-actions {
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}

	.cookie-consent__save,
	.cookie-consent__accept-all {
		flex: none;
	}

	.cookie-consent__saved {
		padding: 22px 24px;
		gap: 24px;
	}
}


@media (min-width: 1280px) {
	.cookie-consent {
		left: 20px;
		right: 20px;
		bottom: 20px;
		max-width: 980px;
	}

	.cookie-consent__banner {
		padding: 14px 20px;
		gap: 24px;
	}

	.cookie-consent__text {
		max-width: 60ch;
	}

	.cookie-consent__reject,
	.cookie-consent__accept {
		padding: 9px 16px;
	}

	.cookie-consent__settings {
		padding: 32px;
		gap: 26px;
	}

	.cookie-consent__heading {
		font-size: 24px;
	}

	.cookie-consent__toggle-row {
		gap: 40px;
	}

	.cookie-consent__saved {
		padding: 22px 28px;
		gap: 32px;
	}
}
