.jf-consent {
	--jf-consent-blue: #132F4A;
	--jf-consent-bg: rgba(240, 237, 232, 0.96);
	--jf-consent-line: rgba(19, 47, 74, 0.18);
	--jf-consent-muted: rgba(19, 47, 74, 0.66);
	--jf-consent-radius: 12px;
	--jf-consent-shadow: 0 8px 18px rgba(19, 47, 74, 0.08);
	color: var(--jf-consent-blue);
	font-family: var(--jf-font-body, Futura, Montserrat, sans-serif);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jf-consent[hidden] {
	display: none !important;
}

.jf-consent-banner {
	background: transparent;
	border: 0;
	bottom: clamp(16px, 2.4vw, 34px);
	box-shadow: none;
	left: clamp(16px, 2.4vw, 42px);
	padding: 0;
	position: fixed;
	right: auto;
	width: min(424px, calc(100vw - 32px));
	z-index: 10050;
}

.jf-consent-banner__inner {
	background: var(--jf-consent-bg);
	border: 1px solid var(--jf-consent-line);
	border-radius: var(--jf-consent-radius);
	box-shadow: var(--jf-consent-shadow);
	display: block;
	margin: 0;
	padding: clamp(22px, 3vw, 28px);
}

.jf-consent-title,
.jf-consent-panel__title {
	font-family: var(--jf-font-display, Ezra, Georgia, serif);
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 500;
	line-height: 1;
	margin: 0 0 16px;
}

.jf-consent-copy {
	color: var(--jf-consent-muted);
	font-size: 12px;
	line-height: 1.7;
	margin: 0;
	max-width: 100%;
}

.jf-consent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 16px;
}

.jf-consent a,
.jf-cookie-settings {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--jf-consent-blue) !important;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jf-consent-actions {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	justify-content: stretch;
	margin-top: 22px;
}

.jf-consent-button {
	appearance: none;
	background: transparent !important;
	border: 1px solid var(--jf-consent-blue) !important;
	border-radius: 4px;
	box-shadow: none !important;
	color: var(--jf-consent-blue) !important;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	min-height: 42px;
	padding: 0 18px;
	width: 100%;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.jf-consent-button:hover,
.jf-consent-button:focus-visible {
	background: var(--jf-consent-blue) !important;
	color: #fff !important;
	outline: none;
}

.jf-consent-button--text {
	border-color: transparent !important;
	min-height: auto;
	padding: 4px 0 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jf-consent-button--text:hover,
.jf-consent-button--text:focus-visible {
	background: transparent !important;
	color: var(--jf-consent-muted) !important;
}

.jf-consent-modal {
	align-items: center;
	background: transparent;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 10060;
}

.jf-consent-panel {
	background: var(--jf-consent-bg);
	border: 1px solid var(--jf-consent-line);
	border-radius: var(--jf-consent-radius);
	box-shadow: var(--jf-consent-shadow);
	max-height: min(760px, calc(100vh - 36px));
	max-width: 560px;
	overflow: auto;
	padding: 24px;
	position: relative;
	width: 100%;
}

.jf-consent-close {
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--jf-consent-blue) !important;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 18px;
	top: 14px;
}

.jf-consent-category {
	align-items: center;
	border-top: 1px solid var(--jf-consent-line);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 18px 0;
}

.jf-consent-category h3 {
	font-size: 13px;
	font-weight: 500;
	margin: 0 0 6px;
}

.jf-consent-category p {
	color: var(--jf-consent-muted);
	font-size: 11px;
	line-height: 1.5;
	margin: 0;
}

.jf-consent-always {
	font-size: 11px;
	white-space: nowrap;
}

.jf-consent-toggle {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
}

.jf-consent-toggle input {
	position: absolute;
	opacity: 0;
}

.jf-consent-toggle__track {
	border: 1px solid var(--jf-consent-blue);
	border-radius: 999px;
	height: 22px;
	position: relative;
	width: 42px;
}

.jf-consent-toggle__track::after {
	background: var(--jf-consent-blue);
	border-radius: 50%;
	content: "";
	height: 14px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: transform .18s ease;
	width: 14px;
}

.jf-consent-toggle input:checked + .jf-consent-toggle__track::after {
	transform: translateX(20px);
}

.jf-consent-panel__footer {
	border-top: 1px solid var(--jf-consent-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 18px;
}

.jf-consent-panel__footer .jf-consent-button {
	flex: 0 1 auto;
	font-size: 11px;
	min-height: 36px;
	padding: 0 14px;
	white-space: nowrap;
	width: auto;
}

.jf-cookie-settings {
	display: inline-flex;
	font-size: 11px;
	letter-spacing: 0.08em;
	margin: 16px 0;
}

@media (max-width: 720px) {
	.jf-consent-banner {
		bottom: 14px;
		left: 14px;
		right: 14px;
		width: auto;
	}

	.jf-consent-panel__footer {
		flex-direction: column;
	}

	.jf-consent-panel__footer .jf-consent-button {
		width: 100%;
	}

	.jf-consent-category {
		align-items: flex-start;
	}
}
