:root {
	--fb-cookie-navy: #071f31;
	--fb-cookie-blue: #147dd6;
	--fb-cookie-blue-dark: #0c65b1;
	--fb-cookie-text: #13283a;
	--fb-cookie-muted: #607384;
	--fb-cookie-line: #d7e2ea;
	--fb-cookie-soft: #eef5f9;
}

.fb-cookie-layer,
.fb-cookie-modal-layer {
	position: fixed;
	z-index: 999999;
	inset: 0;
}

.fb-cookie-layer[hidden],
.fb-cookie-modal-layer[hidden],
.fb-cookie-reopen[hidden] {
	display: none !important;
}

.fb-cookie-layer {
	display: flex;
	align-items: flex-end;
	padding: 22px;
	pointer-events: none;
	background: linear-gradient(to top, rgba(2, 18, 30, .34), transparent 46%);
}

.fb-cookie-banner {
	display: grid;
	width: min(1420px, calc(100vw - 44px));
	margin: 0 auto;
	grid-template-columns: 250px minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(28px, 4vw, 64px);
	padding: 27px 30px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 20px;
	color: #fff;
	pointer-events: auto;
	background: radial-gradient(circle at 92% 12%, rgba(36, 151, 235, .3), transparent 27%), var(--fb-cookie-navy);
	box-shadow: 0 28px 80px rgba(0, 18, 31, .3);
}

.fb-cookie-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 30px;
	border-right: 1px solid rgba(255, 255, 255, .18);
}

.fb-cookie-brand-mark {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .48);
	border-radius: 50%;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
}

.fb-cookie-brand-icon {
	display: block;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 15px;
	object-fit: cover;
	box-shadow: 0 8px 22px rgba(0, 13, 24, .3);
}

.fb-cookie-brand-copy {
	display: grid;
	gap: 2px;
}

.fb-cookie-brand-copy strong {
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-weight: 500;
	letter-spacing: .08em;
}

.fb-cookie-brand-copy small {
	color: #a9c5d8;
	font-size: 10px;
	letter-spacing: .05em;
}

.fb-cookie-content {
	min-width: 0;
}

.fb-cookie-eyebrow {
	margin: 0 0 6px;
	color: #83c8ff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.fb-cookie-content h2,
.fb-cookie-modal h2,
.fb-cookie-service h3 {
	color: inherit;
}

.fb-cookie-content h2 {
	margin: 0 0 7px;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(25px, 2.2vw, 34px);
	font-weight: 500;
	line-height: 1.08;
}

.fb-cookie-content > p:not(.fb-cookie-eyebrow) {
	max-width: 780px;
	margin: 0;
	color: #c9dce8;
	font-size: 14px;
	line-height: 1.55;
}

.fb-cookie-privacy-link {
	display: inline-flex;
	margin-top: 8px;
	color: inherit;
	font-size: 13px;
	font-weight: 750;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.fb-cookie-banner .fb-cookie-privacy-link {
	color: #fff;
}

.fb-cookie-actions {
	display: grid;
	min-width: 220px;
	gap: 10px;
}

.fb-cookie-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.fb-cookie-button:hover {
	transform: translateY(-1px);
}

.fb-cookie-button:focus-visible,
.fb-cookie-close:focus-visible,
.fb-cookie-reopen:focus-visible {
	outline: 3px solid #82c9ff;
	outline-offset: 3px;
}

.fb-cookie-button-primary {
	color: #fff;
	background: var(--fb-cookie-blue);
}

.fb-cookie-button-primary:hover {
	background: var(--fb-cookie-blue-dark);
}

.fb-cookie-button-secondary {
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
	background: transparent;
}

.fb-cookie-button-secondary:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
}

.fb-cookie-modal-layer {
	display: grid;
	overflow-y: auto;
	place-items: center;
	padding: 28px;
	background: rgba(2, 17, 29, .72);
	backdrop-filter: blur(8px);
}

.fb-cookie-modal {
	width: min(780px, 100%);
	max-height: calc(100vh - 56px);
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 22px;
	color: var(--fb-cookie-text);
	background: #fff;
	box-shadow: 0 34px 100px rgba(0, 13, 24, .38);
}

.fb-cookie-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 30px 32px 22px;
	border-bottom: 1px solid var(--fb-cookie-line);
}

