.mcc-cookie-root {
	--mcc-brand: rgba(40, 135, 217, 1);
	--mcc-brand-dark: #1f73bd;
	--mcc-border: rgba(16, 24, 40, 0.12);
	--mcc-text: #1f2937;
	--mcc-muted: #5b6472;
	color: var(--mcc-text);
	font-family: inherit;
}

.mcc-banner {
	align-items: center;
	background: #ffffff;
	border-top: 1px solid var(--mcc-border);
	bottom: 0;
	box-shadow: 0 -10px 34px rgba(16, 24, 40, 0.08);
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(280px, 620px) auto;
	justify-content: center;
	left: 0;
	min-height: 128px;
	padding: 26px 24px;
	position: fixed;
	right: 0;
	z-index: 99998;
}

.mcc-banner__copy {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
}

.mcc-banner__copy a,
.mcc-category a {
	color: var(--mcc-brand);
	font-weight: 700;
	text-decoration: none;
}

.mcc-banner__copy a:hover,
.mcc-category a:hover {
	text-decoration: underline;
}

.mcc-banner__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	text-align: center;
}

.mcc-button,
.mcc-icon-button,
.mcc-modal__close,
.mcc-preferences-link {
	appearance: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.mcc-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	min-height: 38px;
	min-width: 128px;
	padding: 0 20px;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.mcc-button--primary {
	background: var(--mcc-brand);
	color: #ffffff;
}

.mcc-button--primary:hover {
	background: var(--mcc-brand-dark);
}

.mcc-button--ghost {
	background: #ffffff;
	border-color: var(--mcc-border);
	color: var(--mcc-text);
}

.mcc-button--ghost:hover {
	background: #f6f9fc;
	border-color: rgba(40, 135, 217, 0.42);
}

.mcc-button--text {
	background: transparent;
	color: var(--mcc-brand);
	min-width: 92px;
	padding-inline: 14px;
}

.mcc-button--text:hover {
	color: var(--mcc-brand-dark);
}

.mcc-button--wide {
	flex: 1 1 220px;
}

.mcc-icon-button,
.mcc-modal__close {
	background: transparent;
	color: #8b95a1;
	font-size: 24px;
	height: 32px;
	line-height: 1;
	padding: 0;
	width: 32px;
}

.mcc-icon-button:hover,
.mcc-modal__close:hover {
	color: var(--mcc-text);
}

.mcc-modal-overlay {
	align-items: center;
	background: rgba(15, 23, 42, 0.42);
	display: flex;
	inset: 0;
	justify-content: center;
	overflow: auto;
	padding: 24px 16px;
	position: fixed;
	z-index: 99999;
}

.mcc-modal {
	background: #ffffff;
	border: 1px solid var(--mcc-border);
	border-radius: 6px;
	box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
	max-width: 720px;
	padding: 28px 32px 30px;
	position: relative;
	width: min(100%, 720px);
}

.mcc-modal > .mcc-modal__close {
	background: var(--mcc-brand);
	border-radius: 0 4px 4px 0;
	color: #ffffff;
	position: absolute;
	right: -40px;
	top: 0;
	z-index: 1;
}

.mcc-modal > .mcc-modal__close:hover {
	background: var(--mcc-brand-dark);
	color: #ffffff;
}

.mcc-modal__intro {
	color: var(--mcc-text);
	font-size: 14px;
	font-weight: 600;
	margin: 0 44px 20px 0;
}

.mcc-category {
	border: 0;
	padding: 0;
}

.mcc-category + .mcc-category {
	border-top: 1px solid rgba(16, 24, 40, 0.08);
	margin-top: 22px;
	padding-top: 22px;
}

.mcc-category__header {
	align-items: flex-start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) 58px;
}

