.xmlab-cc {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9990;
	font: inherit;
	color: #1d1d1f;
}
.xmlab-cc[hidden] { display: none !important; }
.xmlab-cc__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 56px 18px 22px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
	animation: xmlab-cc-in .35s ease both;
}
@keyframes xmlab-cc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.xmlab-cc__icon { flex: none; color: #1d1d1f; }
.xmlab-cc__text { flex: 1 1 auto; min-width: 0; }
.xmlab-cc__title { margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.xmlab-cc__desc { margin: 0; font-size: 13px; line-height: 1.5; color: #515154; }
.xmlab-cc__desc a { color: inherit; text-decoration: underline; }
.xmlab-cc__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.xmlab-cc__btn {
	appearance: none;
	min-height: 42px;
	padding: 0 20px;
	border: 1px solid #d2d2d7;
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.xmlab-cc__btn:hover { border-color: #1d1d1f; }
.xmlab-cc__btn--primary, .xmlab-cc__btn--save { background: #111; border-color: #111; color: #fff; }
.xmlab-cc__btn--primary:hover, .xmlab-cc__btn--save:hover { background: #333; border-color: #333; }
.xmlab-cc__btn[hidden] { display: none; }
.xmlab-cc__btn:focus-visible, .xmlab-cc__close:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }
.xmlab-cc__close {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1d1d1f;
	cursor: pointer;
}
.xmlab-cc__close:hover { background: #f5f5f7; }
.xmlab-cc.is-expanded .xmlab-cc__inner { align-items: flex-end; }
.xmlab-cc.is-expanded .xmlab-cc__close { top: 14px; transform: none; }
.xmlab-cc__prefs { display: grid; gap: 8px; margin-top: 12px; }
.xmlab-cc__prefs[hidden] { display: none; }
.xmlab-cc__pref {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #f5f5f7;
	font-size: 13px;
	line-height: 1.45;
	cursor: pointer;
}
.xmlab-cc__always { flex: none; font-size: 12px; font-weight: 600; color: #008a3e; }
.xmlab-cc__switch {
	flex: none;
	appearance: none;
	position: relative;
	width: 42px;
	height: 24px;
	margin: 0;
	border-radius: 999px;
	background: #d2d2d7;
	cursor: pointer;
	transition: background .2s;
}
.xmlab-cc__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: transform .2s;
}
.xmlab-cc__switch:checked { background: #111; }
.xmlab-cc__switch:checked::after { transform: translateX(18px); }
.xmlab-cc__switch:focus-visible { outline: 2px solid #0071e3; outline-offset: 2px; }

@media (max-width: 900px) {
	.xmlab-cc { left: 10px; right: 10px; bottom: 10px; }
	.xmlab-cc__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; max-height: calc(100vh - 20px); overflow: auto; }
	.xmlab-cc.is-expanded .xmlab-cc__inner { align-items: stretch; }
	.xmlab-cc__icon { display: none; }
	.xmlab-cc__text { padding-right: 32px; }
	.xmlab-cc__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.xmlab-cc__btn--primary, .xmlab-cc__btn--save { grid-column: 1 / -1; }
	.xmlab-cc__close { top: 10px; right: 10px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .xmlab-cc__inner { animation: none; } }
