/**
 * LAKASG Cookie Consent — styles (v2.14.3)
 *
 * Self-contained, scoped to .lakasg-consent-* to avoid theme collision.
 */

body.lakasg-consent-locked {
	overflow: hidden;
}

/* ═══ Banner ═══════════════════════════════════════════════════════════ */
.lakasg-consent-banner {
	position: fixed;
	z-index: 99996;
	background: #fff;
	color: #222;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	font-size: 0.9rem;
	line-height: 1.5;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 200ms ease, transform 250ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.lakasg-consent-banner *,
.lakasg-consent-banner *::before,
.lakasg-consent-banner *::after {
	box-sizing: border-box;
}
.lakasg-consent-banner[hidden] { display: none !important; }
.lakasg-consent-banner.is-visible { opacity: 1; }

/* Position: bottom (full width, default) */
.lakasg-consent-pos-bottom {
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 20px;
	border-top: 1px solid #e0e0e0;
	transform: translateY(100%);
}
.lakasg-consent-pos-bottom.is-visible { transform: translateY(0); }

/* Position: top */
.lakasg-consent-pos-top {
	left: 0;
	right: 0;
	top: 0;
	padding: 16px 20px;
	border-bottom: 1px solid #e0e0e0;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-100%);
}
.lakasg-consent-pos-top.is-visible { transform: translateY(0); }

/* Position: bottom-left card */
.lakasg-consent-pos-bottom-left {
	bottom: 20px;
	left: 20px;
	max-width: 420px;
	padding: 18px 20px;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	transform: translateY(20px);
}
.lakasg-consent-pos-bottom-left.is-visible { transform: translateY(0); }

/* Position: bottom-right card */
.lakasg-consent-pos-bottom-right {
	bottom: 20px;
	right: 20px;
	max-width: 420px;
	padding: 18px 20px;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	transform: translateY(20px);
}
.lakasg-consent-pos-bottom-right.is-visible { transform: translateY(0); }

/* Position: modal (full overlay, blocks interaction) */
.lakasg-consent-pos-modal {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lakasg-consent-pos-modal .lakasg-consent-banner-inner {
	background: #fff;
	border-radius: 10px;
	padding: 28px;
	max-width: 500px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

/* Banner inner layout — for full-width positions */
.lakasg-consent-pos-bottom .lakasg-consent-banner-inner,
.lakasg-consent-pos-top .lakasg-consent-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 24px;
	align-items: center;
	flex-wrap: wrap;
}
.lakasg-consent-pos-bottom .lakasg-consent-desc,
.lakasg-consent-pos-top .lakasg-consent-desc {
	flex: 1;
	min-width: 280px;
}
.lakasg-consent-pos-bottom .lakasg-consent-actions,
.lakasg-consent-pos-top .lakasg-consent-actions {
	flex-shrink: 0;
}

/* ─── Inner content ─── */
.lakasg-consent-title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
}

.lakasg-consent-desc {
	margin: 0 0 16px;
	color: #444;
}
.lakasg-consent-desc p:first-child { margin-top: 0; }
.lakasg-consent-desc p:last-child  { margin-bottom: 0; }
.lakasg-consent-desc a { color: #2271b1; text-decoration: underline; }
.lakasg-consent-desc a:hover { color: #1b5e96; }

.lakasg-consent-policy-link {
	margin: 8px 0 0 !important;
	font-size: 0.85rem;
}

/* ─── Actions (buttons) ─── */
.lakasg-consent-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.lakasg-consent-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 150ms, color 150ms, border-color 150ms;
	white-space: nowrap;
}

.lakasg-consent-btn--primary {
	background: #222;
	color: #fff;
	border-color: #222;
}
.lakasg-consent-btn--primary:hover {
	background: #444;
	border-color: #444;
}

.lakasg-consent-btn--secondary {
	background: #fff;
	color: #222;
	border-color: #ccc;
}
.lakasg-consent-btn--secondary:hover {
	background: #f4f4f4;
	border-color: #999;
}

.lakasg-consent-btn--ghost {
	background: transparent;
	color: #555;
	border-color: transparent;
	text-decoration: underline;
}
.lakasg-consent-btn--ghost:hover {
	color: #222;
}

.lakasg-consent-btn:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* ═══ Customize panel (modal) ═══════════════════════════════════════════ */
.lakasg-consent-customize {
	position: fixed;
	inset: 0;
	z-index: 99997;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 200ms ease;
}
.lakasg-consent-customize[hidden] { display: none !important; }
.lakasg-consent-customize.is-visible { opacity: 1; }

.lakasg-consent-customize-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: zoom-out;
}

.lakasg-consent-customize-box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 560px;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lakasg-consent-customize-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: #f0f0f0;
	color: #444;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 120ms;
	padding: 0;
}
.lakasg-consent-customize-close:hover {
	background: #e0e0e0;
	color: #000;
}

.lakasg-consent-customize-title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 700;
	color: #111;
}

.lakasg-consent-customize-desc {
	margin: 0 0 20px;
	color: #555;
	font-size: 0.9rem;
}

/* ─── Categories list ─── */
.lakasg-consent-categories {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.lakasg-consent-category {
	display: flex;
	gap: 12px;
	padding: 14px;
	background: #f9f9f9;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 120ms, background-color 120ms;
}
.lakasg-consent-category:hover {
	border-color: #ccc;
	background: #f4f4f4;
}

.lakasg-consent-category input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 3px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}
.lakasg-consent-category input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.lakasg-consent-category-text {
	flex: 1;
	min-width: 0;
}

.lakasg-consent-category-name {
	display: block;
	font-weight: 600;
	color: #222;
	margin-bottom: 4px;
}

.lakasg-consent-category-required {
	margin-left: 6px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #777;
	font-style: italic;
}

.lakasg-consent-category-desc {
	display: block;
	font-size: 0.85rem;
	color: #666;
	line-height: 1.5;
}

.lakasg-consent-customize-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	flex-wrap: wrap;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

/* ═══ Mobile ══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
	.lakasg-consent-pos-bottom-left,
	.lakasg-consent-pos-bottom-right {
		left: 12px !important;
		right: 12px !important;
		bottom: 12px;
		max-width: none;
	}

	.lakasg-consent-pos-bottom .lakasg-consent-banner-inner,
	.lakasg-consent-pos-top .lakasg-consent-banner-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.lakasg-consent-actions {
		justify-content: stretch;
	}
	.lakasg-consent-actions .lakasg-consent-btn {
		flex: 1;
	}

	.lakasg-consent-customize-box {
		padding: 20px;
	}
}
