/* Google Consent Banner. Colours come from the settings, as --gcb-* variables. */

.gcb,
.gcb-reopen,
.gcb-embed {
	--gcb-background: #ffffff;
	--gcb-color: #1d1d1f;
	--gcb-button: #1d1d1f;
	--gcb-button-color: #ffffff;
}

.gcb[hidden],
.gcb-reopen[hidden],
.gcb__choices[hidden] {
	display: none !important;
}

.gcb {
	position: fixed;
	z-index: 999999;
	left: 16px;
	bottom: 16px;
	box-sizing: border-box;
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 22px 22px 18px;
	background: var(--gcb-background);
	color: var(--gcb-color);
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.18);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.gcb *,
.gcb-embed * {
	box-sizing: border-box;
}

.gcb--bar {
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	max-height: 70vh;
	border-radius: 0;
	padding: 20px max(16px, calc((100vw - 1100px) / 2));
}

.gcb--bar .gcb__actions {
	max-width: 520px;
}

.gcb__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

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

.gcb__message a,
.gcb-embed a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gcb__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

/* Accept and reject: the same size, colour and weight. */
.gcb__button,
.gcb-embed button {
	flex: 1 1 0;
	min-width: 120px;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid var(--gcb-button);
	border-radius: 6px;
	background: var(--gcb-button);
	color: var(--gcb-button-color);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.gcb__button:hover,
.gcb-embed button:hover {
	opacity: 0.9;
}

.gcb__button--outline {
	background: transparent;
	color: var(--gcb-color);
}

.gcb__link {
	flex: 1 1 100%;
	margin: 0;
	padding: 6px 0 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.gcb__choices {
	display: grid;
	gap: 12px;
	margin: 0 0 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.gcb__option {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 10px;
	align-items: start;
	cursor: pointer;
}

.gcb__option input {
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--gcb-button);
}

.gcb__option span {
	font-weight: 600;
	font-size: 14px;
}

.gcb__option small {
	grid-column: 2;
	font-size: 12.5px;
	line-height: 1.45;
	opacity: 0.78;
}

.gcb button:focus-visible,
.gcb input:focus-visible,
.gcb a:focus-visible,
.gcb-reopen:focus-visible,
.gcb-embed button:focus-visible {
	outline: 2px solid var(--gcb-button);
	outline-offset: 2px;
}

.gcb-reopen {
	position: fixed;
	z-index: 999998;
	left: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gcb-button);
	color: var(--gcb-button-color);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

/* A held embed: the notice, the size of the frame it stands for. */
.gcb-embed {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 100%;
	min-height: 220px;
	padding: 20px;
	border-radius: 4px;
	background: #f1f1f1;
	color: #1d1d1f;
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
}

.gcb-embed__notice {
	max-width: 440px;
}

.gcb-embed__notice p {
	margin: 0 0 12px;
}

.gcb-embed__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.gcb-embed .gcb-embed__always {
	background: transparent;
	color: inherit;
}

@media (max-width: 560px) {
	.gcb {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		padding: 18px 18px 14px;
	}

	.gcb--bar {
		left: 0;
		right: 0;
		bottom: 0;
	}

	.gcb-reopen {
		left: 10px;
		bottom: 10px;
	}
}
