/* OG Consent Box */
.ogcb {
	--ogcb-bg: #fff;
	--ogcb-fg: #111827;
	--ogcb-muted: #4b5563;
	--ogcb-line: #e5e7eb;
	--ogcb-soft: #f3f4f6;
	--ogcb-on: var(--ogcb-accent, #1D4ED8);
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ogcb-fg);
	pointer-events: none;
}
.ogcb[hidden] { display: none; }
.ogcb *, .ogcb *::before, .ogcb *::after { box-sizing: border-box; }
.ogcb.ogcb-font-system { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.ogcb-theme-dark {
	--ogcb-bg: #111827;
	--ogcb-fg: #f9fafb;
	--ogcb-muted: #d1d5db;
	--ogcb-line: #374151;
	--ogcb-soft: #1f2937;
}
@media (prefers-color-scheme: dark) {
	.ogcb-theme-auto {
		--ogcb-bg: #111827;
		--ogcb-fg: #f9fafb;
		--ogcb-muted: #d1d5db;
		--ogcb-line: #374151;
		--ogcb-soft: #1f2937;
	}
}

.ogcb-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, .45);
	pointer-events: auto;
}
.ogcb-panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
	background: var(--ogcb-bg);
	color: var(--ogcb-fg);
	border-radius: var(--ogcb-radius, 16px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	pointer-events: auto;
	text-align: left;
}
.ogcb[data-view="settings"] .ogcb-panel { max-width: 600px; }
.ogcb-panel:focus { outline: none; }

/* Bar layout: no overlay, page stays usable behind it. */
.ogcb-bar { align-items: flex-end; padding: 0; }
.ogcb-bar .ogcb-overlay { display: none; }
.ogcb-bar .ogcb-panel {
	max-width: none;
	border-radius: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 24px;
	align-items: center;
	padding: 16px max(16px, calc((100vw - 1200px) / 2));
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
}
.ogcb-bar .ogcb-head, .ogcb-bar .ogcb-text { grid-column: 1; margin: 0; }
.ogcb-bar .ogcb-buttons { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.ogcb-bar .ogcb-more { grid-column: 1; justify-self: start; margin: 0; }
html.ogcb-open:has(.ogcb-center:not([hidden])) { overflow: hidden; }

.ogcb-head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.ogcb-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; object-fit: cover; }
.ogcb-title { flex: 1; margin: 0; font-size: 1.2em; line-height: 1.3; font-weight: 700; color: inherit; letter-spacing: 0; text-transform: none; }
.ogcb-text { margin: 0 0 16px; color: var(--ogcb-muted); font-size: .95em; }
.ogcb-text a, .ogcb-services a { color: var(--ogcb-on); text-decoration: underline; }

