/* Meelypops Cookie Consent */
.mpcc-banner,
.mpcc-modal {
	--mpcc-ink: #080808;
	--mpcc-text: #4a4a4a;
	--mpcc-line: #e1e1e1;
	--mpcc-soft: #f6f6f6;
	--mpcc-accent: #c62828;
	--mpcc-accent-dark: #a51d1d;
	font-family: 'Catamaran', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--mpcc-text);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.mpcc-banner[hidden],
.mpcc-modal[hidden] { display: none !important; }
.mpcc-banner *,
.mpcc-modal * { box-sizing: border-box; }

/* ---------- Banner ---------- */
.mpcc-banner {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 2147483646;
	width: 440px;
	max-width: calc(100vw - 32px);
	padding: 22px 22px 18px;
	background: #fff;
	border: 1px solid var(--mpcc-line);
	border-top: 3px solid var(--mpcc-accent);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .06);
	animation: mpcc-up .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes mpcc-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mpcc-banner, .mpcc-dialog { animation: none !important; } }

.mpcc-banner-title {
	margin: 0 0 6px;
	color: var(--mpcc-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.mpcc-banner p { margin: 0; }
.mpcc-banner-text p + p { margin-top: 0; }
.mpcc-banner a,
.mpcc-modal .mpcc-intro a { color: var(--mpcc-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mpcc-banner a:hover,
.mpcc-modal .mpcc-intro a:hover { color: var(--mpcc-accent); }

.mpcc-banner.is-optin .mpcc-msg-optout,
.mpcc-banner.is-optout .mpcc-msg-optin { display: none; }

/* Opt-out notice: lighter, no "Reject all" headline treatment */
.mpcc-banner.is-optout .mpcc-banner-title { display: none; }

.mpcc-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.mpcc-banner-actions .mpcc-btn-solid,
.mpcc-banner-actions .mpcc-btn-line { flex: 1 1 0; }
.mpcc-banner-actions .mpcc-btn-text { flex: 1 1 100%; }

/* ---------- Buttons ---------- */
.mpcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--mpcc-ink);
	border-radius: 8px;
	background: transparent;
	color: var(--mpcc-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
	box-shadow: none;
}
.mpcc-btn-solid { background: var(--mpcc-ink); color: #fff; }
.mpcc-btn-solid:hover { background: var(--mpcc-accent); border-color: var(--mpcc-accent); color: #fff; }
.mpcc-btn-line:hover { background: var(--mpcc-ink); color: #fff; }
.mpcc-btn-text {
	min-height: 36px;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}
.mpcc-btn-text:hover { color: var(--mpcc-accent); background: transparent; }
.mpcc-btn:focus-visible,
.mpcc-close:focus-visible,
.mpcc-footer-link:focus-visible,
.mpcc-switch input:focus-visible + span,
.mpcc-cat-cookies summary:focus-visible {
	outline: 2px solid var(--mpcc-accent);
	outline-offset: 2px;
}

/* ---------- Preferences dialog ---------- */
.mpcc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.mpcc-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 8, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.mpcc-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 580px;
	max-height: min(760px, calc(100vh - 48px));
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	outline: none;
	overflow: hidden;
	animation: mpcc-up .3s cubic-bezier(.2, .8, .2, 1);
}
html.mpcc-modal-open { overflow: hidden; }

.mpcc-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--mpcc-line);
}
.mpcc-dialog-head h2 {
	margin: 0;
	color: var(--mpcc-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.2;
}
.mpcc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: -6px -10px -6px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mpcc-ink);
	cursor: pointer;
}
.mpcc-close:hover { background: var(--mpcc-soft); }

.mpcc-dialog-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 6px 22px 10px;
	overscroll-behavior: contain;
}
.mpcc-intro { margin: 12px 0 6px; }
.mpcc-gpc-note {
	margin: 10px 0 4px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff6d6;
	color: #5a4500;
	font-size: 14px;
}

.mpcc-cat { padding: 16px 0; border-bottom: 1px solid var(--mpcc-line); }
.mpcc-cat:last-child { border-bottom: 0; }
.mpcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mpcc-cat-label { color: var(--mpcc-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.mpcc-cat-desc { margin: 4px 0 0; font-size: 14px; }

.mpcc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.mpcc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}
.mpcc-switch input:disabled { cursor: not-allowed; }
.mpcc-switch span {
	position: absolute;
	inset: 0;
	border-radius: 26px;
	background: #cfcfcf;
	transition: background-color .2s;
}
.mpcc-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;
}
.mpcc-switch input:checked + span { background: var(--mpcc-ink); }
.mpcc-switch input:checked + span::after { transform: translateX(20px); }
.mpcc-switch input:disabled + span { background: #8a8a8a; opacity: .6; }

.mpcc-cat-cookies { margin-top: 8px; font-size: 13px; }
.mpcc-cat-cookies summary {
	display: inline-block;
	color: var(--mpcc-ink);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.mpcc-cat-cookies summary::-webkit-details-marker { display: none; }
.mpcc-cat-cookies summary::after { content: ' \25BE'; }
.mpcc-cat-cookies[open] summary::after { content: ' \25B4'; }
.mpcc-cat-cookies ul { margin: 8px 0 0; padding: 8px 12px; list-style: none; border-radius: 8px; background: var(--mpcc-soft); }
.mpcc-cat-cookies li { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--mpcc-line); }
.mpcc-cat-cookies li:last-child { border-bottom: 0; }
.mpcc-cat-cookies code { padding: 0; background: none; color: var(--mpcc-ink); font-size: 12.5px; font-weight: 700; }

.mpcc-dialog-foot {
	display: flex;
	gap: 8px;
	padding: 14px 22px 18px;
	border-top: 1px solid var(--mpcc-line);
	background: #fff;
}
.mpcc-dialog-foot .mpcc-btn { flex: 1 1 0; padding: 0 10px; }

/* ---------- Footer link + declaration ---------- */
.mpcc-footer-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.mpcc-footer-link:hover { color: var(--mpcc-accent, #c62828); background: none; }

.mpcc-declaration-state { padding: 12px 14px; border-radius: 8px; background: #f6f6f6; }
.mpcc-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.mpcc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mpcc-table th,
.mpcc-table td { padding: 8px 10px; border-bottom: 1px solid #e1e1e1; text-align: left; vertical-align: top; }
.mpcc-table th { font-weight: 700; color: #080808; }
.mpcc-declaration-updated { font-size: 13px; color: #767676; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
	.mpcc-banner {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
		border: 0;
		border-top: 3px solid var(--mpcc-accent);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
		font-size: 14px;
	}
	.mpcc-banner-title { font-size: 16px; }
	.mpcc-banner-actions { margin-top: 14px; }
	.mpcc-modal { align-items: flex-end; padding: 0; }
	.mpcc-dialog {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 16px 16px 0 0;
	}
	.mpcc-dialog-head { padding: 14px 16px; }
	.mpcc-dialog-body { padding: 4px 16px 8px; }
	.mpcc-dialog-foot {
		flex-wrap: wrap;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	}
	.mpcc-dialog-foot .mpcc-btn-solid { flex: 1 1 100%; order: -1; }
	/* Keep floating site buttons out from under the banner */
	html.mpcc-banner-open #accessibility_settings_toggle,
	html.mpcc-banner-open .mp-back-to-top { visibility: hidden; }
}
