/* Cookie consent banner (markup in inc/cookie-consent.php). */

.pd-cc [hidden],
#pd-cc[hidden] {
	display: none !important;
}

.pd-cc {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99990;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	margin: 0 auto;
	overflow-y: auto;
	background: #fff;
	color: #555;
	border-radius: 8px;
	box-shadow: 0 6px 32px rgba(0, 0, 0, 0.22);
	font-size: 14px;
	line-height: 1.5;
}

.pd-cc-inner {
	position: relative;
	padding: 20px 24px;
}

.pd-cc .pd-cc-title {
	margin: 0 0 8px;
	padding-right: 32px;
	color: #242424;
	font-size: 18px;
	line-height: 1.3;
}

.pd-cc-text,
.pd-cc-gpc {
	margin: 0 0 12px;
}

.pd-cc-text a {
	color: var(--wd-primary-color, #007bc4);
	text-decoration: underline;
}

.pd-cc-gpc {
	padding: 8px 12px;
	background: #eef6fb;
	border-radius: 4px;
}

.pd-cc-cat {
	padding: 10px 0;
	border-top: 1px solid #eee;
}

.pd-cc-switch {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	color: #242424;
	font-weight: 600;
	cursor: pointer;
}

.pd-cc-switch input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.pd-cc-cat-desc {
	margin: 4px 0 0 26px;
	font-size: 13px;
}

.pd-cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 16px;
}

/* Reject and Accept share one style on purpose: neither may be more prominent. */
.pd-cc .pd-cc-btn {
	flex: 1 1 160px;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid var(--wd-primary-color, #007bc4);
	border-radius: 4px;
	background: var(--wd-primary-color, #007bc4);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.pd-cc .pd-cc-btn:hover {
	filter: brightness(0.92);
}

.pd-cc .pd-cc-link,
.pd-cc .pd-cc-close,
.pd-cc-open {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.pd-cc .pd-cc-link,
.pd-cc-open {
	text-decoration: underline;
}

.pd-cc .pd-cc-link {
	flex: 0 0 auto;
	padding: 10px 4px;
	color: #242424;
	font-weight: 600;
}

.pd-cc .pd-cc-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	color: #777;
	font-size: 26px;
	line-height: 1;
}

.pd-cc button:focus-visible,
.pd-cc-open:focus-visible {
	outline: 2px solid #242424;
	outline-offset: 2px;
}

.wd-copyrights .pd-cc-open {
	margin-left: 12px;
}

.pd-cookie-policy table {
	width: 100%;
	margin-bottom: 24px;
}

.pd-cookie-policy th,
.pd-cookie-policy td {
	padding: 8px;
	vertical-align: top;
	text-align: left;
}

@media (max-width: 575px) {
	.pd-cc {
		right: 8px;
		bottom: 8px;
		left: 8px;
		max-height: calc(100vh - 16px);
	}

	.pd-cc-inner {
		padding: 16px;
	}

	.pd-cc .pd-cc-link {
		flex-basis: 100%;
		text-align: center;
	}
}
