.ccg-root,
.ccg-root * {
	box-sizing: border-box;
}

.ccg-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

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

.ccg-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	padding: 20px 24px;
	background: #fff;
	box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);
	color: #2d2d2d;
	font-family: inherit;
}

.ccg-banner__content {
	width: min(1400px, 100%);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.ccg-banner__message {
	flex: 1 1 auto;
	max-width: 900px;
}

.ccg-banner__message p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.ccg-banner__message a {
	text-decoration: underline;
}

.ccg-banner__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ccg-btn,
.ccg-settings-link,
.ccg-reopen {
	appearance: none;
	border: 0;
	border-radius: 2px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.ccg-btn:hover,
.ccg-settings-link:hover,
.ccg-reopen:hover {
	opacity: 0.9;
}

.ccg-btn:active,
.ccg-settings-link:active,
.ccg-reopen:active {
	transform: translateY(1px);
}

.ccg-btn:focus-visible,
.ccg-settings-link:focus-visible,
.ccg-reopen:focus-visible,
.ccg-modal__close:focus-visible,
.ccg-switch input:focus-visible + .ccg-switch__slider {
	outline: 3px solid rgba(80, 55, 145, 0.3);
	outline-offset: 2px;
}

.ccg-btn {
	min-height: 42px;
	padding: 10px 18px;
}

.ccg-btn--primary {
	background: #9A3E87;
	color: #fff;
}

.ccg-btn--secondary {
	background: #f0edf5;
	color: #9A3E87;
}

.ccg-reopen {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999998;
	padding: 9px 13px;
	background: #9A3E87;
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	font-size: 12px;
}

.ccg-settings-link {
	padding: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
}

.ccg-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

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

.ccg-modal__panel {
	position: relative;
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow: auto;
	background: #fff;
	color: #222;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.ccg-modal__header,
.ccg-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
}

.ccg-modal__header {
	border-bottom: 1px solid #e8e8e8;
}

.ccg-modal__header h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.25;
}

.ccg-modal__close {
	appearance: none;
	border: 0;
	background: transparent;
	color: #555;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	padding: 0 4px;
}

.ccg-modal__body {
	padding: 22px 24px;
}

.ccg-modal__body > p {
	margin-top: 0;
	line-height: 1.6;
}

.ccg-modal__footer {
	border-top: 1px solid #e8e8e8;
	justify-content: flex-end;
}

.ccg-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
	border-top: 1px solid #eee;
}

.ccg-category h3 {
	margin: 0 0 4px;
	font-size: 17px;
}

.ccg-category p {
	margin: 0;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

.ccg-always-active {
	flex: 0 0 auto;
	color: #9A3E87;
	font-size: 13px;
	font-weight: 700;
}

.ccg-category--toggle {
	cursor: pointer;
}

.ccg-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

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

.ccg-switch__slider {
	position: absolute;
	inset: 0;
	background: #b8b8b8;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.ccg-switch__slider::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.ccg-switch input:checked + .ccg-switch__slider {
	background: #9A3E87;
}

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

html.ccg-modal-open {
	overflow: hidden;
}

@media (max-width: 800px) {
	.ccg-banner {
		padding: 18px;
	}

	.ccg-banner__content {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}

	.ccg-banner__actions {
		justify-content: stretch;
	}

	.ccg-banner__actions .ccg-btn {
		flex: 1 1 140px;
	}

	.ccg-modal {
		padding: 12px;
		align-items: flex-end;
	}

	.ccg-modal__panel {
		max-height: calc(100vh - 24px);
		border-radius: 8px 8px 0 0;
	}

	.ccg-category {
		gap: 14px;
	}
}
