.lean-cookie-consent-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	max-height: calc(100vh - 24px);
	padding: 18px 22px;
	overflow: auto;
	border-top: 1px solid #d9dee7;
	background: #fff;
	box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
	color: #1f2937;
	font-family: var(--lean-cookie-consent-text-font);
	font-size: var(--lean-cookie-consent-text-size);
}

.lean-cookie-consent-banner[hidden],
.lean-cookie-consent-preferences[hidden] {
	display: none;
}

.lean-cookie-consent-layout-box {
	right: 16px;
	bottom: 16px;
	left: auto;
	width: min(420px, calc(100vw - 32px));
	border: 1px solid #d9dee7;
	border-radius: 8px;
}

.lean-cookie-consent-layout-modal,
.lean-cookie-consent-position-center {
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	width: min(560px, calc(100vw - 32px));
	border: 1px solid #d9dee7;
	border-radius: 8px;
	transform: translate(-50%, -50%);
}

.lean-cookie-consent-position-bottom-left {
	right: auto;
	bottom: 16px;
	left: 16px;
	width: min(420px, calc(100vw - 32px));
	border: 1px solid #d9dee7;
	border-radius: 8px;
}

.lean-cookie-consent-position-bottom-right {
	right: 16px;
	bottom: 16px;
	left: auto;
	width: min(420px, calc(100vw - 32px));
	border: 1px solid #d9dee7;
	border-radius: 8px;
}

.lean-cookie-consent-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.lean-cookie-consent-content {
	max-width: 980px;
	margin: 0 auto 14px;
	padding-right: 28px;
	text-align: center;
}

.lean-cookie-consent-content h2 {
	margin: 0 0 8px;
	color: var(--lean-cookie-consent-accent);
	font-family: var(--lean-cookie-consent-heading-font);
	font-size: var(--lean-cookie-consent-heading-size);
	line-height: 1.25;
}

.lean-cookie-consent-content p {
	margin: 0 0 8px;
	line-height: 1.45;
}

.lean-cookie-consent-content a {
	color: var(--lean-cookie-consent-accent);
	font-weight: 700;
	text-decoration: none;
}

.lean-cookie-consent-preferences {
	display: grid;
	max-width: 760px;
	margin: 0 auto 14px;
	gap: 10px;
}

.lean-cookie-consent-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.lean-cookie-consent-toggle {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #475569;
	font-size: 13px;
	text-align: left;
}

.lean-cookie-consent-toggle strong,
.lean-cookie-consent-toggle small {
	display: block;
}

.lean-cookie-consent-toggle small {
	margin-top: 2px;
	color: #64748b;
	line-height: 1.35;
}

.lean-cookie-consent-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.lean-cookie-consent-slider {
	position: relative;
	width: 50px;
	height: 28px;
	border-radius: 999px;
	background: #cbd5e1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lean-cookie-consent-slider::before {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	content: "";
	transition: transform 0.2s ease;
}

.lean-cookie-consent-toggle input:checked + .lean-cookie-consent-slider {
	background: var(--lean-cookie-consent-accent);
}

.lean-cookie-consent-toggle input:checked + .lean-cookie-consent-slider::before {
	transform: translateX(22px);
}

.lean-cookie-consent-button {
	padding: 9px 16px;
	border: 0;
	border-radius: 4px;
	background: var(--lean-cookie-consent-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.lean-cookie-consent-deny,
.lean-cookie-consent-secondary {
	background: #64748b;
}

.lean-cookie-consent-edit {
	position: fixed;
	bottom: 10px;
	left: 10px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 4px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	cursor: pointer;
}

@media (max-width: 782px) {
	.lean-cookie-consent-banner,
	.lean-cookie-consent-layout-box,
	.lean-cookie-consent-position-bottom-left,
	.lean-cookie-consent-position-bottom-right {
		right: 0;
		bottom: 0;
		left: 0;
		width: auto;
		padding: 16px 14px;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 0;
	}

	.lean-cookie-consent-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.lean-cookie-consent-button {
		justify-content: center;
		width: 100%;
	}
}
