/* WhyDenied — cookie consent banner. Brand: navy #152039 / amber #E8963E / cream.
 * Copy MSI-Legal-approved 2026-06-24. 3-tier, opt-in (Analytics + Marketing default off). */
.wd-consent {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
	background: #152039; color: #fff;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .3);
	padding: 20px 22px;
	max-height: 92vh; overflow-y: auto; /* scroll if the Manage panel is taller than the viewport */
}
.wd-consent[hidden] { display: none; }
.wd-consent__inner {
	max-width: 1120px; margin: 0 auto;
	display: flex; flex-wrap: wrap; gap: 14px 28px;
	align-items: center; justify-content: space-between;
}
.wd-consent__copy { flex: 1 1 380px; min-width: 260px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.wd-consent__copy .wd-consent__title { font-size: 16px; margin: 0 0 4px; color: #fff; font-weight: 700; }
.wd-consent__copy p { margin: 0; }
.wd-consent__copy a { color: #E8963E; text-decoration: underline; }

/* Action buttons */
.wd-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.wd-consent__btn {
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
	border-radius: 10px; padding: 11px 18px; border: 1px solid transparent; line-height: 1;
}
.wd-consent__btn--accept { background: #E8963E; color: #152039; }
.wd-consent__btn--accept:hover { background: #D4852F; }
.wd-consent__btn--reject { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.wd-consent__btn--ghost { background: transparent; color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .2); }
.wd-consent__btn--ghost:hover { border-color: rgba(255, 255, 255, .45); }
.wd-consent__btn--save { background: rgba(255, 255, 255, .12); color: #fff; }
.wd-consent__btn--save:hover { background: rgba(255, 255, 255, .2); }

/* "Manage choices" disclosure panel */
.wd-consent__manage { flex: 1 1 100%; margin-top: 2px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.wd-consent__manage[hidden] { display: none; }
.wd-consent__opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.wd-consent__opt { font-size: 13px; }
.wd-consent__opt-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.wd-consent__opt-head span { color: rgba(255, 255, 255, .5); font-weight: 400; }
.wd-consent__opt-head input { accent-color: #E8963E; width: 16px; height: 16px; flex: 0 0 auto; }
.wd-consent__opt-head input:disabled { opacity: .55; }
.wd-consent__opt-desc { margin: 6px 0 0; color: rgba(255, 255, 255, .68); line-height: 1.45; }
.wd-consent__dns { margin: 8px 0 0; }
.wd-consent__dns a { color: #E8963E; text-decoration: underline; font-weight: 600; }
.wd-consent__dns a[aria-disabled="true"] { color: rgba(255, 255, 255, .6); text-decoration: none; font-weight: 400; cursor: default; }
.wd-consent__manage-actions { margin-top: 16px; }

/* Legal footer (Privacy Policy) */
.wd-consent__legal { flex: 1 1 100%; margin: 12px 0 0; font-size: 12px; }
.wd-consent__legal a { color: rgba(255, 255, 255, .7); text-decoration: underline; }

/* Persistent footer privacy links — the [wd_cookie_settings] shortcode (inherits the theme
 * footer's colors; only the opted-out state is themed here). */
.wd-cookie-links a { text-decoration: underline; }
[data-wd-consent-dns][aria-disabled="true"] { text-decoration: none; cursor: default; opacity: .8; }

@media (min-width: 760px) {
	.wd-consent__opts { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
	.wd-consent__actions { width: 100%; }
	.wd-consent__actions .wd-consent__btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
	.wd-consent { animation: wd-consent-in .25s ease-out; }
	@keyframes wd-consent-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
