/* Levishop Cookie Consent — GDPR banner */

.levishop-consent {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.levishop-consent[hidden] {
	display: none !important;
}

.levishop-consent__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(2px);
}

.levishop-consent__dialog {
	position: relative;
	width: min(100%, 720px);
	max-height: min(90vh, 640px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	padding: 1.75rem 1.75rem 1.25rem;
	font-family: inherit;
	color: #333;
}

.levishop-consent__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
}

.levishop-consent__close:hover {
	background: #f3f4f6;
	color: #111;
}

.levishop-consent__title {
	margin: 0 2rem 0.75rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #111;
}

.levishop-consent__text {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #444;
}

.levishop-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.levishop-consent__btn {
	flex: 1 1 auto;
	min-width: 120px;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.levishop-consent__btn--primary {
	background: var(--levishop-blue, #6b8cae);
	border-color: var(--levishop-blue, #6b8cae);
	color: #fff;
}

.levishop-consent__btn--primary:hover {
	background: var(--levishop-blue-dark, #557494);
	border-color: var(--levishop-blue-dark, #557494);
}

.levishop-consent__btn--secondary {
	background: #f3f4f6;
	border-color: #e5e7eb;
	color: #374151;
}

.levishop-consent__btn--secondary:hover {
	background: #e5e7eb;
}

.levishop-consent__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	padding-top: 0.5rem;
	border-top: 1px solid #eee;
}

.levishop-consent__legal a {
	font-size: 0.8125rem;
	color: var(--levishop-blue, #6b8cae);
	text-decoration: underline;
}

.levishop-consent__legal a:hover {
	color: var(--levishop-blue-dark, #557494);
}

/* Settings view */
.levishop-consent__categories {
	margin-bottom: 1rem;
}

.levishop-consent__category {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 0.5rem;
	overflow: hidden;
}

.levishop-consent__category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
}

.levishop-consent__category-header::-webkit-details-marker {
	display: none;
}

.levishop-consent__category-desc {
	margin: 0;
	padding: 0 1rem 0.85rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #555;
}

.levishop-consent__badge {
	font-size: 0.75rem;
	font-weight: 600;
	color: #15803d;
	white-space: nowrap;
}

.levishop-consent__toggle {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.levishop-consent__toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.levishop-consent__toggle-slider {
	display: block;
	width: 44px;
	height: 24px;
	background: #d1d5db;
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.levishop-consent__toggle-slider::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.levishop-consent__toggle input:checked + .levishop-consent__toggle-slider {
	background: var(--levishop-blue, #6b8cae);
}

.levishop-consent__toggle input:checked + .levishop-consent__toggle-slider::after {
	transform: translateX(20px);
}

.levishop-consent__toggle input:focus-visible + .levishop-consent__toggle-slider {
	outline: 2px solid var(--levishop-blue, #6b8cae);
	outline-offset: 2px;
}

/* Reopen tab */
.levishop-consent__reopen {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 99999;
	padding: 0.55rem 0.9rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	font-size: 0.75rem;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
}

.levishop-consent__reopen:hover {
	border-color: var(--levishop-blue, #6b8cae);
	color: var(--levishop-blue, #6b8cae);
}

.levishop-consent__reopen[hidden] {
	display: none !important;
}

body.levishop-consent-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.levishop-consent__dialog {
		padding: 1.25rem 1rem 1rem;
	}

	.levishop-consent__actions {
		flex-direction: column;
	}

	.levishop-consent__btn {
		width: 100%;
		min-width: 0;
	}
}
