/* MayWorks Cookie Consent */
.mwcc-banner, .mwcc-overlay, .mwcc-reopen, .mwcc-placeholder {
	--mwcc-radius: 10px;
	--mwcc-shadow: 0 10px 40px rgba(0, 20, 60, .18);
	font-family: inherit;
	box-sizing: border-box;
}
.mwcc-banner *, .mwcc-overlay *, .mwcc-placeholder * { box-sizing: border-box; }
[hidden].mwcc-banner, [hidden].mwcc-overlay, [hidden].mwcc-reopen { display: none !important; }

/* ---------- banner ---------- */
.mwcc-banner {
	position: fixed;
	z-index: 99990;
	color: var(--mwcc-text);
	background: var(--mwcc-bg);
	box-shadow: var(--mwcc-shadow);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .35s ease, transform .35s ease;
}
.mwcc-banner.is-visible { opacity: 1; transform: none; }
.mwcc-banner.is-bar {
	left: 0;
	right: 0;
	bottom: 0;
	border-top: 4px solid var(--mwcc-accent);
}
.mwcc-banner.is-bar .mwcc-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 15px;
	display: flex;
	align-items: center;
	gap: 18px 36px;
}
.mwcc-banner.is-box {
	left: 20px;
	bottom: 20px;
	width: calc(100% - 40px);
	max-width: 420px;
	border-radius: var(--mwcc-radius);
	border-top: 4px solid var(--mwcc-accent);
}
.mwcc-banner.is-box .mwcc-banner-inner { padding: 22px 22px 20px; }
.mwcc-banner-text { flex: 1; min-width: 0; }
.mwcc-title {
	margin: 0 0 4px !important;
	font-weight: 700;
	font-size: 17px !important;
	line-height: 1.4 !important;
	color: var(--mwcc-dark);
}
.mwcc-message { margin: 0 !important; font-size: 14.5px !important; line-height: 1.6 !important; color: var(--mwcc-text); }
.mwcc-message a { color: var(--mwcc-accent); text-decoration: underline; text-underline-offset: 2px; }
.mwcc-message a:hover { color: var(--mwcc-dark); }
.mwcc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: none; }
.mwcc-banner.is-box .mwcc-actions { margin-top: 16px; }
.mwcc-banner.is-box .mwcc-actions .mwcc-btn:not(.mwcc-btn-link) { flex: 1 1 140px; }

/* ---------- buttons ---------- */
.mwcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 6px;
	border: 2px solid var(--mwcc-accent);
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .2px;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.mwcc-btn-solid { background: var(--mwcc-accent); color: #fff; }
.mwcc-btn-solid:hover, .mwcc-btn-solid:focus-visible { background: var(--mwcc-dark); border-color: var(--mwcc-dark); color: #fff; }
.mwcc-btn-outline { background: transparent; color: var(--mwcc-dark); border-color: var(--mwcc-dark); }
.mwcc-btn-outline:hover, .mwcc-btn-outline:focus-visible { background: var(--mwcc-dark); color: #fff; }
.mwcc-btn-link {
	background: transparent;
	border-color: transparent;
	color: var(--mwcc-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-left: 8px;
	padding-right: 8px;
}
.mwcc-btn-link:hover, .mwcc-btn-link:focus-visible { color: var(--mwcc-accent); }
.mwcc-btn:focus-visible, .mwcc-close:focus-visible, .mwcc-reopen:focus-visible { outline: 3px solid var(--mwcc-accent); outline-offset: 2px; }

/* ---------- preferences dialog ---------- */
.mwcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 6, 30, .55);
	opacity: 0;
	transition: opacity .25s;
}
.mwcc-overlay.is-open { opacity: 1; }
.mwcc-dialog {
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	background: var(--mwcc-bg);
	color: var(--mwcc-text);
	border-radius: var(--mwcc-radius);
	box-shadow: var(--mwcc-shadow);
	overflow: hidden;
	transform: translateY(14px) scale(.98);
	transition: transform .25s;
	outline: 0;
}
.mwcc-overlay.is-open .mwcc-dialog { transform: none; }
.mwcc-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(0, 51, 102, .1);
}
.mwcc-dialog-head h2 { margin: 0 !important; font-size: 20px !important; line-height: 1.3 !important; color: var(--mwcc-dark); }
.mwcc-close {
	display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: rgba(0, 51, 102, .07); color: var(--mwcc-dark); cursor: pointer;
}
.mwcc-close:hover { background: var(--mwcc-accent); color: #fff; }
.mwcc-dialog-body { padding: 18px 24px 8px; overflow-y: auto; }
.mwcc-dialog-body > p { margin: 0 0 16px !important; font-size: 14.5px !important; line-height: 1.6 !important; }
.mwcc-cat {
	padding: 14px 16px;
	margin-bottom: 12px;
	border: 1px solid rgba(0, 51, 102, .12);
	border-radius: 8px;
}
.mwcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; margin: 0; }
.mwcc-cat-name { font-weight: 700; color: var(--mwcc-dark); font-size: 15.5px; }
.mwcc-cat p { margin: 6px 0 0 !important; font-size: 13.5px !important; line-height: 1.55 !important; }
.mwcc-always { font-size: 12.5px; font-weight: 700; color: var(--mwcc-accent); text-transform: uppercase; letter-spacing: .5px; }

.mwcc-switch { position: relative; flex: none; width: 46px; height: 26px; }
.mwcc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.mwcc-switch span {
	position: absolute; inset: 0; border-radius: 13px; background: #c5ceda; transition: background .2s;
}
.mwcc-switch span::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, .25); transition: transform .2s;
}
.mwcc-switch input:checked + span { background: var(--mwcc-accent); }
.mwcc-switch input:checked + span::after { transform: translateX(20px); }
.mwcc-switch input:focus-visible + span { outline: 3px solid var(--mwcc-accent); outline-offset: 2px; }

