/* WDS Cookie Consent - front-end banner styles */

.wdscc-banner {
	--wdscc-brand: #1e5f4c;
	--wdscc-bg: #ffffff;
	--wdscc-text: #1a1a1a;
	--wdscc-border: #e2e2e2;
	position: fixed;
	z-index: 999999;
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	background: var(--wdscc-bg);
	color: var(--wdscc-text);
	border-top: 1px solid var(--wdscc-border);
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
	font-size: 15px;
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wdscc-banner[hidden] { display: none !important; }

.wdscc-banner * { box-sizing: border-box; }

.wdscc-banner.wdscc-pos-top {
	bottom: auto;
	top: 0;
	border-top: none;
	border-bottom: 1px solid var(--wdscc-border);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.wdscc-banner.wdscc-pos-bottom-left,
.wdscc-banner.wdscc-pos-bottom-right {
	left: auto;
	right: auto;
	bottom: 20px;
	max-width: 420px;
	border: 1px solid var(--wdscc-border);
	border-radius: 12px;
	margin: 0 20px;
}

.wdscc-banner.wdscc-pos-bottom-left { left: 0; }
.wdscc-banner.wdscc-pos-bottom-right { right: 0; }

.wdscc-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px;
}

.wdscc-banner-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 600;
}

.wdscc-banner-message {
	margin: 0 0 14px;
}

.wdscc-banner-message a {
	color: var(--wdscc-brand);
	text-decoration: underline;
}

.wdscc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wdscc-btn {
	appearance: none;
	border: 1px solid var(--wdscc-brand);
	background: #fff;
	color: var(--wdscc-brand);
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.wdscc-btn:hover { background: rgba(0, 0, 0, 0.04); }

.wdscc-btn-primary {
	background: var(--wdscc-brand);
	color: #fff;
}

.wdscc-btn-primary:hover { filter: brightness(1.08); }

.wdscc-banner-panel {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--wdscc-border);
}

.wdscc-banner-panel[hidden] { display: none !important; }

.wdscc-category-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--wdscc-border);
}

.wdscc-category-row:last-of-type { border-bottom: none; }

.wdscc-category-copy strong { display: block; margin-bottom: 2px; }
.wdscc-category-copy p { margin: 0; font-size: 13px; opacity: 0.8; }

.wdscc-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: none;
}

.wdscc-switch input { opacity: 0; width: 0; height: 0; }

.wdscc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #ccc;
	border-radius: 24px;
	transition: 0.15s;
}

.wdscc-slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: 0.15s;
}

.wdscc-switch input:checked + .wdscc-slider { background-color: var(--wdscc-brand); }
.wdscc-switch input:checked + .wdscc-slider::before { transform: translateX(18px); }
.wdscc-switch input:disabled + .wdscc-slider { opacity: 0.6; cursor: not-allowed; }

.wdscc-credit {
	margin: 14px 0 0;
	font-size: 12px;
	opacity: 0.65;
}

.wdscc-credit a { color: inherit; }

.wdscc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-size: 20px;
	cursor: pointer;
}

.wdscc-reopen[hidden] { display: none !important; }

@media (max-width: 640px) {
	.wdscc-banner-actions { flex-direction: column; }
	.wdscc-btn { width: 100%; }
	.wdscc-banner.wdscc-pos-bottom-left,
	.wdscc-banner.wdscc-pos-bottom-right {
		left: 0;
		right: 0;
		margin: 0 12px 12px;
		max-width: none;
	}
}