.fb-cookie-modal-header h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 500;
	line-height: 1;
}

.fb-cookie-close {
	position: relative;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border: 1px solid var(--fb-cookie-line);
	border-radius: 50%;
	cursor: pointer;
	background: var(--fb-cookie-soft);
}

.fb-cookie-close span::before,
.fb-cookie-close span::after {
	position: absolute;
	top: 22px;
	left: 13px;
	width: 20px;
	height: 1px;
	content: "";
	background: var(--fb-cookie-navy);
}

.fb-cookie-close span::before {
	transform: rotate(45deg);
}

.fb-cookie-close span::after {
	transform: rotate(-45deg);
}

.fb-cookie-modal-copy {
	padding: 22px 32px 5px;
}

.fb-cookie-modal-copy p {
	margin: 0;
	color: var(--fb-cookie-muted);
	line-height: 1.65;
}

.fb-cookie-service-list {
	display: grid;
	gap: 12px;
	padding: 22px 32px 30px;
}

.fb-cookie-service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	padding: 20px;
	border: 1px solid var(--fb-cookie-line);
	border-radius: 15px;
	background: #fff;
}

.fb-cookie-service-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 7px;
}

.fb-cookie-service h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 500;
}

.fb-cookie-service p {
	margin: 0;
	color: var(--fb-cookie-muted);
	font-size: 14px;
	line-height: 1.55;
}

.fb-cookie-required {
	padding: 5px 9px;
	border-radius: 999px;
	color: #0a5d9c;
	background: #e3f2fc;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.fb-cookie-switch {
	position: relative;
	display: block;
	width: 48px;
	height: 27px;
}

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

.fb-cookie-switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: var(--fb-cookie-blue);
}

.fb-cookie-switch span::after {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	content: "";
	background: #fff;
	box-shadow: 0 2px 7px rgba(0, 20, 34, .22);
}

.fb-cookie-modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 32px 30px;
	border-top: 1px solid var(--fb-cookie-line);
	background: var(--fb-cookie-soft);
}

.fb-cookie-modal-footer .fb-cookie-privacy-link {
	margin: 0;
	color: var(--fb-cookie-navy);
}

.fb-cookie-reopen {
	position: fixed;
	z-index: 999990;
	bottom: 18px;
	right: 18px;
	left: auto;
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid #c9d9e4;
	border-radius: 999px;
	color: var(--fb-cookie-navy);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 8px 25px rgba(0, 27, 46, .14);
	backdrop-filter: blur(8px);
}

.fb-cookie-reopen svg {
	width: 18px;
	height: 18px;
	fill: var(--fb-cookie-blue);
}

body.fb-cookie-modal-open {
	overflow: hidden;
}

@media (max-width: 980px) {
	.fb-cookie-banner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.fb-cookie-brand {
		display: none;
	}
}

@media (max-width: 700px) {
	.fb-cookie-layer {
		padding: 10px;
	}

	.fb-cookie-banner {
		width: 100%;
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 24px 20px 20px;
		border-radius: 18px;
	}

	.fb-cookie-content h2 {
		font-size: 29px;
	}

	.fb-cookie-actions {
		min-width: 0;
	}

	.fb-cookie-modal-layer {
		align-items: end;
		padding: 8px;
	}

	.fb-cookie-modal {
		max-height: calc(100vh - 16px);
		border-radius: 20px 20px 14px 14px;
	}

	.fb-cookie-modal-header,
	.fb-cookie-modal-copy,
	.fb-cookie-service-list,
	.fb-cookie-modal-footer {
		padding-right: 20px;
		padding-left: 20px;
	}

	.fb-cookie-service {
		gap: 14px;
		padding: 17px;
	}

	.fb-cookie-modal-footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.fb-cookie-modal-footer .fb-cookie-privacy-link {
		align-self: center;
	}

	.fb-cookie-reopen span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.fb-cookie-reopen {
		width: 44px;
		height: 44px;
		right: 14px;
		left: auto;
		bottom: 14px;
		justify-content: center;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fb-cookie-button {
		transition: none;
	}
}
