#fgcc-banner,
#fgcc-modal,
#fgcc-overlay,
#fgcc-settings-link,
.fgcc-debug {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#fgcc-banner *,
#fgcc-modal * {
	box-sizing: border-box;
}

.fgcc-banner[hidden],
.fgcc-modal[hidden],
.fgcc-overlay[hidden],
.fgcc-settings-link[hidden] {
	display: none !important;
}

.fgcc-banner {
	position: fixed;
	z-index: 999999;
	background: rgba(255,255,255,.98);
	border: 1px solid rgba(0,0,0,.08);
	color: #111;
	box-shadow: 0 14px 42px rgba(0,0,0,.13);
	backdrop-filter: blur(12px);
}

.fgcc-bottom {
	left: 50%;
	bottom: 16px;
	width: min(1120px, calc(100% - 32px));
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 13px 16px;
	border-radius: 14px;
}

.fgcc-center {
	left: 50%;
	top: 50%;
	width: min(560px, calc(100% - 36px));
	transform: translate(-50%, -50%);
	padding: 28px;
	border-radius: 18px;
}

.fgcc-center .fgcc-banner__text {
	display: block;
	margin-bottom: 22px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ececef;
}

.fgcc-center .fgcc-banner__text span,
.fgcc-center .fgcc-banner__text a {
	display: block;
}

.fgcc-center .fgcc-banner__text a {
	margin-top: 12px;
}

.fgcc-center .fgcc-banner__actions {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
}

.fgcc-banner__text {
	min-width: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #222;
}

.fgcc-banner__text a {
	margin-left: 8px;
	color: #555;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.fgcc-banner__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.fgcc-btn {
	appearance: none;
	border: 1px solid #d8d8dc;
	background: #fff;
	color: #111;
	border-radius: 999px;
	padding: 10px 15px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.fgcc-btn:hover {
	transform: translateY(-1px);
	background: #f7f7f8;
	border-color: #c8c8cc;
}

.fgcc-btn--primary {
	background: #111;
	color: #fff;
	border-color: #111;
}

.fgcc-btn--primary:hover {
	background: #222;
	border-color: #222;
}

.fgcc-btn--text {
	background: transparent;
	border-color: transparent;
}

.fgcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(18,18,18,.28);
	backdrop-filter: blur(1px);
}

.fgcc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(0,0,0,.24);
}

.fgcc-modal__panel {
	position: relative;
	width: min(480px, 100%);
	background: #fff;
	border: 1px solid rgba(0,0,0,.09);
	border-radius: 20px;
	box-shadow: 0 24px 70px rgba(0,0,0,.22);
	padding: 26px;
	color: #111;
}

.fgcc-modal__panel h2 {
	margin: 0 0 18px;
	font-size: 22px;
}

.fgcc-close {
	position: absolute;
	top: 13px;
	right: 15px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.fgcc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 0;
	border-top: 1px solid #ececef;
}

.fgcc-row small {
	display: block;
	margin-top: 2px;
	color: #777;
}

.fgcc-row input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: #111;
	cursor: pointer;
}

.fgcc-pill {
	color: #777;
	font-size: 12px;
}

.fgcc-save {
	width: 100%;
	margin-top: 16px;
	padding: 13px 18px;
}

.fgcc-settings-link {
	position: fixed;
	right: 14px;
	bottom: 10px;
	z-index: 99990;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fgcc-debug {
	position: fixed;
	left: 10px;
	bottom: 10px;
	z-index: 1000002;
	max-width: 420px;
	padding: 8px 10px;
	background: #111;
	color: #fff;
	border-radius: 8px;
	font-size: 11px;
}

.fgcc-debug strong {
	margin-right: 8px;
}

body.fgcc-modal-open {
	overflow: hidden;
}

@media (max-width: 760px) {
	.fgcc-bottom {
		align-items: stretch;
		flex-direction: column;
		padding: 15px;
	}

	.fgcc-banner__text a {
		margin-left: 0;
		display: inline-block;
		margin-top: 5px;
	}

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

	.fgcc-banner__actions .fgcc-btn--text {
		grid-column: 1 / -1;
		order: 3;
	}

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

	.fgcc-settings-link {
		right: 8px;
		bottom: 6px;
	}
}


.fgcc-legal-content {
	max-width: 760px;
	margin: 0 auto;
}

.fgcc-legal-content h1 {
	margin-bottom: 6px;
}

.fgcc-legal-content h2 {
	margin-top: 30px;
	margin-bottom: 8px;
	font-size: 1.35em;
}

.fgcc-legal-content p {
	line-height: 1.7;
}

.fgcc-legal-updated {
	color: #777;
	font-size: .92em;
}

.fgcc-inline-settings {
	appearance: none;
	border: 1px solid #d8d8dc;
	background: #fff;
	color: #111;
	border-radius: 999px;
	padding: 10px 15px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 760px) {
	.fgcc-bottom .fgcc-banner__actions {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1.15fr);
		gap: 6px;
		width: 100%;
	}

	.fgcc-bottom .fgcc-banner__actions .fgcc-btn {
		width: 100%;
		min-width: 0;
		padding: 9px 7px;
		font-size: 12px;
		white-space: nowrap;
	}

	.fgcc-bottom #fgcc-settings-button {
		grid-column: auto;
		order: initial;
		font-size: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.fgcc-bottom #fgcc-settings-button::before {
		content: "⚙";
		font-size: 17px;
		line-height: 1;
	}
}

.fgcc-warning{display:block;margin-top:6px;color:#9a6700;font-size:12px}
