/* Julförlaget cookie consent banner – see js/cookie-consent.js */
.jfcc-banner, .jfcc-overlay {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #222;
	box-sizing: border-box;
}
.jfcc-banner *, .jfcc-overlay * { box-sizing: border-box; }

.jfcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	background: #fff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
	max-height: 85vh;
	overflow-y: auto;
}
/* Same red/white candy stripe as the top of the site (.toppblock in tablet_menu.css). */
.jfcc-banner:before, .jfcc-dialog:before {
	content: "";
	display: block;
	height: 6px;
	background: #fff url("img/red_white_stripe.jpg") 0 -8px repeat-x;
}
.jfcc-dialog:before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	border-radius: 4px 4px 0 0;
}
.jfcc-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}
.jfcc-text { flex: 1 1 520px; }
.jfcc-text p { margin: 0 0 8px; }
.jfcc-title {
	font-family: 'Oswald', Arial, sans-serif;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #222;
	text-transform: none;
}
.jfcc-links a {
	color: #e31b23;
	text-decoration: underline;
	font-weight: 700;
}
.jfcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 1 auto;
}
/* Matches the site's red "LOGGA IN" button. */
.jfcc-btn {
	min-width: 170px;
	padding: 12px 20px;
	font-family: 'Oswald', Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 4px;
	cursor: pointer;
	border: 2px solid #e31b23;
	line-height: 1.2;
}
/* "Godkänn alla" and "Endast nödvändiga" share one style on purpose: equal prominence. */
.jfcc-btn-primary { background: #e31b23; color: #fff; }
.jfcc-btn-primary:hover { background: #c0161d; border-color: #c0161d; }
.jfcc-btn-secondary { background: #fff; color: #e31b23; }
.jfcc-btn-secondary:hover { background: #fdecec; }
.jfcc-btn:focus-visible, .jfcc-close:focus-visible, .jfcc-links a:focus-visible,
.jfcc-switch input:focus-visible + .jfcc-slider {
	outline: 3px solid #222;
	outline-offset: 2px;
}

.jfcc-overlay {
	position: fixed;
	inset: 0;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.jfcc-overlay[hidden] { display: none; }
html.jfcc-open, html.jfcc-open body { overflow: hidden; }
.jfcc-dialog {
	position: relative;
	background: #fff;
	border-radius: 4px;
	width: 100%;
	max-width: 620px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px 24px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.jfcc-dialog .jfcc-actions { margin-top: 16px; }
.jfcc-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: 0;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px 8px;
}
.jfcc-cat {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 12px 14px;
	margin: 10px 0;
}
.jfcc-cat-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.jfcc-cat-name { font-weight: 700; font-size: 15px; margin: 0; cursor: pointer; }
.jfcc-cat-desc { margin: 6px 0 0; color: #444; font-size: 13px; }
.jfcc-always { color: #e31b23; font-weight: 700; font-size: 13px; white-space: nowrap; }

.jfcc-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex: 0 0 auto;
	margin: 0;
}
.jfcc-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 1;
}
.jfcc-slider {
	position: absolute;
	inset: 0;
	top: 0; right: 0; bottom: 0; left: 0;
	background: #9a9a9a;
	border-radius: 26px;
	transition: background 0.2s;
}
.jfcc-slider:before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.jfcc-switch input:checked + .jfcc-slider { background: #e31b23; }
.jfcc-switch input:checked + .jfcc-slider:before { transform: translateX(22px); }

@media (max-width: 600px) {
	.jfcc-inner { padding: 16px; }
	.jfcc-actions { width: 100%; }
	.jfcc-btn { flex: 1 1 100%; min-width: 0; }
	.jfcc-title { font-size: 19px; }
}