.mwcc-dialog-foot {
	display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
	padding: 16px 24px 20px;
	border-top: 1px solid rgba(0, 51, 102, .1);
}
html.mwcc-lock { overflow: hidden; }

/* ---------- reopen button ---------- */
.mwcc-reopen {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99980;
	width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center;
	border: 0; cursor: pointer;
	background: var(--mwcc-bg);
	color: var(--mwcc-dark);
	box-shadow: 0 4px 16px rgba(0, 20, 60, .2);
	transition: transform .2s, color .2s;
}
.mwcc-reopen:hover { transform: scale(1.08); color: var(--mwcc-accent); }

/* ---------- blocked-embed placeholder ---------- */
.mwcc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 220px;
	padding: 24px;
	text-align: center;
	color: #fff;
	background: linear-gradient(150deg, var(--mwcc-dark), #00061e);
	border-radius: 8px;
}
.wp-has-aspect-ratio .mwcc-placeholder,
.wp-block-embed__wrapper > .mwcc-placeholder { position: absolute; inset: 0; min-height: 0; }
.mwcc-ph-inner { max-width: 440px; }
.mwcc-ph-inner svg { color: var(--mwcc-accent); }
.mwcc-ph-inner p { margin: 10px 0 16px !important; color: #e7eefb; font-size: 15px !important; line-height: 1.5 !important; }
.mwcc-ph-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mwcc-placeholder .mwcc-btn-outline { color: #fff; border-color: rgba(255, 255, 255, .7); }
.mwcc-placeholder .mwcc-btn-outline:hover { background: #fff; color: var(--mwcc-dark); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
	.mwcc-banner.is-bar .mwcc-banner-inner { flex-direction: column; align-items: stretch; padding: 16px 15px 14px; gap: 12px; }
	.mwcc-banner .mwcc-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.mwcc-banner .mwcc-actions .mwcc-btn-link { grid-column: 1 / -1; grid-row: 2; min-height: 36px; }
	.mwcc-banner.is-box { left: 10px; bottom: 10px; width: calc(100% - 20px); }
	.mwcc-dialog-foot .mwcc-btn { flex: 1 1 140px; }
	.mwcc-message { font-size: 13.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.mwcc-banner, .mwcc-overlay, .mwcc-dialog, .mwcc-switch span, .mwcc-switch span::after { transition: none !important; }
}
@media print { .mwcc-banner, .mwcc-overlay, .mwcc-reopen { display: none !important; } }
