.cc-banner,
.cc-dialog,
.cc-backdrop,
.cc-footer-link,
.cc-yt-inline-facade {
	font-family: "Work Sans", sans-serif;
	box-sizing: border-box;
}

.cc-banner *,
.cc-dialog *,
.cc-yt-inline-facade * {
	box-sizing: border-box;
}

.cc-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(27, 25, 33, 0.55);
	z-index: 100000;
}

.cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	background: #fff;
	color: #1b1921;
	border-top: 1px solid #d5dede;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
	padding: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.cc-banner-content {
	flex: 1 1 420px;
	min-width: 260px;
}

.cc-banner-title {
	font-family: "Space Grotesk", "Work Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 500;
	margin: 0 0 0.4rem;
	color: #1b1921;
}

.cc-banner-text {
	font-size: 0.9375rem;
	line-height: 1.56;
	color: #223035;
	margin: 0 0 0.5rem;
}

.cc-banner-links {
	font-size: 0.8125rem;
	margin: 0;
}

.cc-banner-links a {
	color: #7c8d91;
	text-decoration: underline;
}

.cc-banner-links a:hover,
.cc-banner-links a:focus-visible {
	color: #1b1921;
}

.cc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	flex: 0 0 auto;
}

.cc-btn {
	font-family: "Work Sans", sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1;
	padding: 0.85rem 1.5rem;
	border-radius: 3px;
	border: 1px solid #000;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 200ms, color 200ms;
}

.cc-btn-primary {
	background: #000;
	color: #fff;
}

.cc-btn-primary:hover,
.cc-btn-primary:focus-visible {
	background: #223035;
	border-color: #223035;
}

.cc-btn-outline {
	background: transparent;
	color: #000;
}

.cc-btn-outline:hover,
.cc-btn-outline:focus-visible {
	background: #efefef;
}

.cc-btn:focus-visible,
.cc-icon-btn:focus-visible,
.cc-toggle-input:focus-visible + .cc-switch-slider,
.cc-details-toggle:focus-visible,
.cc-footer-link:focus-visible,
.cc-yt-inline-facade:focus-visible {
	outline: 2px solid #3366ff;
	outline-offset: 2px;
}

.cc-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100002;
	background: #fff;
	color: #1b1921;
	border-radius: 6px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
	width: min(640px, calc(100vw - 2rem));
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	padding: 1.75rem;
}

.cc-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.cc-dialog-title {
	font-family: "Space Grotesk", "Work Sans", sans-serif;
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0 0 0.75rem;
}

.cc-dialog-intro {
	font-size: 0.9375rem;
	line-height: 1.56;
	color: #223035;
	margin: 0 0 1.25rem;
}

.cc-icon-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #7c8d91;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 3px;
}

.cc-icon-btn:hover {
	color: #1b1921;
	background: #efefef;
}

.cc-category-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.cc-category {
	border: 1px solid #d5dede;
	border-radius: 4px;
	padding: 1rem 1.125rem;
}

.cc-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.cc-category-heading {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.cc-category-title {
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
}

.cc-always-active {
	font-size: 0.75rem;
	color: #7c8d91;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cc-category-description {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #223035;
	margin: 0.5rem 0 0.75rem;
}

.cc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex: 0 0 auto;
}

.cc-switch-slider {
	position: absolute;
	inset: 0;
	background: #d5dede;
	border-radius: 999px;
	transition: background-color 150ms;
}

.cc-switch-slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 150ms;
}

.cc-toggle-input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.cc-toggle-input:checked + .cc-switch-slider {
	background: #000;
}

.cc-toggle-input:checked + .cc-switch-slider::before {
	transform: translateX(20px);
}

.cc-toggle-input:disabled + .cc-switch-slider {
	background: #000;
	opacity: 0.4;
	cursor: not-allowed;
}

.cc-details-toggle {
	background: none;
	border: none;
	color: #7c8d91;
	font-size: 0.8125rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.cc-details-toggle:hover {
	color: #1b1921;
}

.cc-details {
	margin-top: 0.75rem;
	overflow-x: auto;
}

.cc-service-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
}

.cc-service-table th,
.cc-service-table td {
	text-align: left;
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid #efefef;
	vertical-align: top;
}

.cc-service-table th {
	color: #7c8d91;
	font-weight: 500;
	white-space: nowrap;
}

.cc-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.cc-dialog-actions .cc-btn {
	flex: 1 1 auto;
}

.cc-footer-link,
.cc-footer-link-wrap {
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
}

.cc-footer-link-floating {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	background: #fff;
	border: 1px solid #d5dede;
	border-radius: 3px;
	padding: 0.4rem 0.75rem;
	font-size: 0.75rem;
	z-index: 9000;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.cc-yt-dialog {
	padding: 1.25rem;
}

.cc-yt-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.cc-yt-frame img,
.cc-yt-frame iframe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	display: block;
}

.cc-yt-thumb {
	filter: brightness(0.75);
}

.cc-yt-inline-facade {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
}

.cc-yt-inline-facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.75);
	display: block;
}

.cc-yt-inline-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	color: #000;
	padding: 0.75rem 1.25rem;
	border-radius: 3px;
	font-size: 0.875rem;
	font-weight: 500;
}

@media (max-width: 700px) {
	.cc-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 1.25rem;
	}

	.cc-banner-actions {
		flex-direction: column;
	}

	.cc-banner-actions .cc-btn {
		width: 100%;
	}

	.cc-dialog-actions {
		flex-direction: column;
	}
}

@media (prefers-color-scheme: dark) {
	.cc-banner,
	.cc-dialog {
		background: #1b1921;
		color: #efefef;
		border-color: #333;
	}

	.cc-banner-text,
	.cc-dialog-intro,
	.cc-category-description {
		color: #c2cbcd;
	}

	.cc-btn-primary {
		background: #efefef;
		color: #1b1921;
		border-color: #efefef;
	}

	.cc-btn-outline {
		border-color: #efefef;
		color: #efefef;
	}

	.cc-btn-outline:hover,
	.cc-btn-outline:focus-visible {
		background: #2a2830;
	}

	.cc-category {
		border-color: #333;
	}

	.cc-service-table th,
	.cc-service-table td {
		border-color: #333;
	}
}
