/* GoConsent front end. Accent comes from settings via --gc-accent. */

:root {
	--gc-accent: #0e7a52;
	--gc-ink: #111;
	--gc-text: #222;
	--gc-muted: #555;
	--gc-surface: #fff;
	--gc-line: #e6e6e6;
	--gc-radius: 16px;
	--gc-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gc-banner,
.gc-banner *,
.gc-dialog,
.gc-dialog *,
.gc-embed,
.gc-embed * {
	box-sizing: border-box;
}

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

/* Banner */
.gc-banner {
	position: fixed;
	z-index: 2147483000;
	bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	padding: 18px 20px;
	background: var(--gc-surface);
	color: var(--gc-text);
	border-radius: var(--gc-radius);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
	font: 15px/1.5 var(--gc-font);
	animation: gc-up .25s ease-out;
}

.gc-banner[hidden] {
	display: none;
}

.gc-banner--center {
	left: 50%;
	transform: translateX(-50%);
	width: min(880px, calc(100% - 32px));
}

.gc-banner--left {
	left: 20px;
	width: min(440px, calc(100% - 40px));
}

.gc-banner--bar {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0;
	justify-content: center;
}

.gc-banner-text {
	flex: 1 1 320px;
	margin: 0;
	color: var(--gc-text);
}

.gc-banner a,
.gc-link {
	color: var(--gc-accent);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: normal;
	background: none;
	border: 0;
	cursor: pointer;
}

.gc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

/* Accept and Reject share one style on purpose (equal prominence). */
.gc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--gc-accent);
	border-radius: 10px;
	background: var(--gc-accent);
	color: #fff;
	font: 700 15px/1.2 var(--gc-font);
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	transition: filter .15s;
}

.gc-btn:hover {
	filter: brightness(.88);
}

.gc-btn--alt {
	background: #fff;
	color: var(--gc-accent);
}

.gc-banner :focus-visible,
.gc-dialog :focus-visible,
.gc-embed :focus-visible,
.gc-footer-link a:focus-visible {
	outline: 3px solid var(--gc-ink);
	outline-offset: 2px;
}

/* Dialogs */
.gc-dialog {
	width: 92%;
	max-width: 580px;
	max-height: 86vh;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: var(--gc-surface);
	color: var(--gc-text);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow-y: auto;
	font: 15.5px/1.55 var(--gc-font);
}

.gc-dialog:not([open]) {
	display: none;
}

.gc-dialog::backdrop {
	background: rgba(0, 0, 0, .45);
}

.gc-dialog-head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 24px;
	background: var(--gc-surface);
	border-bottom: 1px solid var(--gc-line);
}

.gc-dialog h2 {
	margin: 0;
	font: 800 20px/1.25 var(--gc-font);
	color: var(--gc-ink);
}

.gc-dialog h3 {
	margin: 18px 0 4px;
	font: 700 16px/1.3 var(--gc-font);
	color: var(--gc-ink);
}

.gc-dialog-body {
	padding: 10px 24px 24px;
}

.gc-dialog p,
.gc-dialog li {
	color: var(--gc-text);
}

.gc-dialog a {
	color: var(--gc-accent);
	font-weight: 700;
}

.gc-close {
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 9px;
	background: var(--gc-ink);
	color: #fff;
	font: 700 14px var(--gc-font);
	cursor: pointer;
}

.gc-options {
	margin: 12px 0;
	padding: 0;
	border: 0;
}

.gc-option {
	display: grid;
	grid-template-columns: 24px 1fr;
	column-gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--gc-line);
}

.gc-option input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--gc-accent);
}

.gc-option label {
	color: var(--gc-ink);
	cursor: pointer;
}

.gc-help {
	grid-column: 2;
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--gc-muted) !important;
}

.gc-tag {
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f0f0f0;
	font-size: 12px;
	font-weight: 500;
	color: #333;
}

.gc-gpc {
	padding: 10px 14px;
	border-radius: 10px;
	background: #eef6f2;
}

.gc-foot {
	margin: 16px 0 0;
	font-size: 14px;
}

/* Footer link */
.gc-footer-link {
	padding: 12px 16px;
	text-align: center;
	font: 14px var(--gc-font);
}

.gc-footer-link a {
	color: inherit;
	text-decoration: underline;
}

/* Click-to-load embeds */
.gc-embed {
	position: relative;
	width: 100%;
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1d2228;
	color: #fff;
	border-radius: 12px;
	overflow: hidden;
	font: 15px/1.45 var(--gc-font);
}

.gc-embed.is-loaded {
	display: block;
	background: none;
}

.gc-embed-inner {
	max-width: 460px;
	padding: 20px;
	text-align: center;
}

.gc-embed-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.gc-embed-text {
	margin: 0 0 14px;
	font-size: 14px;
	color: #d7dde3;
}

.gc-embed-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.gc-embed .gc-btn {
	background: #fff;
	border-color: #fff;
	color: #111;
}

.gc-embed-open {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}

@keyframes gc-up {
	from { opacity: 0; translate: 0 24px; }
	to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.gc-banner {
		animation: none;
	}
}

@media (max-width: 640px) {
	.gc-banner--center,
	.gc-banner--left {
		left: 0;
		right: 0;
		bottom: 0;
		transform: none;
		width: 100%;
		border-radius: 16px 16px 0 0;
	}
	.gc-actions .gc-btn {
		flex: 1 1 40%;
	}
	.gc-actions .gc-link {
		flex: 1 1 100%;
		text-align: center;
	}
	.gc-dialog-head,
	.gc-dialog-body {
		padding-left: 18px;
		padding-right: 18px;
	}
}