.mcc-category h3 {
	color: var(--mcc-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 10px;
}

.mcc-category p {
	color: var(--mcc-muted);
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 10px;
}

.mcc-category a {
	color: var(--mcc-brand);
	font-size: 14px;
	font-weight: 500;
}

.mcc-toggle {
	display: inline-flex;
	height: 30px;
	position: relative;
	width: 52px;
}

.mcc-toggle input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.mcc-toggle__visual {
	background: #a7a7a7;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
	inset: 0;
	position: absolute;
	transition: background-color 160ms ease;
}

.mcc-toggle__visual::after {
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	content: "";
	height: 26px;
	left: 2px;
	position: absolute;
	top: 2px;
	transition: transform 160ms ease;
	width: 26px;
}

.mcc-toggle input:checked + .mcc-toggle__visual {
	background: var(--mcc-brand);
}

.mcc-toggle input:checked + .mcc-toggle__visual::after {
	transform: translateX(22px);
}

.mcc-toggle input:disabled + .mcc-toggle__visual {
	background: #ececec;
}

.mcc-toggle input:focus-visible + .mcc-toggle__visual {
	outline: 2px solid var(--mcc-brand);
	outline-offset: 3px;
}

.mcc-modal__footer {
	display: flex;
	gap: 12px;
	margin-top: 30px;
}

.mcc-preferences-link {
	background: none;
	color: currentColor;
	padding: 0;
	text-decoration: underline;
}

.mcc-floating-preferences {
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--mcc-border);
	border-radius: 4px;
	bottom: 14px;
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.14);
	color: var(--mcc-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	min-height: 34px;
	padding: 0 14px;
	position: fixed;
	right: 14px;
	z-index: 99997;
}

.mcc-floating-preferences:hover {
	border-color: var(--mcc-brand);
	color: var(--mcc-brand-dark);
}

.mcc-sr-only {
	border: 0;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (max-width: 900px) {
	.mcc-banner {
		grid-template-columns: 1fr;
		justify-content: stretch;
	}

	.mcc-banner__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.mcc-banner {
		gap: 14px;
		grid-template-columns: 1fr;
		min-height: auto;
		padding: 18px 16px 20px;
	}

	.mcc-banner__copy {
		font-size: 13px;
		line-height: 1.45;
	}

	.mcc-banner__actions {
		display: grid;
		gap: 10px;
		grid-column: 1 / -1;
		grid-template-columns: 1fr 1fr;
		justify-content: stretch;
	}

	.mcc-button {
		min-height: 40px;
		min-width: 0;
		padding: 0 12px;
		width: 100%;
	}

	.mcc-banner__actions .mcc-button--text {
		grid-column: 1 / -1;
		justify-self: center;
		width: min(100%, 220px);
	}

	.mcc-modal-overlay {
		align-items: center;
		padding: 56px 14px 18px;
	}

	.mcc-modal {
		max-height: calc(100dvh - 74px);
		overflow: auto;
		padding: 22px 18px 20px;
		width: 100%;
	}

	.mcc-modal > .mcc-modal__close {
		border-radius: 4px;
		right: 0;
		top: -42px;
	}

	.mcc-modal__intro {
		font-size: 13px;
		line-height: 1.35;
		margin: 0 0 18px;
	}

	.mcc-category + .mcc-category {
		margin-top: 18px;
		padding-top: 18px;
	}

	.mcc-category__header {
		gap: 14px;
		grid-template-columns: minmax(0, 1fr) 50px;
	}

	.mcc-category h3 {
		font-size: 19px;
		margin-bottom: 8px;
	}

	.mcc-category p {
		font-size: 14px;
		line-height: 1.42;
	}

	.mcc-modal__footer {
		display: grid;
		gap: 10px;
		grid-template-columns: 1fr 1fr;
		margin-top: 24px;
	}

	.mcc-button--wide {
		flex: none;
	}

	.mcc-floating-preferences {
		bottom: 10px;
		font-size: 10px;
		min-height: 32px;
		right: 10px;
	}
}

@media (max-width: 360px) {
	.mcc-banner__actions,
	.mcc-modal__footer {
		grid-template-columns: 1fr;
	}

	.mcc-banner__actions .mcc-button--text {
		grid-column: auto;
		width: 100%;
	}
}

/* Defensive overrides: keep common theme/plugin button and modal CSS out of this UI. */
#mcc-cookie-root,
#mcc-cookie-root * {
	box-sizing: border-box !important;
	letter-spacing: 0 !important;
}

