.skcb[hidden],
.skcb__intro[hidden],
.skcb__preferences[hidden] {
	display: none !important;
}

.skcb {
	position: fixed;
	z-index: 999999;
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	max-height: min(88vh, 760px);
	overflow-y: auto;
	padding: 18px 24px;
	background: #fff;
	color: #202124;
	border-top: 1px solid #d9dde3;
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .16);
	font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skcb *,
.skcb *::before,
.skcb *::after {
	box-sizing: border-box;
}

.skcb__inner {
	width: min(1200px, 100%);
	margin: 0 auto;
}

.skcb__intro {
	display: grid;
	grid-template-columns: minmax(250px, 1fr) minmax(280px, auto);
	align-items: center;
	gap: 24px;
}

.skcb__title {
	margin: 0 0 6px;
	color: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.skcb__description {
	margin: 0 0 7px;
	font-size: 14px;
}

.skcb__policy,
.skcb__settings-link,
.skcb-open-settings {
	color: #154f9d;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.skcb__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.skcb__button {
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid #45515f;
	border-radius: 4px;
	background: #fff;
	color: #202124;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

.skcb__button:hover,
.skcb__button:focus-visible {
	background: #edf2f8;
	border-color: #154f9d;
	outline: 2px solid #154f9d;
	outline-offset: 2px;
}

.skcb__settings-link {
	padding: 8px 4px;
	border: 0;
	background: transparent;
	font-size: 14px;
	cursor: pointer;
}

.skcb__preferences {
	max-width: 900px;
	margin: 0 auto;
}

.skcb__category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-top: 1px solid #e2e5e9;
}

.skcb__category p {
	margin: 3px 0 0;
	color: #454b54;
	font-size: 13px;
}

.skcb__category strong {
	font-size: 14px;
}

.skcb__always {
	flex: 0 0 auto;
	color: #454b54;
	font-size: 13px;
}

.skcb__toggle {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	width: 48px;
	height: 28px;
	cursor: pointer;
}

.skcb__toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.skcb__switch {
	position: relative;
	display: block;
	width: 48px;
	height: 28px;
	border: 1px solid #747d89;
	border-radius: 20px;
	background: #e2e5e9;
	transition: background .15s ease;
}

.skcb__switch::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	content: "";
	transition: transform .15s ease;
}

.skcb__toggle input:checked + .skcb__switch {
	border-color: #154f9d;
	background: #154f9d;
}

.skcb__toggle input:checked + .skcb__switch::after {
	transform: translateX(20px);
}

.skcb__toggle input:focus-visible + .skcb__switch {
	outline: 2px solid #154f9d;
	outline-offset: 3px;
}

.skcb__actions--preferences {
	justify-content: flex-start;
	padding-top: 14px;
	border-top: 1px solid #e2e5e9;
}

.skcb-open-settings {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.skcb-embed {
	width: 100%;
	min-height: var(--skcb-embed-height, 450px);
	background: #f1f3f5;
}

.skcb-embed iframe {
	display: block;
	width: 100%;
	height: var(--skcb-embed-height, 450px);
	border: 0;
}

.skcb-embed__placeholder {
	display: flex;
	min-height: var(--skcb-embed-height, 450px);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	text-align: center;
}

.skcb-embed__placeholder p {
	margin: 0;
}

@media (max-width: 760px) {
	.skcb {
		padding: 16px;
	}

	.skcb__intro {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.skcb__actions {
		justify-content: flex-start;
	}

	.skcb__button {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.skcb *,
	.skcb *::before,
	.skcb *::after {
		transition: none !important;
	}
}
