.mgc-root,
.mgc-root * {
	box-sizing: border-box;
}

.mgc-root[hidden],
.mgc-banner[hidden],
.mgc-settings[hidden],
.mgc-floating-btn[hidden] {
	display: none !important;
}

.mgc-overlay {
	background: rgba(5, 14, 25, 0.54);
	inset: 0;
	position: fixed;
	z-index: 999998;
}

.mgc-banner,
.mgc-settings {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
	color: #172033;
	font-family: inherit;
	line-height: 1.45;
	max-width: min(92vw, 520px);
	padding: 22px;
	position: fixed;
	right: 24px;
	z-index: 999999;
}

.mgc-banner {
	bottom: 24px;
}

.mgc-settings {
	bottom: 24px;
}

.mgc-title {
	color: #172033;
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.mgc-description,
.mgc-settings-text,
.mgc-help {
	font-size: 14px;
	margin: 0 0 16px;
}

.mgc-description a {
	color: #2E9FC8;
	text-decoration: underline;
}

.mgc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.mgc-btn {
	align-items: center;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mgc-btn:hover,
.mgc-btn:focus {
	transform: translateY(-1px);
}

.mgc-btn-primary {
	background: #5BC5EC;
	color: #ffffff;
}

.mgc-btn-primary:hover,
.mgc-btn-primary:focus {
	background: #3BAFD4;
	color: #ffffff;
}

.mgc-btn-secondary {
	background: #e7ecf8;
	color: #172033;
}

.mgc-btn-secondary:hover,
.mgc-btn-secondary:focus {
	background: #d4ddf2;
	color: #172033;
}

.mgc-btn-link {
	background: transparent;
	color: #2E9FC8;
	padding-left: 0;
	padding-right: 0;
	text-decoration: underline;
}

.mgc-toggle-row {
	align-items: center;
	background: #f5f7fb;
	border: 1px solid #e2e8f4;
	border-radius: 10px;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 12px 0;
	padding: 14px;
}

.mgc-toggle-row-marketing {
	align-items: center;
}

.mgc-toggle-copy {
	min-width: 0;
	padding-right: 8px;
}

.mgc-toggle-row strong {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.mgc-help {
	color: #5b6473;
	margin-bottom: 0;
}

.mgc-badge {
	background: #D9F3FB;
	border-radius: 999px;
	color: #172033;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 10px;
	white-space: nowrap;
}

#mgc-root .mgc-toggle,
#mgc-root .mgc-toggle:hover,
#mgc-root .mgc-toggle:focus,
#mgc-root .mgc-toggle:active {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	display: inline-block;
	flex-shrink: 0;
	line-height: 1;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	vertical-align: middle;
}

#mgc-root .mgc-toggle-track {
	background: #cbd5e1 !important;
	border: 0 !important;
	border-radius: 999px !important;
	display: block !important;
	height: 30px !important;
	position: relative !important;
	transition: background-color 0.2s ease;
	width: 52px !important;
}

#mgc-root .mgc-toggle-knob {
	background: #ffffff !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28) !important;
	display: block !important;
	height: 24px !important;
	left: 3px !important;
	position: absolute !important;
	top: 3px !important;
	transition: transform 0.2s ease;
	width: 24px !important;
}

#mgc-root .mgc-toggle[aria-checked="true"] .mgc-toggle-track {
	background: #5BC5EC !important;
}

#mgc-root .mgc-toggle[aria-checked="true"] .mgc-toggle-knob {
	transform: translateX(22px);
}

#mgc-root .mgc-toggle:focus-visible .mgc-toggle-track {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #5BC5EC !important;
}

.mgc-floating-btn {
	align-items: center;
	background: #5BC5EC;
	border: 0;
	border-radius: 12px 12px 0 0;
	bottom: -39px;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
	color: #ffffff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	height: 44px;
	justify-content: center;
	letter-spacing: 0.01em;
	min-width: 132px;
	padding: 0 16px;
	position: fixed;
	right: 24px;
	text-transform: none;
	transition: bottom 0.22s ease, background-color 0.18s ease, box-shadow 0.18s ease;
	z-index: 999997;
}

.mgc-floating-btn:hover,
.mgc-floating-btn:focus,
.mgc-floating-btn:active,
.mgc-floating-btn:visited {
	background: #3BAFD4;
	bottom: 0;
	box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.28);
	color: #ffffff !important;
	outline: none;
}

.mgc-floating-btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -5px;
}

.mgc-floating-btn span {
	color: #ffffff !important;
	display: block;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.mgc-banner,
	.mgc-settings {
		border-radius: 14px 14px 0 0;
		bottom: 0;
		left: 0;
		max-width: none;
		right: 0;
		width: 100%;
	}

	.mgc-actions {
		flex-direction: column;
	}

	.mgc-btn {
		width: 100%;
	}

	.mgc-toggle-row {
		align-items: flex-start;
		flex-direction: column;
	}

	#mgc-root .mgc-toggle {
		align-self: flex-end;
	}

	.mgc-floating-btn {
		right: 14px;
	}
}
