.fcc-banner {
	position: fixed;
	inset: auto 0 0;
	z-index: 10000;
	padding: 0.5rem;
	box-sizing: border-box;
	max-width: 100vw;
	color: #171513;
	font-family: inherit;
}

.fcc-banner *,
.fcc-manage {
	box-sizing: border-box;
}

.fcc-banner [hidden] {
	display: none !important;
}

.fcc-banner__panel {
	width: min(100%, 560px);
	max-width: 100%;
	margin: 0 auto;
	padding: 0.62rem 0.7rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	align-items: stretch;
	background: #fffdfa;
	border: 1px solid rgba(23, 21, 19, 0.14);
	border-radius: 6px;
	box-shadow: 0 14px 44px rgba(23, 21, 19, 0.14);
}

.fcc-banner--expanded .fcc-banner__panel {
	width: min(100%, 760px);
	grid-template-columns: minmax(0, 1fr);
	align-items: stretch;
	gap: 0.55rem;
}

.fcc-banner__copy {
	display: grid;
	gap: 0.18rem;
}

.fcc-banner h2,
.fcc-banner p {
	margin: 0;
}

.fcc-banner h2 {
	font-size: 0.86rem;
	line-height: 1.2;
}

.fcc-banner p {
	color: #514b45;
	font-size: 0.76rem;
	line-height: 1.3;
}

.fcc-banner a {
	width: fit-content;
	color: #171513;
	font-size: 0.72rem;
	font-weight: 700;
	text-underline-offset: 0.2em;
}

.fcc-banner__preferences {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
	padding-top: 0.05rem;
}

.fcc-toggle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.55rem;
	align-items: center;
	padding: 0.45rem 0.5rem;
	border: 1px solid rgba(23, 21, 19, 0.1);
	border-radius: 5px;
	background: rgba(23, 21, 19, 0.025);
	cursor: pointer;
}

.fcc-toggle__copy {
	display: grid;
	gap: 0.12rem;
}

.fcc-toggle__copy strong {
	font-size: 0.76rem;
	line-height: 1.2;
}

.fcc-toggle__copy span {
	color: #5f5850;
	font-size: 0.68rem;
	line-height: 1.22;
}

.fcc-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fcc-toggle__control {
	position: relative;
	width: 2.25rem;
	height: 1.25rem;
	border-radius: 999px;
	background: #d2ccc3;
	transition: background-color 0.2s ease;
}

.fcc-toggle__control::after {
	content: "";
	position: absolute;
	top: 0.15rem;
	left: 0.15rem;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(23, 21, 19, 0.18);
	transition: transform 0.2s ease;
}

.fcc-toggle input:checked + .fcc-toggle__control {
	background: #171513;
}

.fcc-toggle input:checked + .fcc-toggle__control::after {
	transform: translateX(1rem);
}

.fcc-toggle input:disabled + .fcc-toggle__control {
	opacity: 0.72;
}

.fcc-banner__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.35rem;
}

.fcc-button {
	flex: 1 1 0;
	min-height: 2rem;
	border: 1px solid #171513;
	border-radius: 999px;
	padding: 0.48rem 0.62rem;
	background: transparent;
	color: #171513;
	cursor: pointer;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.fcc-button--primary {
	background: #171513;
	color: #fffdfa;
}

.fcc-button--secondary {
	background: rgba(23, 21, 19, 0.06);
}

.fcc-button:hover,
.fcc-button:focus-visible,
.fcc-manage:hover,
.fcc-manage:focus-visible {
	transform: translateY(-1px);
}

.fcc-manage {
	position: fixed;
	right: 0.45rem;
	bottom: 0.45rem;
	z-index: 9999;
	min-height: 1.45rem;
	border: 1px solid rgba(23, 21, 19, 0.18);
	border-radius: 999px;
	padding: 0.26rem 0.42rem;
	background: #fffdfa;
	color: #171513;
	box-shadow: 0 6px 18px rgba(23, 21, 19, 0.1);
	cursor: pointer;
	font: inherit;
	font-size: 0.55rem;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.2s ease;
}

@media (max-width: 640px) {
	.fcc-manage {
		right: 0.35rem;
		bottom: 0.35rem;
		min-height: 1.35rem;
		padding: 0.25rem 0.38rem;
		font-size: 0.52rem;
	}
}

@media (max-width: 640px) {
	.fcc-banner {
		width: 100vw;
		padding: 0.4rem;
	}

	.fcc-banner__panel {
		width: 100%;
		max-width: calc(100vw - 0.8rem);
		grid-template-columns: minmax(0, 1fr);
		gap: 0.5rem;
		padding: 0.65rem;
	}

	.fcc-banner__preferences {
		grid-template-columns: minmax(0, 1fr);
	}

	.fcc-banner__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.35rem;
		min-width: 0;
	}

	.fcc-button {
		width: 100%;
		flex: none;
		min-height: 2rem;
		padding-left: 0.45rem;
		padding-right: 0.45rem;
		font-size: 0.68rem;
		white-space: normal;
	}

	.fcc-button--primary:not(.fcc-button--save) {
		grid-column: 1 / -1;
	}
}
