/* FL Custom Cookie Consent - frontend */

.flccc-root {
	--flccc-bg: #ffffff;
	--flccc-text: #1f2933;
	--flccc-primary: #1e6fd9;
	--flccc-primary-t: #ffffff;
	--flccc-second: #e4e7eb;
	--flccc-second-t: #1f2933;
	--flccc-radius: 8px;
	--flccc-font: 14px;
	font-size: var(--flccc-font);
	line-height: 1.5;
	color: var(--flccc-text);
}

.flccc-root [hidden],
.flccc-placeholder[hidden] {
	display: none !important;
}

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

.flccc-root p {
	margin: 0 0 .5em;
	font-size: inherit;
	color: inherit;
}

.flccc-title {
	font-weight: 700;
	font-size: 1.15em !important;
}

/* ---------- Banner ---------- */

.flccc-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--flccc-bg);
	color: var(--flccc-text);
	box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
	font-size: var(--flccc-font);
}

.flccc-banner-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding: 16px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.flccc-banner-text {
	flex: 1 1 380px;
	min-width: 0;
}

.flccc-message {
	margin-bottom: 0 !important;
}

.flccc-policy-link {
	color: inherit !important;
	text-decoration: underline !important;
	white-space: nowrap;
}

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

.flccc-pos-bottom .flccc-banner { left: 0; right: 0; bottom: 0; }
.flccc-pos-top .flccc-banner { left: 0; right: 0; top: 0; }

.flccc-pos-box-left .flccc-banner,
.flccc-pos-box-right .flccc-banner {
	bottom: 16px;
	width: 420px;
	max-width: calc(100% - 32px);
	border-radius: var(--flccc-radius);
}
.flccc-pos-box-left .flccc-banner { left: 16px; }
.flccc-pos-box-right .flccc-banner { right: 16px; }

.flccc-pos-center .flccc-banner {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 560px;
	max-width: calc(100% - 32px);
	border-radius: var(--flccc-radius);
}

.flccc-pos-box-left .flccc-banner-inner,
.flccc-pos-box-right .flccc-banner-inner,
.flccc-pos-center .flccc-banner-inner {
	display: block;
}
.flccc-pos-box-left .flccc-actions,
.flccc-pos-box-right .flccc-actions,
.flccc-pos-center .flccc-actions {
	margin-top: 12px;
	justify-content: flex-end;
}

.flccc-banner-overlay {
	position: fixed;
	inset: 0;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 2147482999;
}

/* ---------- Buttons ---------- */

.flccc-btn {
	display: inline-block;
	margin: 0;
	padding: .6em 1.2em;
	border: 1px solid transparent;
	border-radius: var(--flccc-radius);
	font: inherit;
	font-size: var(--flccc-font);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-height: 0;
	width: auto;
}

.flccc-btn-primary,
.flccc-btn-primary:hover,
.flccc-btn-primary:focus {
	background: var(--flccc-primary);
	color: var(--flccc-primary-t);
	border-color: var(--flccc-primary);
}

.flccc-btn-secondary,
.flccc-btn-secondary:hover,
.flccc-btn-secondary:focus {
	background: var(--flccc-second);
	color: var(--flccc-second-t);
	border-color: var(--flccc-second);
}

.flccc-btn-link,
.flccc-btn-link:hover,
.flccc-btn-link:focus {
	background: transparent;
	color: inherit;
	border-color: transparent;
	text-decoration: underline;
	padding-left: .4em;
	padding-right: .4em;
}

.flccc-btn:hover { filter: brightness(.95); }

.flccc-root button:focus-visible,
.flccc-root a:focus-visible,
.flccc-root input:focus-visible + .flccc-slider,
.flccc-placeholder button:focus-visible {
	outline: 2px solid var(--flccc-primary);
	outline-offset: 2px;
}

/* ---------- Modal ---------- */

html.flccc-modal-open,
html.flccc-modal-open body {
	overflow: hidden;
}

.flccc-modal-wrap {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, .5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.flccc-modal {
	background: var(--flccc-bg);
	color: var(--flccc-text);
	width: 640px;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: var(--flccc-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	outline: none;
}

.flccc-modal-head,
.flccc-modal-foot {
	padding: 14px 20px;
	flex: 0 0 auto;
}

.flccc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.flccc-modal-head .flccc-title { margin: 0 !important; }

.flccc-close {
	background: transparent !important;
	border: 0 !important;
	color: inherit !important;
	font-size: 26px !important;
	line-height: 1 !important;
	cursor: pointer;
	padding: 0 4px !important;
	margin: 0;
	box-shadow: none !important;
}

.flccc-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
}

.flccc-modal-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	border-top: 1px solid rgba(0, 0, 0, .08);
}

.flccc-cat {
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: var(--flccc-radius);
	padding: 12px 14px;
	margin-top: 12px;
}

.flccc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.flccc-cat-name { font-weight: 700; }

.flccc-always {
	font-size: .85em;
	font-weight: 600;
	color: var(--flccc-primary);
}

.flccc-cat-desc {
	margin: 6px 0 4px !important;
	opacity: .85;
}

.flccc-details-toggle {
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
	color: var(--flccc-primary) !important;
	font: inherit;
	font-size: .9em;
	cursor: pointer;
	text-decoration: underline;
	box-shadow: none !important;
}

.flccc-details { margin-top: 8px; }

/* ---------- Switch ---------- */

.flccc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex: 0 0 auto;
	margin: 0;
}

.flccc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 1;
}

.flccc-slider {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: #b8c0ca;
	border-radius: 24px;
	transition: background .2s;
}

.flccc-slider::before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}

.flccc-switch input:checked + .flccc-slider { background: var(--flccc-primary); }
.flccc-switch input:checked + .flccc-slider::before { transform: translateX(20px); }

/* ---------- Cookie tables ---------- */

.flccc-table-wrap { overflow-x: auto; }

.flccc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9em;
	margin: 0;
}

.flccc-table th,
.flccc-table td {
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	vertical-align: top;
}

.flccc-table code {
	font-size: .95em;
	word-break: break-all;
	background: none;
	padding: 0;
}

.flccc-no-cookies {
	font-size: .9em;
	opacity: .7;
}

/* ---------- Floating button ---------- */

.flccc-float {
	position: fixed;
	bottom: 16px;
	z-index: 2147482998;
	width: 44px;
	height: 44px;
	border-radius: 50% !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
	background: var(--flccc-primary) !important;
	color: var(--flccc-primary-t) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flccc-float-left .flccc-float { left: 16px; }
.flccc-float-right .flccc-float { right: 16px; }

/* ---------- Blocked embed placeholder ---------- */

.flccc-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 12px;
	padding: 24px;
	min-height: 200px;
	width: 100%;
	background: #f1f3f5;
	color: #1f2933;
	border: 1px dashed #b8c0ca;
	border-radius: 8px;
	font-size: 14px;
}

.flccc-placeholder p { margin: 0; }

.flccc-placeholder .flccc-btn-primary {
	background: #1e6fd9;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: .6em 1.2em;
	cursor: pointer;
	font-weight: 600;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
	.flccc-banner-inner { padding: 14px 16px; }
	.flccc-actions { width: 100%; }
	.flccc-actions .flccc-btn { flex: 1 1 auto; text-align: center; }
	.flccc-pos-box-left .flccc-banner,
	.flccc-pos-box-right .flccc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-width: none;
	}
	.flccc-modal-foot .flccc-btn { flex: 1 1 100%; }
	.flccc-modal-wrap { padding: 0; }
	.flccc-modal { border-radius: 0; height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.flccc-slider,
	.flccc-slider::before { transition: none; }
}
