/* Baseworks cookie consent — theme overrides + floating icon */
/* Brand: dark swatch #3d3d3d, site font Jost (self-hosted via OMGF, loaded site-wide) */

#cc-main {
	--cc-font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--cc-btn-primary-bg: #3d3d3d;
	--cc-btn-primary-border-color: #3d3d3d;
	--cc-btn-primary-hover-bg: #262626;
	--cc-btn-primary-hover-border-color: #262626;
	--cc-btn-secondary-color: #3d3d3d;
	--cc-toggle-on-bg: #3d3d3d;
	--cc-modal-border-radius: 8px;
	--cc-btn-border-radius: 6px;
}

/* Friendly two-line titles: big bold first line, lighter subtitle below */
#cc-main .cm__title,
#cc-main .pm__title {
	font-size: 1.35em;
	line-height: 1.2;
}
#cc-main .bw-cc-titlesub {
	display: block;
	font-size: 0.72em;
	font-weight: 500;
	opacity: 0.8;
	margin-top: 0.15em;
}
#cc-main .bw-cc-sub {
	display: block;
	font-size: 1.05em;
	font-weight: 500;
	opacity: 0.85;
	margin: 0 0 0.6em;
}
#cc-main .pm__section-desc p,
#cc-main .pm__desc p {
	display: block;
	margin: 0 0 0.6em;
}
#cc-main .bw-cc-small {
	display: block;
	font-size: 0.88em;
	opacity: 0.8;
	margin-top: 0.7em;
}

/* Round Baseworks logo on both modal titles (all languages) */
#cc-main .cm__title::before,
#cc-main .pm__title::before {
	content: "";
	background: url('https://media.baseworks.com/brand/baseworks-logo-circle-signature.png') no-repeat center / contain;
	flex-shrink: 0;
}

/* Consent box: logo stacked above the title */
#cc-main .cm__title::before {
	display: block;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
}

/* Preferences header: logo inline, vertically centered, clear gap before the text */
#cc-main .pm__title {
	display: flex;
	align-items: center;
	gap: 14px;
}
#cc-main .pm__title::before {
	display: inline-block;
	width: 34px;
	height: 34px;
}

@media (max-width: 600px) {
	#cc-main .pm__title {
		gap: 10px;
	}
	#cc-main .pm__title::before {
		width: 28px;
		height: 28px;
	}
	#cc-main .cm__title,
	#cc-main .pm__title {
		font-size: 1.2em;
	}
}

/* Hide the floating icon while the consent box is open — both live bottom-left */
html.show--consent #bw-cookie-fab,
html.show--preferences #bw-cookie-fab {
	display: none;
}

#bw-cookie-fab {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 2147483000;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: #3d3d3d;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s;
}
#bw-cookie-fab:hover {
	background: #262626;
}
#bw-cookie-fab svg {
	width: 22px;
	height: 22px;
	display: block;
}

@media (max-width: 600px) {
	#bw-cookie-fab {
		width: 38px;
		height: 38px;
		bottom: 12px;
		left: 12px;
	}
}
@media print {
	#bw-cookie-fab {
		display: none;
	}
}
