.dst-cookie {
	--dst-cookie-ink: #4f0c16;
	--dst-cookie-wine: #7c1624;
	--dst-cookie-wine-dark: #64101c;
	--dst-cookie-cream: #f8f4f0;
	--dst-cookie-line: rgba(124, 22, 36, 0.24);
	--dst-cookie-muted: #715b5e;
	position: relative;
	z-index: 2147483100;
}

.dst-cookie__card {
	position: fixed;
	z-index: 2147483100;
	font-family: Gopher, "Trebuchet MS", sans-serif;
}

.dst-cookie__card {
	left: 50%;
	bottom: 16px;
	width: min(760px, calc(100vw - 28px));
	padding: 10px 11px 10px 16px;
	color: var(--dst-cookie-ink);
	background:
		linear-gradient(rgba(248, 244, 240, 0.97), rgba(248, 244, 240, 0.97)),
		url("../img/grain-overlay.png") repeat 0 0 / 180px 180px;
	border: 1px solid var(--dst-cookie-line);
	border-radius: 999px;
	box-shadow: 0 16px 45px rgba(43, 4, 11, 0.22), 0 2px 8px rgba(43, 4, 11, 0.1);
	transform: translateX(-50%);
}

.dst-cookie__intro,
.dst-cookie__preferences-header {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dst-cookie__eyebrow {
	margin: 0 0 2px;
	color: #a33a49;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.dst-cookie h2 {
	margin: 0;
	color: var(--dst-cookie-ink);
	font-family: Gambetta, Georgia, serif;
	font-size: 20px;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.dst-cookie__copy {
	flex: 1;
	margin: 0;
	color: var(--dst-cookie-muted);
	font-size: 12px;
	line-height: 1.35;
}

.dst-cookie__copy a {
	color: var(--dst-cookie-wine);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.dst-cookie__actions {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	gap: 7px;
}

.dst-cookie__button,
.dst-cookie__back {
	appearance: none;
	border: 0;
	cursor: pointer;
}

.dst-cookie__button {
	min-height: 34px;
	padding: 7px 14px;
	border: 1px solid var(--dst-cookie-wine);
	border-radius: 999px;
	font-family: Gambetta, Georgia, serif;
	font-size: 13px;
	font-weight: 650;
	line-height: 1;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dst-cookie__button:hover {
	transform: translateY(-1px);
}

.dst-cookie__button--primary {
	color: #fff;
	background: var(--dst-cookie-wine);
}

.dst-cookie__button--primary:hover {
	background: var(--dst-cookie-wine-dark);
}

.dst-cookie__button--secondary {
	color: var(--dst-cookie-wine);
	background: transparent;
}

.dst-cookie__button--secondary:hover {
	background: rgba(124, 22, 36, 0.07);
}

.dst-cookie__preferences-header {
	align-items: flex-start;
}

.dst-cookie__preferences {
	padding: 7px 5px 5px;
}

.dst-cookie__card.is-customizing {
	width: min(500px, calc(100vw - 28px));
	padding: 13px;
	border-radius: 18px;
}

.dst-cookie__back {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	min-width: 34px;
	height: 34px;
	min-height: 34px;
	margin-top: 1px;
	padding: 0;
	color: var(--dst-cookie-wine);
	background: #f3e5e7;
	border: 1px solid rgba(124, 22, 36, 0.2);
	border-radius: 50%;
	box-sizing: border-box;
	place-items: center;
	font-size: 19px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	text-align: center;
	text-indent: 0;
	transform: none;
}

.dst-cookie__categories {
	display: grid;
	gap: 7px;
	margin: 14px 0;
}

.dst-cookie__category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 53px;
	padding: 9px 11px;
	background: rgba(255, 255, 255, 0.52);
	border: 1px solid rgba(124, 22, 36, 0.12);
	border-radius: 12px;
}

label.dst-cookie__category {
	cursor: pointer;
}

.dst-cookie__category strong,
.dst-cookie__category span {
	display: block;
}

.dst-cookie__category strong {
	margin-bottom: 2px;
	color: var(--dst-cookie-ink);
	font-size: 13px;
	line-height: 1.2;
}

.dst-cookie__category strong + span {
	color: var(--dst-cookie-muted);
	font-size: 11px;
	line-height: 1.3;
}

.dst-cookie__always {
	flex: 0 0 auto;
	color: #9b4350;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dst-cookie__switch {
	position: relative;
	display: block;
	flex: 0 0 39px;
	width: 39px;
	height: 23px;
}

.dst-cookie__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.dst-cookie__switch > span {
	position: absolute;
	inset: 0;
	background: #d8c8c9;
	border-radius: 999px;
	transition: background-color 160ms ease;
}

.dst-cookie__switch > span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(43, 4, 11, 0.25);
	transition: transform 160ms ease;
}

.dst-cookie__switch input:checked + span {
	background: var(--dst-cookie-wine);
}

.dst-cookie__switch input:checked + span::after {
	transform: translateX(16px);
}

.dst-cookie__save {
	width: 100%;
}

.dst-cookie__button:focus-visible,
.dst-cookie__back:focus-visible,
.dst-cookie__switch input:focus-visible + span,
.dst-cookie__copy a:focus-visible {
	outline: 3px solid #e04a2f;
	outline-offset: 3px;
}

.dst-cookie [hidden] {
	display: none !important;
}

@media (max-width: 520px) {
	.dst-cookie__card {
		bottom: 10px;
		width: calc(100vw - 24px);
		padding: 11px 12px;
		border-radius: 15px;
	}

	.dst-cookie__intro {
		align-items: stretch;
		flex-direction: column;
		gap: 9px;
	}

	.dst-cookie__actions {
		justify-content: stretch;
		gap: 7px;
	}

	.dst-cookie__button {
		flex: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dst-cookie__button,
	.dst-cookie__switch > span,
	.dst-cookie__switch > span::after {
		transition: none;
	}
}

@media print {
	.dst-cookie {
		display: none !important;
	}
}
