.msc-consent-banner[hidden],
.msc-consent-modal[hidden] {
	display: none !important;
}

.msc-consent-banner {
	position: fixed;
	z-index: 99998;
	left: 16px;
	right: 16px;
	bottom: 16px;
	font-family: inherit;
}

.msc-consent-bottom {
	left: 16px;
	right: 16px;
	bottom: 16px;
}

.msc-consent-bottom-left {
	left: 16px;
	right: auto;
	bottom: 16px;
	max-width: 520px;
}

.msc-consent-bottom-right {
	left: auto;
	right: 16px;
	bottom: 16px;
	max-width: 520px;
}

.msc-consent-center {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.28);
	padding: 16px;
}

.msc-consent-box {
	max-width: 1180px;
	margin: 0 auto;
	background: #fff;
	color: #151515;
	border: 1px solid rgba(0,0,0,.08);
	box-shadow: 0 16px 50px rgba(0,0,0,.18);
	border-radius: 18px;
	padding: 18px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: center;
}

.msc-consent-layout-card .msc-consent-box,
.msc-consent-center .msc-consent-box,
.msc-consent-bottom-left .msc-consent-box,
.msc-consent-bottom-right .msc-consent-box {
	grid-template-columns: 1fr;
	max-width: 520px;
}

.msc-consent-title {
	display: block;
	font-size: 18px;
	line-height: 1.25;
	margin-bottom: 6px;
}

.msc-consent-text,
.msc-consent-text p {
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 8px;
	color: #4b5563;
}

.msc-consent-policy,
.msc-cookie-settings-link {
	color: var(--msc-accent, #2EC335);
	text-decoration: underline;
	cursor: pointer;
	background: transparent;
	border: 0;
	padding: 0;
	font: inherit;
}

.msc-consent-actions,
.msc-consent-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.msc-consent-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.msc-consent-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.48);
}

.msc-consent-modal-card {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(86vh, 760px);
	overflow: auto;
	background: #fff;
	color: #151515;
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(0,0,0,.28);
	padding: 24px;
}

.msc-consent-modal-card h2 {
	margin-top: 0;
}

.msc-consent-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,.12);
	background: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.msc-consent-categories {
	display: grid;
	gap: 12px;
	margin: 18px 0;
}

.msc-consent-category {
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 14px;
	background: #f8fafc;
}

.msc-consent-category-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.msc-consent-category input[type="checkbox"] {
	width: auto;
	min-width: 18px;
}

body.msc-consent-modal-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.msc-consent-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}
	.msc-consent-box {
		grid-template-columns: 1fr;
		padding: 15px;
	}
	.msc-consent-actions,
	.msc-consent-modal-actions {
		justify-content: stretch;
	}
	.msc-consent-actions .msc-btn,
	.msc-consent-modal-actions .msc-btn {
		flex: 1 1 100%;
	}
}
