/* Cookie / Tracking consent – overlay above gallery sidebar */

#bd-consent-root {
	position: fixed;
	inset: 0;
	z-index: 20000;
	pointer-events: none;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #444;
}

#bd-consent-root.is-open {
	pointer-events: auto;
}

#bd-consent-root .bd-consent-backdrop {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(16, 16, 16, 0.45);
}

#bd-consent-root.is-settings .bd-consent-backdrop {
	display: block;
}

.bd-consent-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	border-top: 1px solid #ddd;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
	padding: 1.35rem 1.5rem 1.25rem;
	max-height: min(90vh, 42rem);
	overflow: auto;
}

.bd-consent-panel h2 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #333;
	margin: 0 0 0.5rem 0;
}

.bd-consent-panel p {
	margin: 0 0 1rem 0;
	color: #555;
}

.bd-consent-panel a {
	color: #008f7a;
	border-bottom: 1px dotted #008f7a;
	text-decoration: none;
}

.bd-consent-panel a:hover {
	color: #00D3B7;
	border-bottom-color: transparent;
}

.bd-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: stretch;
}

.bd-consent-btn {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	border-radius: 2px;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.75rem 1.1rem;
	min-height: 2.75rem;
	min-width: 10.5rem;
	flex: 1 1 auto;
	text-align: center;
	border: 2px solid #333;
	background: #fff;
	color: #333;
}

.bd-consent-btn:hover,
.bd-consent-btn:focus {
	outline: 2px solid #00D3B7;
	outline-offset: 2px;
}

.bd-consent-btn-accept {
	background: #333;
	color: #fff;
}

.bd-consent-btn-settings,
.bd-consent-btn-save {
	background: transparent;
	border-color: #aaa;
	color: #555;
	font-weight: 400;
}

.bd-consent-btn-save {
	display: none;
}

#bd-consent-root.is-settings .bd-consent-btn-save {
	display: inline-block;
}

#bd-consent-root.is-settings .bd-consent-btn-settings {
	display: none;
}

.bd-consent-categories {
	display: none;
	margin: 0 0 1rem 0;
	padding: 0;
	list-style: none;
}

#bd-consent-root.is-settings .bd-consent-categories {
	display: block;
}

.bd-consent-cat {
	border: 1px solid #e5e5e5;
	padding: 0.85rem 1rem;
	margin: 0 0 0.6rem 0;
}

.bd-consent-cat label {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	cursor: pointer;
	margin: 0;
	color: #444;
}

.bd-consent-cat input {
	margin-top: 0.25rem;
	flex-shrink: 0;
}

.bd-consent-cat strong {
	display: block;
	color: #333;
	font-weight: 700;
	margin-bottom: 0.2rem;
}

.bd-consent-cat span {
	display: block;
	font-size: 0.85rem;
	color: #666;
}

.bd-consent-cat.is-locked label {
	cursor: default;
	opacity: 0.95;
}

@media screen and (max-width: 640px) {
	.bd-consent-btn {
		min-width: 100%;
	}
}
