:root {
	--gcp-bg: #ffffff;
	--gcp-text: #1e1e1e;
	--gcp-accent: #2563eb;
	--gcp-accent-text: #ffffff;
	--gcp-radius: 12px;
	--gcp-shadow: 0 10px 40px rgba( 0, 0, 0, 0.18 );
}

.gcp-banner {
	position: fixed;
	z-index: 999999;
	box-sizing: border-box;
	max-width: 560px;
	width: calc( 100% - 32px );
	background: var( --gcp-bg );
	color: var( --gcp-text );
	border-radius: var( --gcp-radius );
	box-shadow: var( --gcp-shadow );
	font-size: 15px;
	line-height: 1.5;
}

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

.gcp-banner .gcp-inner {
	padding: 22px 24px;
}

/* Positions */
.gcp-pos-bottom {
	left: 50%;
	bottom: 16px;
	transform: translateX( -50% );
	max-width: 960px;
}

.gcp-pos-bottom-left {
	left: 16px;
	bottom: 16px;
}

.gcp-pos-bottom-right {
	right: 16px;
	bottom: 16px;
}

.gcp-pos-center {
	left: 50%;
	top: 50%;
	transform: translate( -50%, -50% );
}

.gcp-pos-center::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: -1;
}

/* Theme */
.gcp-theme-dark {
	--gcp-bg: #1f2430;
	--gcp-text: #e8ebf2;
}

.gcp-title {
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 1.3;
	color: inherit;
}

.gcp-desc {
	margin: 0 0 12px;
	color: inherit;
	opacity: 0.92;
}

.gcp-privacy {
	margin: 0 0 12px;
	font-size: 14px;
}

.gcp-privacy a {
	color: var( --gcp-accent );
}

/* Categories */
.gcp-categories {
	margin: 4px 0 16px;
	border-top: 1px solid rgba( 128, 128, 128, 0.25 );
	padding-top: 12px;
	display: grid;
	gap: 12px;
}

.gcp-categories[hidden] {
	display: none;
}

.gcp-cat {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.gcp-cat-input {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var( --gcp-accent );
}

.gcp-cat-body {
	display: flex;
	flex-direction: column;
}

.gcp-cat-label {
	font-weight: 600;
}

.gcp-cat-label em {
	font-weight: 400;
	opacity: 0.6;
}

.gcp-cat-desc {
	font-size: 13px;
	opacity: 0.8;
}

/* Actions */
.gcp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}

.gcp-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	font-family: inherit;
}

.gcp-btn:focus-visible {
	outline: 2px solid var( --gcp-accent );
	outline-offset: 2px;
}

.gcp-btn-primary {
	background: var( --gcp-accent );
	color: var( --gcp-accent-text );
}

.gcp-btn-secondary {
	background: transparent;
	color: inherit;
	border-color: rgba( 128, 128, 128, 0.5 );
}

.gcp-btn-link {
	background: none;
	border: none;
	color: var( --gcp-accent );
	text-decoration: underline;
	padding: 10px 6px;
	margin-right: auto;
}

.gcp-btn[hidden] {
	display: none;
}

/* Floating reopen button */
.gcp-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	background: var( --gcp-accent );
	color: var( --gcp-accent-text );
	border: none;
	border-radius: 24px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	box-shadow: var( --gcp-shadow );
	font-family: inherit;
	font-family: var(--title-font);
}

.gcp-reopen[hidden] {
	display: none;
}

@media ( max-width: 600px ) {
	.gcp-pos-bottom,
	.gcp-pos-bottom-left,
	.gcp-pos-bottom-right {
		left: 16px;
		right: 16px;
		bottom: 16px;
		transform: none;
		width: auto;
		max-width: none;
	}

	.gcp-actions {
		justify-content: stretch;
	}

	.gcp-actions .gcp-btn-primary,
	.gcp-actions .gcp-btn-secondary {
		flex: 1 1 auto;
	}
}
