.dcc-banner,
.dcc-modal {
	--dcc-ink: #181818;
	--dcc-accent: #12627d;
	--dcc-border: #d5d5d5;
	--dcc-surface: #f4f4f4;
	font-family: "Roboto Condensed", Arial, sans-serif;
}

.dcc-banner[hidden],
.dcc-modal[hidden] {
	display: none !important;
}

.dcc-banner {
	position: fixed;
	z-index: 999990;
	bottom: 20px;
	left: 20px;
	width: clamp(320px, 31vw, 430px);
	max-width: calc(100vw - 40px);
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 3px;
	background: var(--dcc-ink);
	box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
	color: #fff;
	padding: 19px;
}

.dcc-banner__close {
	position: absolute;
	top: 7px;
	right: 8px;
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .78);
	cursor: pointer;
	font: inherit;
	font-size: 22px;
	line-height: 1;
}

.dcc-banner__close:hover,
.dcc-banner__close:focus {
	color: #fff;
}

.dcc-banner h2,
.dcc-modal h2 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
}

.dcc-banner p {
	margin: 0;
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.5;
}

.dcc-policy-link {
	display: inline-block;
	margin-top: 12px;
	color: #fff;
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dcc-policy-link:hover,
.dcc-policy-link:focus {
	color: #fff;
}

.dcc-banner__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	margin-top: 16px;
}

.dcc-button,
.dcc-open-settings {
	appearance: none;
	box-sizing: border-box;
	border-radius: 2px;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.dcc-button {
	min-height: 36px;
	border: 1px solid transparent;
	padding: 8px 12px;
}

.dcc-button--primary {
	border-color: var(--dcc-accent);
	background: var(--dcc-accent);
	color: #fff;
}

.dcc-button--primary:hover,
.dcc-button--primary:focus {
	border-color: #174f63;
	background: #174f63;
	color: #fff;
}

.dcc-button--outline {
	border-color: rgba(255, 255, 255, .65);
	background: transparent;
	color: #fff;
}

.dcc-banner .dcc-button--primary,
.dcc-banner .dcc-button--outline {
	border-color: rgba(255, 255, 255, .75);
	background: transparent;
	color: #fff;
}

.dcc-banner .dcc-button--primary:hover,
.dcc-banner .dcc-button--primary:focus,
.dcc-banner .dcc-button--outline:hover,
.dcc-banner .dcc-button--outline:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, .07);
	color: #fff;
}

.dcc-button--outline:hover,
.dcc-button--outline:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.dcc-button--link {
	grid-column: 1 / -1;
	min-height: auto;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .82);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dcc-button--link:hover,
.dcc-button--link:focus {
	color: #fff;
}

.dcc-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
}

.dcc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .58);
}

.dcc-modal__panel {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(590px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
	color: var(--dcc-ink);
	padding: 30px;
}

.dcc-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--dcc-ink);
	cursor: pointer;
	font: inherit;
	font-size: 26px;
	line-height: 1;
}

.dcc-modal__intro {
	margin: 0 42px 22px 0;
	color: #444;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
}

.dcc-category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 20px;
	border-top: 1px solid var(--dcc-border);
	padding: 18px 0;
}

.dcc-category strong {
	display: block;
	font-size: 17px;
	line-height: 1.25;
}

.dcc-category p {
	margin: 6px 0 0;
	color: #444;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
}

.dcc-switch {
	position: relative;
	display: inline-flex;
	margin-top: 2px;
}

.dcc-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dcc-switch > span:last-child {
	position: relative;
	display: block;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #c7c7c7;
	cursor: pointer;
	transition: background-color .15s ease;
}

.dcc-switch > span:last-child::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	content: "";
	transition: transform .15s ease;
}

.dcc-switch input:checked + span {
	background: var(--dcc-accent);
}

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

.dcc-switch input:focus-visible + span {
	outline: 2px solid var(--dcc-ink);
	outline-offset: 3px;
}

.dcc-switch--locked > span:last-child {
	cursor: not-allowed;
	opacity: .7;
}

.dcc-modal__confirm {
	width: 100%;
	margin-top: 6px;
}

.dcc-modal-open {
	overflow: hidden;
}

.dcc-policy-settings {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--dcc-border);
}

.dcc-open-settings {
	border: 1px solid var(--dcc-ink);
	background: #fff;
	color: var(--dcc-ink);
	padding: 10px 16px;
}

.dcc-open-settings:hover,
.dcc-open-settings:focus {
	background: var(--dcc-surface);
	color: var(--dcc-ink);
}

@media (max-width: 600px) {
	.dcc-banner {
		bottom: 12px;
		left: 12px;
		width: calc(100vw - 24px);
		max-width: none;
		padding: 18px;
	}

	.dcc-banner__actions {
		grid-template-columns: 1fr;
	}

	.dcc-button--link {
		grid-column: auto;
	}

	.dcc-modal__panel {
		width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcc-button,
	.dcc-switch > span:last-child,
	.dcc-switch > span:last-child::after {
		transition: none;
	}
}
