/* Cookie notice — a white card in the bottom right corner. */

.fcg-cookies {
	position: fixed;
	right: clamp(16px, 1.8vw, 28px);
	bottom: clamp(16px, 1.8vw, 28px);
	z-index: 2147483000; /* over the page, under the cursor */
	width: min(420px, calc(100vw - 32px));
	box-sizing: border-box;
	background: #fff;
	color: #111;
	border-radius: 22px;
	padding: 26px 28px 24px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
	font-family: stolzl, sans-serif;
	/* it arrives once the page has settled */
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}
.fcg-cookies.is-in {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.fcg-cookies.is-out {
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
}

.fcg-cookies-title {
	margin: 0 0 12px;
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #000;
}

.fcg-cookies-text {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.5;
	color: #3a3a3a;
}

.fcg-cookies-text a {
	color: #9b9b9b;
	text-decoration: none;
}
.fcg-cookies-text a:hover {
	color: #000;
}

/* --- the per-category panel, folded away until Settings is pressed --- */
/* Collapsed by height rather than by grid rows: the rows are siblings, so a
   single 0fr row would only have folded the first of them away. */
.fcg-cookies-panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
	transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease,
		margin 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.fcg-cookies.is-open .fcg-cookies-panel {
	max-height: 60vh;
	opacity: 1;
	margin: 0 0 20px;
	overflow-y: auto;
}

.fcg-cookies-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid #ececec;
	cursor: pointer;
	position: relative;
}
.fcg-cookies-row.is-locked {
	cursor: default;
}
.fcg-cookies-row-copy {
	display: block;
	flex: 1 1 auto;
}
.fcg-cookies-row-name {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	color: #111;
}
.fcg-cookies-row-text {
	display: block;
	font-size: 12.5px;
	line-height: 1.4;
	color: #6b6b6b;
	margin-top: 2px;
}

/* the switch: a real checkbox, hidden, with a track drawn beside it */
.fcg-cookies-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}
.fcg-cookies-track {
	flex: 0 0 auto;
	width: 40px;
	height: 23px;
	border-radius: 999px;
	background: #dcdcdc;
	position: relative;
	margin-top: 2px;
	transition: background-color 0.25s ease;
}
.fcg-cookies-track:after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fcg-cookies-toggle:checked + .fcg-cookies-track {
	background: #000;
}
.fcg-cookies-toggle:checked + .fcg-cookies-track:after {
	transform: translateX(17px);
}
.fcg-cookies-toggle:disabled + .fcg-cookies-track {
	background: #b9b9b9;
}
.fcg-cookies-toggle:focus-visible + .fcg-cookies-track {
	outline: 2px solid #001eff;
	outline-offset: 2px;
}

.fcg-cookies-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fcg-cookies-btn {
	flex: 1 1 0;
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	border-radius: 12px;
	padding: 14px 18px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.22s ease, color 0.22s ease;
}
.fcg-cookies-btn.is-reject {
	background: #efefef;
	color: #333;
}
.fcg-cookies-btn.is-reject:hover {
	background: #e4e4e4;
}
.fcg-cookies-btn.is-accept {
	background: #000;
	color: #fff;
}
.fcg-cookies-btn.is-accept:hover {
	background: #1c1c1c;
}

/* Settings is a box like the other two, on its own row above them; Save joins
   it only once the panel is open. */
.fcg-cookies-btn.is-settings {
	flex: 1 1 100%;
	background: #efefef;
	color: #333;
}
.fcg-cookies-btn.is-settings:hover {
	background: #e4e4e4;
}
.fcg-cookies-btn.is-save {
	display: none;
	flex: 1 1 100%;
}
.fcg-cookies.is-open .fcg-cookies-btn.is-save {
	display: block;
}

@media (max-width: 560px) {
	.fcg-cookies {
		left: 16px;
		right: 16px;
		width: auto;
		padding: 22px 22px 20px;
	}
}
