.lcm-root,
.lcm-root * {
	box-sizing: border-box;
}

html.lcm-dialog-open {
	overflow: hidden;
}

.lcm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(14, 20, 31, 0.62);
	backdrop-filter: blur(2px);
}

.lcm-dialog {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: end center;
	padding: 20px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #172033;
}

.lcm-dialog[hidden],
.lcm-backdrop[hidden],
.lcm-details[hidden],
.lcm-button[hidden] {
	display: none !important;
}

.lcm-panel {
	width: min(760px, 100%);
	max-height: min(86vh, 760px);
	overflow: auto;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid #dce2ec;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(11, 20, 38, 0.28);
}

.lcm-panel h2,
.lcm-panel h3 {
	margin: 0 0 12px;
	color: #101828;
	line-height: 1.25;
}

.lcm-panel p {
	line-height: 1.6;
}

.lcm-details {
	margin-top: 22px;
	border-top: 1px solid #e6eaf0;
	padding-top: 20px;
}

.lcm-tcf-options {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 2px solid #dfe5ee;
}

.lcm-tcf-options > p {
	margin: 16px 0 4px;
	font-weight: 700;
}

.lcm-category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid #edf0f4;
}

.lcm-category span,
.lcm-category small {
	display: block;
}

.lcm-category small {
	margin-top: 4px;
	color: #536078;
	line-height: 1.45;
}

.lcm-category input {
	width: 22px;
	height: 22px;
	accent-color: var(--lcm-accent, #2457d6);
}

.lcm-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.lcm-button,
.lcm-preferences-button,
.lcm-placeholder button,
.lcm-frame-placeholder button {
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid #aab4c5;
	border-radius: 9px;
	background: #fff;
	color: #172033;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.lcm-button:hover,
.lcm-button:focus-visible,
.lcm-preferences-button:hover,
.lcm-preferences-button:focus-visible {
	border-color: var(--lcm-accent, #2457d6);
	outline: 3px solid rgba(36, 87, 214, 0.2);
	outline: 3px solid color-mix(in srgb, var(--lcm-accent, #2457d6) 24%, transparent);
	outline-offset: 2px;
}

.lcm-button.lcm-primary {
	border-color: var(--lcm-accent, #2457d6);
	background: var(--lcm-accent, #2457d6);
	color: #fff;
}

.lcm-links {
	display: flex;
	gap: 16px;
	margin-top: 18px;
	font-size: 0.9rem;
}

.lcm-links a {
	color: #3f4b60;
}

.lcm-status {
	min-height: 1.4em;
	margin: 10px 0 0;
	color: #9a3412;
	font-size: 0.88rem;
}

.lcm-widget {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 999990;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--lcm-accent, #2457d6);
	box-shadow: 0 8px 26px rgba(12, 24, 48, 0.24);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

.lcm-frame-blocked {
	display: none !important;
}

.lcm-frame-placeholder,
.lcm-placeholder {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 24px;
	border: 1px dashed #9ca9bd;
	border-radius: 10px;
	background: #f4f6f9;
	text-align: center;
}

.lcm-frame-placeholder button,
.lcm-placeholder button {
	border-color: var(--lcm-accent, #2457d6);
	background: var(--lcm-accent, #2457d6);
	color: #fff;
}

@media (max-width: 680px) {
	.lcm-dialog {
		padding: 0;
	}
	.lcm-panel {
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
	}
	.lcm-actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.lcm-panel {
		animation: lcm-enter 180ms ease-out;
	}
	@keyframes lcm-enter {
		from { opacity: 0; transform: translateY(16px); }
		to { opacity: 1; transform: translateY(0); }
	}
}