.ogcb-lang { flex: none; position: relative; }
.ogcb-lang select {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 4px 26px 4px 10px;
	min-height: 32px;
	font: inherit;
	font-size: .85em;
	color: var(--ogcb-fg);
	background: var(--ogcb-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 9px center;
	border: 1px solid var(--ogcb-line);
	border-radius: 999px;
	cursor: pointer;
	width: auto;
	max-width: 140px;
}
.ogcb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: accept and decline look equally important. */
.ogcb-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.ogcb-buttons-3 { grid-template-columns: 1fr 1fr 1fr; margin-top: 16px; }
.ogcb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	font: inherit;
	font-weight: 600;
	font-size: .95em;
	line-height: 1.2;
	text-align: center;
	border-radius: calc(var(--ogcb-radius, 16px) * .6);
	border: 2px solid var(--ogcb-on);
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition: background-color .15s, color .15s;
}
.ogcb-primary { background: var(--ogcb-on); color: #fff; }
.ogcb-primary:hover { background: var(--ogcb-accent-dark, #1e40af); border-color: var(--ogcb-accent-dark, #1e40af); color: #fff; }
.ogcb-secondary { background: transparent; color: var(--ogcb-on); }
.ogcb-theme-dark .ogcb-secondary { color: var(--ogcb-fg); }
.ogcb-secondary:hover { background: var(--ogcb-soft); color: var(--ogcb-on); }
.ogcb-btn:focus-visible, .ogcb-more:focus-visible, .ogcb-switch:focus-visible, .ogcb-lang select:focus-visible, .ogcb-services summary:focus-visible {
	outline: 3px solid var(--ogcb-on);
	outline-offset: 2px;
}
.ogcb-more {
	display: block;
	margin: 4px auto 0;
	padding: 8px;
	background: none;
	border: 0;
	font: inherit;
	font-size: .9em;
	color: var(--ogcb-muted);
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}
.ogcb-more:hover { color: var(--ogcb-fg); background: none; }

/* Settings view */
.ogcb-cats { display: grid; gap: 10px; }
.ogcb-cat { padding: 14px 16px; border: 1px solid var(--ogcb-line); border-radius: calc(var(--ogcb-radius, 16px) * .6); }
.ogcb-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ogcb-cat-label { font-weight: 700; cursor: pointer; margin: 0; }
.ogcb-cat-desc { margin: 4px 0 0; font-size: .88em; color: var(--ogcb-muted); }
.ogcb-always { font-size: .8em; font-weight: 600; color: var(--ogcb-muted); white-space: nowrap; }

.ogcb-switch {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #9ca3af;
	cursor: pointer;
	transition: background-color .15s;
}
.ogcb-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .15s;
}
.ogcb-switch:checked { background: var(--ogcb-on); }
.ogcb-switch:checked::after { transform: translateX(18px); }

.ogcb-services { margin-top: 8px; font-size: .85em; }
.ogcb-services summary { cursor: pointer; color: var(--ogcb-muted); }
.ogcb-services ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ogcb-services li { padding: 8px 10px; background: var(--ogcb-soft); border-radius: 8px; }
.ogcb-svc-name { display: block; font-weight: 600; }
.ogcb-svc-meta { display: block; color: var(--ogcb-muted); word-break: break-word; }

@media (max-width: 560px) {
	.ogcb { padding: 0; align-items: flex-end; }
	.ogcb-panel { max-width: none; border-radius: var(--ogcb-radius, 16px) var(--ogcb-radius, 16px) 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 92vh; max-height: 92dvh; }
	.ogcb-buttons-3 { grid-template-columns: 1fr; }
	.ogcb-buttons-3 .ogcb-primary { order: -1; }
	.ogcb-bar .ogcb-panel { display: block; }
	.ogcb-bar .ogcb-buttons { margin: 12px 0 4px; }
	.ogcb-icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.ogcb *, .ogcb-switch::after { transition: none !important; }
}

/* Media placeholders */
.ogcb-hidden { display: none !important; }
.ogcb-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 200px;
	aspect-ratio: 16 / 9;
	margin: 0 auto 1em;
	padding: 20px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
	color: #111827;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}
.ogcb-ph p { margin: 0; max-width: 420px; }
.ogcb-ph .ogcb-btn { --ogcb-on: var(--ogcb-accent, #1D4ED8); }
.ogcb-ph-always {
	background: none;
	border: 0;
	padding: 4px;
	font: inherit;
	font-size: .85em;
	color: #4b5563;
	text-decoration: underline;
	cursor: pointer;
}

/* "Cookie settings" link and floating button */
.ogcb-link {
	display: inline;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}
.ogcb-float {
	position: fixed;
	bottom: 16px;
	z-index: 2147482000;
	padding: 8px 14px;
	font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #111827;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	cursor: pointer;
	opacity: .9;
}
.ogcb-float:hover, .ogcb-float:focus-visible { opacity: 1; }
.ogcb-float-left { left: 16px; }
.ogcb-float-right { right: 16px; }
html.ogcb-open .ogcb-float { display: none; }

/* [og_cookie_list] */
.ogcb-cookie-list table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .92em; }
.ogcb-cookie-list th, .ogcb-cookie-list td { padding: 8px 10px; border: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.ogcb-cookie-list th { background: #f9fafb; }
.ogcb-cookie-list code { white-space: normal; word-break: break-word; }
