/* Legiit CookieYes-style banner (Whitecube backend) */

.legiit-cc-root {
	--legiit-cc-blue: #1863dc;
	--legiit-cc-blue-hover: #0f52c1;
	--legiit-cc-text: #212121;
	--legiit-cc-muted: #4d4d4d;
	--legiit-cc-border: #d9d9d9;
	--legiit-cc-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
	font-family: Inter, Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--legiit-cc-text);
	box-sizing: border-box;
}

.legiit-cc-root *,
.legiit-cc-root *::before,
.legiit-cc-root *::after {
	box-sizing: border-box;
}

.legiit-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	background: #fff;
	box-shadow: var(--legiit-cc-shadow);
	border-top: 1px solid #eee;
	display: none;
}

.legiit-cc-banner.is-visible {
	display: block;
}

.legiit-cc-banner-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 28px;
	max-width: 1400px;
	margin: 0 auto;
}

.legiit-cc-copy {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 820px;
}

.legiit-cc-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #000;
}

.legiit-cc-text {
	margin: 0;
	color: var(--legiit-cc-muted);
	font-size: 14px;
}

.legiit-cc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 0 auto;
	padding-top: 2px;
}

.legiit-cc-btn {
	appearance: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 16px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.legiit-cc-btn:focus-visible {
	outline: 2px solid var(--legiit-cc-blue);
	outline-offset: 2px;
}

.legiit-cc-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.legiit-cc-btn-outline {
	background: #fff;
	border: 1px solid var(--legiit-cc-blue);
	color: var(--legiit-cc-blue);
}

.legiit-cc-btn-outline:hover {
	background: #f3f7fd;
}

.legiit-cc-btn-primary {
	background: var(--legiit-cc-blue);
	border: 1px solid var(--legiit-cc-blue);
	color: #fff;
}

.legiit-cc-btn-primary:hover {
	background: var(--legiit-cc-blue-hover);
	border-color: var(--legiit-cc-blue-hover);
}

.legiit-cc-btn-customize {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.legiit-cc-chevron {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--legiit-cc-blue);
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.legiit-cc-banner.is-expanded .legiit-cc-chevron {
	transform: rotate(180deg);
}

.legiit-cc-panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	visibility: hidden;
	border-top: 1px solid transparent;
	padding: 0 28px;
	max-width: 1400px;
	margin: 0 auto;
	pointer-events: none;
	transition:
		max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.4s ease 0.05s,
		padding 0.45s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.35s ease,
		visibility 0.55s;
}

.legiit-cc-banner.is-expanded .legiit-cc-panel {
	max-height: min(52vh, 420px);
	opacity: 1;
	overflow-y: auto;
	visibility: visible;
	border-top-color: #ececec;
	padding: 16px 28px 8px;
	pointer-events: auto;
}

.legiit-cc-panel-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
}

.legiit-cc-panel-intro {
	margin: 0 0 16px;
	color: var(--legiit-cc-muted);
	font-size: 13px;
}

.legiit-cc-panel-intro .legiit-cc-more {
	color: var(--legiit-cc-blue);
	text-decoration: none;
	font-weight: 600;
}

.legiit-cc-more-text {
	display: none;
	margin: 8px 0 0;
}

.legiit-cc-more-text.is-open {
	display: block;
}

.legiit-cc-category {
	padding: 14px 0;
	border-top: 1px solid #f0f0f0;
}

.legiit-cc-category:first-of-type {
	border-top: none;
}

.legiit-cc-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 6px;
}

.legiit-cc-category-name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.legiit-cc-category-desc {
	margin: 0;
	color: var(--legiit-cc-muted);
	font-size: 13px;
	max-width: 920px;
}

.legiit-cc-always-active {
	color: #1a9f4b;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.legiit-cc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.legiit-cc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.legiit-cc-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #cfcfcf;
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

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

.legiit-cc-switch input:checked + .legiit-cc-slider {
	background: var(--legiit-cc-blue);
}

.legiit-cc-switch input:checked + .legiit-cc-slider::before {
	transform: translateX(20px);
}

.legiit-cc-panel-footer {
	position: sticky;
	bottom: 0;
	display: flex;
	justify-content: flex-end;
	padding: 12px 0 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, #fff 40%);
}

@media (max-width: 900px) {
	.legiit-cc-banner-inner {
		flex-direction: column;
		padding: 16px;
		gap: 14px;
	}

	.legiit-cc-actions {
		width: 100%;
	}

	.legiit-cc-actions .legiit-cc-btn {
		flex: 1 1 auto;
		text-align: center;
		justify-content: center;
	}

	.legiit-cc-panel {
		padding-left: 16px;
		padding-right: 16px;
	}

	.legiit-cc-banner.is-expanded .legiit-cc-panel {
		padding: 12px 16px 8px;
		max-height: min(58vh, 480px);
	}
}