#mcc-cookie-root .mcc-banner {
	background: #ffffff !important;
	border-top: 1px solid var(--mcc-border) !important;
	bottom: 0 !important;
	box-shadow: 0 -10px 34px rgba(16, 24, 40, 0.08) !important;
	display: grid !important;
	grid-template-columns: minmax(280px, 620px) auto !important;
	left: 0 !important;
	position: fixed !important;
	right: 0 !important;
	z-index: 99998 !important;
}

#mcc-cookie-root .mcc-button,
#mcc-cookie-root .mcc-icon-button,
#mcc-cookie-root .mcc-modal__close,
#mcc-cookie-root .mcc-floating-preferences {
	appearance: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	font-family: inherit !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: none !important;
}

#mcc-cookie-root .mcc-button {
	align-items: center !important;
	border-radius: 4px !important;
	display: inline-flex !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	justify-content: center !important;
	min-height: 38px !important;
	min-width: 128px !important;
	padding: 0 20px !important;
	text-align: center !important;
}

#mcc-cookie-root .mcc-button--primary {
	background: var(--mcc-brand) !important;
	border: 1px solid var(--mcc-brand) !important;
	color: #ffffff !important;
}

#mcc-cookie-root .mcc-button--ghost {
	background: #ffffff !important;
	border: 1px solid var(--mcc-border) !important;
	color: var(--mcc-text) !important;
}

#mcc-cookie-root .mcc-button--text {
	background: transparent !important;
	border: 1px solid transparent !important;
	color: var(--mcc-brand) !important;
}

#mcc-cookie-root .mcc-modal-overlay {
	align-items: center !important;
	background: rgba(15, 23, 42, 0.42) !important;
	display: flex !important;
	inset: 0 !important;
	justify-content: center !important;
	overflow: auto !important;
	position: fixed !important;
	z-index: 99999 !important;
}

#mcc-cookie-root .mcc-modal {
	background: #ffffff !important;
	border: 1px solid var(--mcc-border) !important;
	border-radius: 6px !important;
	box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24) !important;
	max-width: 720px !important;
	position: relative !important;
	width: min(100%, 720px) !important;
}

@media (max-width: 640px) {
	#mcc-cookie-root .mcc-banner {
		gap: 14px !important;
		grid-template-columns: 1fr !important;
		min-height: auto !important;
		padding: 18px 16px 20px !important;
	}

	#mcc-cookie-root .mcc-banner__actions {
		display: grid !important;
		gap: 10px !important;
		grid-column: 1 / -1 !important;
		grid-template-columns: 1fr 1fr !important;
		width: 100% !important;
	}

	#mcc-cookie-root .mcc-banner__actions .mcc-button--text {
		grid-column: 1 / -1 !important;
		justify-self: center !important;
		width: min(100%, 220px) !important;
	}

	#mcc-cookie-root .mcc-button {
		min-height: 40px !important;
		min-width: 0 !important;
		padding: 0 12px !important;
		width: 100% !important;
	}

	#mcc-cookie-root .mcc-modal-overlay {
		padding: 56px 14px 18px !important;
	}

	#mcc-cookie-root .mcc-modal {
		max-height: calc(100dvh - 74px) !important;
		overflow: auto !important;
		padding: 22px 18px 20px !important;
		width: 100% !important;
	}

	#mcc-cookie-root .mcc-modal__footer {
		display: grid !important;
		gap: 10px !important;
		grid-template-columns: 1fr 1fr !important;
		margin-top: 24px !important;
	}

	#mcc-cookie-root .mcc-button--wide {
		flex: none !important;
	}

	#mcc-cookie-root .mcc-modal > .mcc-modal__close {
		background: var(--mcc-brand) !important;
		border: 0 !important;
		border-radius: 4px !important;
		color: #ffffff !important;
		height: 32px !important;
		position: absolute !important;
		right: 0 !important;
		top: -42px !important;
		width: 32px !important;
	}
}

@media (max-width: 360px) {
	#mcc-cookie-root .mcc-banner__actions,
	#mcc-cookie-root .mcc-modal__footer {
		grid-template-columns: 1fr !important;
	}

	#mcc-cookie-root .mcc-banner__actions .mcc-button--text {
		grid-column: auto !important;
		width: 100% !important;
	}
}
