.ffcc {
	--ffcc-red: #e3000a;
	--ffcc-heading: #000;
	--ffcc-text: #505050;
	--ffcc-border: #e5e5e5;
	--ffcc-soft: #f4f4f4;
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--ffcc-text);
}

.ffcc *,
.ffcc *::before,
.ffcc *::after {
	box-sizing: border-box;
}

.ffcc [hidden] {
	display: none !important;
}

.ffcc .ffcc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.ffcc h2,
.ffcc h3,
.ffcc p {
	margin: 0;
	padding: 0;
	font-family: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.ffcc a {
	color: var(--ffcc-red);
	font-weight: 700;
	text-decoration: underline;
}

.ffcc a:hover {
	color: var(--ffcc-red);
	text-decoration: none;
}

/* Buttons */

.ffcc .ffcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 12px 22px;
	border: 0;
	border-radius: 0;
	background: var(--ffcc-red);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	line-height: 18px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}

.ffcc .ffcc-btn:hover,
.ffcc .ffcc-btn:active {
	background: var(--ffcc-red);
	color: #fff;
}

.ffcc button:focus-visible,
.ffcc a:focus-visible,
.ffcc .ffcc-switch input:focus-visible + .ffcc-switch__track {
	outline: 2px solid var(--ffcc-heading);
	outline-offset: 2px;
}

/* Banner */

.ffcc .ffcc-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	width: calc(100% - 40px);
	max-width: 440px;
	padding: 24px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.ffcc .ffcc-banner__title {
	margin-bottom: 10px;
	color: var(--ffcc-heading);
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

.ffcc .ffcc-banner__actions {
	display: grid;
	gap: 8px;
	margin-top: 18px;
}

/* Settings modal */

html.ffcc-locked {
	overflow: hidden;
}

.ffcc .ffcc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ffcc .ffcc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.ffcc .ffcc-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	outline: none;
}

.ffcc .ffcc-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--ffcc-border);
}

.ffcc .ffcc-modal__title {
	color: var(--ffcc-heading);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.ffcc .ffcc-close {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--ffcc-soft);
	color: var(--ffcc-heading);
	cursor: pointer;
}

.ffcc .ffcc-close:hover {
	background: var(--ffcc-border);
}

.ffcc .ffcc-modal__body {
	overflow-y: auto;
	padding: 24px;
}

.ffcc .ffcc-modal__lead {
	margin-bottom: 8px;
	color: var(--ffcc-heading);
	font-size: 16px;
	line-height: 1.4;
	font-weight: 700;
}

.ffcc .ffcc-modal__text {
	margin-bottom: 20px;
}

.ffcc .ffcc-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 24px;
	border-top: 1px solid var(--ffcc-border);
}

.ffcc .ffcc-modal__footer .ffcc-btn[data-ffcc-action="save"] {
	margin-left: auto;
}

/* Categories */

.ffcc .ffcc-category {
	margin-bottom: 8px;
	background: var(--ffcc-soft);
}

.ffcc .ffcc-category__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-right: 16px;
}

.ffcc .ffcc-category__head {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 16px;
	border: 0;
	background: transparent;
	color: var(--ffcc-heading);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.ffcc .ffcc-chevron {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
	background: #fff;
}

.ffcc .ffcc-chevron::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 8px;
	width: 7px;
	height: 7px;
	border-right: 2px solid var(--ffcc-heading);
	border-bottom: 2px solid var(--ffcc-heading);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.ffcc .ffcc-category__head[aria-expanded="true"] .ffcc-chevron::before {
	top: 10px;
	transform: rotate(-135deg);
}

.ffcc .ffcc-category__panel {
	padding: 0 16px 16px;
}

.ffcc .ffcc-category__panel p {
	margin-bottom: 12px;
}

/* Switch */

.ffcc .ffcc-switch {
	position: relative;
	display: inline-flex;
	flex: none;
	margin: 0;
	cursor: pointer;
}

.ffcc .ffcc-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.ffcc .ffcc-switch__track {
	position: relative;
	width: 48px;
	height: 26px;
	background: #9c9c9c;
	transition: background-color 0.2s ease;
}

.ffcc .ffcc-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	transition: transform 0.2s ease;
}

.ffcc .ffcc-switch input:checked + .ffcc-switch__track {
	background: var(--ffcc-red);
}

.ffcc .ffcc-switch input:checked + .ffcc-switch__track::after {
	transform: translateX(22px);
}

.ffcc .ffcc-switch input:disabled + .ffcc-switch__track {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Cookie table */

.ffcc .ffcc-table-wrap {
	overflow-x: auto;
	background: #fff;
}

.ffcc .ffcc-table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.5;
}

.ffcc .ffcc-table th,
.ffcc .ffcc-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--ffcc-border);
	background: none;
	text-align: left;
	vertical-align: top;
}

.ffcc .ffcc-table th {
	color: var(--ffcc-heading);
	font-weight: 700;
}

.ffcc .ffcc-table tr:last-child td {
	border-bottom: 0;
}

.ffcc .ffcc-table td:first-child {
	color: var(--ffcc-heading);
	word-break: break-word;
}

.ffcc .ffcc-note {
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid var(--ffcc-border);
}

/* Footer link, rendered inside the theme's footer bottom row */

.ffcc-footer-link {
	color: #b1b2b2;
	text-decoration: none;
}

.ffcc-footer-link:hover {
	color: #fff;
}

@media (max-width: 600px) {
	.ffcc .ffcc-banner {
		left: 12px;
		bottom: 12px;
		width: calc(100% - 24px);
		padding: 20px;
	}

	.ffcc .ffcc-modal {
		padding: 0;
	}

	.ffcc .ffcc-modal__dialog {
		max-height: 100vh;
		height: 100%;
	}

	.ffcc .ffcc-modal__header,
	.ffcc .ffcc-modal__body,
	.ffcc .ffcc-modal__footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ffcc .ffcc-modal__footer {
		flex-direction: column;
	}

	.ffcc .ffcc-modal__footer .ffcc-btn[data-ffcc-action="save"] {
		margin-left: 0;
	}
}
