.cgc-banner,
.cgc-modal,
.cgc-settings-button {
	box-sizing: border-box;
	font-family: "DM Sans", Arial, sans-serif;
}

.cgc-banner *,
.cgc-modal *,
.cgc-settings-button * {
	box-sizing: border-box;
}

.cgc-banner {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 22px;
	width: min(920px, calc(100vw - 48px));
	padding: 24px;
	color: #07132c;
	background: #ffffff;
	border: 1px solid rgba(7, 19, 44, 0.12);
	border-radius: 12px;
	box-shadow: 0 24px 70px rgba(7, 19, 44, 0.24);
}

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

.cgc-banner h2,
.cgc-modal h2,
.cgc-modal h3,
.cgc-policy h1,
.cgc-policy h2 {
	margin: 0;
	color: #07132c;
	font-family: "Poppins", "Syne", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
}

.cgc-banner h2 {
	margin-top: 4px;
	font-size: 1.45rem;
}

.cgc-banner p,
.cgc-modal p,
.cgc-policy p {
	margin: 8px 0 0;
	color: #243553;
	font-size: 0.98rem;
	line-height: 1.6;
}

.cgc-kicker {
	margin: 0 !important;
	color: #007f73 !important;
	font-size: 0.78rem !important;
	font-weight: 800;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
}

.cgc-policy-link {
	display: inline-flex;
	margin-top: 10px;
	color: #007f73;
	font-weight: 800;
	text-decoration: none;
}

.cgc-policy-link:hover,
.cgc-policy-link:focus {
	color: #07132c;
	text-decoration: underline;
}

.cgc-banner__actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-width: 168px;
}

.cgc-button,
.cgc-policy .cgc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: 800 0.95rem/1 "DM Sans", Arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cgc-button:hover,
.cgc-button:focus {
	transform: translateY(-1px);
}

.cgc-button--primary {
	color: #07132c;
	background: #dfa936;
	border-color: #dfa936;
}

.cgc-button--primary:hover,
.cgc-button--primary:focus {
	color: #07132c;
	background: #efbd52;
	border-color: #efbd52;
}

.cgc-button--secondary {
	color: #ffffff;
	background: #007f73;
	border-color: #007f73;
}

.cgc-button--secondary:hover,
.cgc-button--secondary:focus {
	color: #ffffff;
	background: #00685e;
	border-color: #00685e;
}

.cgc-button--ghost {
	color: #07132c;
	background: #ffffff;
	border-color: rgba(7, 19, 44, 0.2);
}

.cgc-button--ghost:hover,
.cgc-button--ghost:focus {
	color: #07132c;
	background: #f4f7fb;
	border-color: rgba(7, 19, 44, 0.34);
}

.cgc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.cgc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 19, 44, 0.62);
	backdrop-filter: blur(3px);
}

.cgc-modal__panel {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(780px, calc(100vh - 48px));
	overflow: auto;
	padding: 26px;
	color: #07132c;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 26px 90px rgba(7, 19, 44, 0.36);
}

.cgc-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.cgc-modal__header h2 {
	margin-top: 4px;
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.cgc-icon-button {
	display: inline-grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	color: #07132c;
	background: #f4f7fb;
	border: 1px solid rgba(7, 19, 44, 0.12);
	border-radius: 50%;
	font-size: 1.1rem;
	font-weight: 800;
	cursor: pointer;
}

.cgc-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 12px 0;
	padding: 16px;
	background: #f8fafc;
	border: 1px solid rgba(7, 19, 44, 0.12);
	border-radius: 10px;
	cursor: pointer;
}

.cgc-category--locked {
	cursor: default;
}

.cgc-category h3,
.cgc-category strong {
	display: block;
	color: #07132c;
	font-size: 1rem;
	font-style: normal;
	font-weight: 900;
}

.cgc-category p,
.cgc-category em {
	display: block;
	margin-top: 4px;
	color: #52627a;
	font-size: 0.92rem;
	font-style: normal;
	line-height: 1.45;
}

.cgc-lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 92px;
	padding: 8px 10px;
	color: #007f73;
	background: rgba(0, 127, 115, 0.1);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 900;
	white-space: nowrap;
}

.cgc-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.cgc-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.cgc-switch span {
	position: relative;
	display: block;
	width: 54px;
	height: 30px;
	background: #cbd5e1;
	border-radius: 999px;
	transition: background-color 0.18s ease;
}

.cgc-switch span::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 22px;
	height: 22px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(7, 19, 44, 0.25);
	transition: transform 0.18s ease;
}

.cgc-switch input:checked + span {
	background: #007f73;
}

.cgc-switch input:focus + span {
	outline: 3px solid rgba(223, 169, 54, 0.45);
	outline-offset: 2px;
}

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

.cgc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
}

.cgc-feedback {
	min-height: 24px;
	color: #007f73 !important;
	font-weight: 800;
}

.cgc-settings-button {
	position: fixed;
	right: 20px;
	bottom: 96px;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 74px;
	min-height: 40px;
	padding: 10px 13px;
	color: #07132c;
	background: #dfa936;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 34px rgba(7, 19, 44, 0.24);
	font-size: 0.78rem;
	font-weight: 900;
	cursor: pointer;
}

.cgc-policy {
	max-width: 980px;
	margin: 0 auto;
	padding: 48px 20px;
	color: #07132c;
}

.cgc-policy h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
}

.cgc-policy h2 {
	margin-top: 34px;
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.cgc-policy-table-wrap {
	overflow-x: auto;
	margin-top: 16px;
	border: 1px solid rgba(7, 19, 44, 0.12);
	border-radius: 10px;
}

.cgc-policy-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	background: #ffffff;
}

.cgc-policy-table th,
.cgc-policy-table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(7, 19, 44, 0.1);
	text-align: left;
	vertical-align: top;
}

.cgc-policy-table th {
	color: #07132c;
	background: #f4f7fb;
	font-weight: 900;
}

.cgc-policy-table tr:last-child td {
	border-bottom: 0;
}

@media (max-width: 720px) {
	.cgc-banner {
		right: 12px;
		bottom: 12px;
		grid-template-columns: 1fr;
		width: calc(100vw - 24px);
		padding: 18px;
	}

	.cgc-banner__actions {
		display: grid;
		grid-template-columns: 1fr;
		min-width: 0;
	}

	.cgc-modal {
		padding: 12px;
	}

	.cgc-modal__panel {
		max-height: calc(100vh - 24px);
		padding: 18px;
		border-radius: 12px;
	}

	.cgc-category {
		align-items: flex-start;
		padding: 14px;
	}

	.cgc-modal__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.cgc-settings-button {
		right: 14px;
		bottom: 84px;
	}
}
