/* Moderaigent Privacy Choices — matches the Cookie Preferences Design board. */

.mpc-root {
	--mpc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mpc-ink: #111827;
	--mpc-text: #1f2937;
	--mpc-muted: #4b5563;
	--mpc-line: #e5e7eb;
	--mpc-blue: #2563eb;
	--mpc-blue-dark: #1d4ed8;
	--mpc-blue-darker: #1e3a8a;
	--mpc-switch-off: #64748b;
	font-family: var(--mpc-font);
	color: var(--mpc-text);
	-webkit-font-smoothing: antialiased;
	text-align: left;
	letter-spacing: normal;
	text-transform: none;
}
.mpc-root *,
.mpc-root *::before,
.mpc-root *::after { box-sizing: border-box; }

.mpc-root h2,
.mpc-root p,
.mpc-root label,
.mpc-root span {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
	padding: 0;
}

.mpc-root .mpc-link,
.mpc-root a.mpc-link {
	color: var(--mpc-blue-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: inherit;
}
.mpc-root .mpc-link:hover { color: var(--mpc-blue-darker); }

/* ---------- Buttons: identical size, weight and style everywhere ---------- */

.mpc-root .mpc-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	min-height: 48px;
	height: auto;
	padding: 10px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	color: var(--mpc-blue-dark);
	background: #ffffff;
	border: 2px solid var(--mpc-blue);
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.mpc-root .mpc-btn:hover,
.mpc-root .mpc-btn:active {
	color: var(--mpc-blue-dark);
	background: #eff6ff;
	border-color: var(--mpc-blue);
}
.mpc-root .mpc-btn:focus { outline: none; }
.mpc-root .mpc-btn:focus-visible,
.mpc-root .mpc-close:focus-visible,
.mpc-root .mpc-switch:focus-visible,
.mpc-root a:focus-visible {
	outline: 3px solid var(--mpc-blue-dark);
	outline-offset: 2px;
}

.mpc-actions { display: flex; gap: 10px; }

/* ---------- Banner (UK/EU) and notice (US) ---------- */

.mpc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	background: #ffffff;
	border-top: 1px solid #d1d5db;
	box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
}
.mpc-banner__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 40px;
}
.mpc-banner--us .mpc-banner__inner { padding-top: 20px; padding-bottom: 20px; }
.mpc-banner__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mpc-root .mpc-banner__title {
	font-size: 17px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--mpc-ink);
}
.mpc-root .mpc-banner__body {
	font-size: 14px;
	line-height: 1.55;
	font-weight: 400;
	color: var(--mpc-muted);
}
.mpc-actions--banner {
	/* Equal columns: every banner button gets the same width as the widest one. */
	flex: none;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
}

/* ---------- Panel ---------- */

.mpc-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 24, 39, .55);
	overflow-y: auto;
}
.mpc-overlay[hidden] { display: none; }
html.mpc-modal-open { overflow: hidden; }

.mpc-panel {
	position: relative;
	width: 100%;
	max-width: 720px;
	background: #ffffff;
	border-radius: 16px;
	padding: 36px 40px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	color: var(--mpc-text);
}
.mpc-panel--modal {
	margin: auto;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.mpc-panel--inline {
	margin: 0 auto;
	border: 1px solid var(--mpc-line);
}
.mpc-panel__head { display: flex; flex-direction: column; gap: 8px; }
.mpc-root .mpc-panel__title {
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--mpc-ink);
	padding-right: 32px;
}
.mpc-root .mpc-panel__title:focus { outline: none; }
.mpc-root .mpc-panel__intro {
	font-size: 15px;
	line-height: 1.55;
	color: var(--mpc-muted);
}

.mpc-root .mpc-close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 26px;
	line-height: 1;
	font-weight: 400;
	color: var(--mpc-muted);
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
}
.mpc-root .mpc-close:hover { background: #f3f4f6; color: var(--mpc-ink); }

.mpc-root .mpc-gpc {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: #1e3a8a;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	padding: 10px 14px;
}
.mpc-root .mpc-gpc[hidden] { display: none; }

.mpc-rows { display: flex; flex-direction: column; border-top: 1px solid var(--mpc-line); }
.mpc-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid var(--mpc-line);
}
.mpc-row__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mpc-root .mpc-row__label {
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--mpc-ink);
	cursor: pointer;
}
.mpc-root .mpc-row__desc { font-size: 14px; line-height: 1.5; color: var(--mpc-muted); }
.mpc-row__control { display: flex; align-items: center; gap: 10px; padding-top: 2px; flex: none; }
.mpc-root .mpc-always { font-size: 13px; font-weight: 600; color: var(--mpc-muted); white-space: nowrap; }

/* Toggle switch */
.mpc-root .mpc-switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 48px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--mpc-switch-off);
	cursor: pointer;
	transition: background-color .15s ease;
}
.mpc-root .mpc-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: left .15s ease;
}
.mpc-root .mpc-switch:checked { background: var(--mpc-blue); }
.mpc-root .mpc-switch:checked::after { left: 23px; }
.mpc-root .mpc-switch:disabled { opacity: .6; cursor: not-allowed; }

.mpc-root .mpc-note { font-size: 13px; line-height: 1.5; color: var(--mpc-muted); }

.mpc-actions--panel { gap: 12px; flex-wrap: wrap; }
.mpc-actions--panel .mpc-btn { flex: 1 1 0; min-width: 160px; font-size: 15px; }

.mpc-root .mpc-saved {
	font-size: 14px;
	font-weight: 600;
	color: #166534;
	min-height: 1px;
}
.mpc-root .mpc-saved:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
	.mpc-root .mpc-switch,
	.mpc-root .mpc-switch::after,
	.mpc-root .mpc-btn { transition: none; }
}

/* ---------- Tablet / phone ---------- */

@media (max-width: 900px) {
	.mpc-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
	.mpc-actions--banner { width: 100%; }
}

@media (max-width: 560px) {
	.mpc-actions--banner { grid-auto-flow: row; }
	.mpc-actions--banner .mpc-btn { width: 100%; white-space: normal; }
	.mpc-overlay { padding: 0; align-items: flex-end; }
	.mpc-panel { padding: 28px 20px 24px; gap: 18px; }
	.mpc-panel--modal { border-radius: 16px 16px 0 0; max-height: 100vh; max-height: 100dvh; overflow-y: auto; margin: 0; }
	.mpc-root .mpc-panel__title { font-size: 22px; }
	.mpc-actions--panel { flex-direction: column; }
	.mpc-actions--panel .mpc-btn { width: 100%; min-width: 0; flex: none; white-space: normal; }
}
