/* Vigilis Cookie Consent Banner
   Desktop (≥481px): floating card, bottom-right
   Mobile  (≤480px): bottom sheet, full-width
---------------------------------------------------------------- */

/* ── Base — shared across both breakpoints ── */
#vig-cookie-banner {
	position: fixed;
	z-index: 9999;
	font-family: var(--font-family-base);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#vig-cookie-banner.vig-cb--visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Desktop card (≥481px) ── */
@media (min-width: 481px) {
	#vig-cookie-banner {
		bottom: 24px;
		right: 24px;
		width: 280px;
		background: #ffffff;
		border-radius: 12px;
		box-shadow:
			0 4px 6px rgba(0, 0, 0, 0.04),
			0 12px 32px rgba(8, 71, 27, 0.14);
		overflow: hidden;
	}
}

/* ── Mobile bottom sheet (≤480px) ── */
@media (max-width: 480px) {
	#vig-cookie-banner {
		bottom: 0;
		left: 0;
		right: 0;
		background: #ffffff;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -4px 24px rgba(8, 71, 27, 0.14);
		transform: translateY(20px);
	}

	#vig-cookie-banner.vig-cb--visible {
		transform: translateY(0);
	}
}

/* ── Green accent bar (desktop only) ── */
.vig-cb__bar {
	height: 4px;
	background: linear-gradient(90deg, #063715, #246036);
}

@media (max-width: 480px) {
	.vig-cb__bar {
		display: none;
	}
}

/* ── Drag-handle pip (mobile only) ── */
@media (max-width: 480px) {
	.vig-cb__body::before {
		content: '';
		display: block;
		width: 32px;
		height: 4px;
		background: #D8D3DF;
		border-radius: 9999px;
		margin: 12px auto 4px;
	}
}

/* ── Body padding ── */
.vig-cb__body {
	padding: 18px 20px 20px;
}

@media (max-width: 480px) {
	.vig-cb__body {
		padding: 4px 20px 20px;
	}
}

/* ── Heading ── */
.vig-cb__heading {
	font-size: 13px;
	font-weight: 700;
	color: #08471B;
	margin: 0 0 8px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

@media (max-width: 480px) {
	.vig-cb__heading {
		font-size: 15px;
	}
}

/* ── Body copy ── */
.vig-cb__copy {
	font-size: 12px;
	color: #584D68;
	line-height: 1.55;
	margin: 0 0 16px;
}

.vig-cb__copy a {
	color: #246036;
	text-decoration: underline;
	text-decoration-color: rgba(36, 96, 54, 0.4);
	text-underline-offset: 2px;
}

.vig-cb__copy a:hover {
	text-decoration-color: #246036;
}

@media (max-width: 480px) {
	.vig-cb__copy {
		font-size: 13px;
	}
}

/* ── Button row ── */
.vig-cb__buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (max-width: 480px) {
	.vig-cb__buttons {
		flex-direction: row;
		gap: 10px;
	}
}

/* ── Accept button (primary — orange pill) ── */
.vig-cb__accept {
	display: block;
	width: 100%;
	background: linear-gradient(135deg, #F48113 0%, #E67E0A 100%);
	color: #ffffff;
	border: none;
	padding: 11px 20px;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	min-height: 44px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(244, 129, 19, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vig-cb__accept:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(244, 129, 19, 0.5);
}

.vig-cb__accept:focus-visible {
	transform: none;
	box-shadow: 0 4px 12px rgba(244, 129, 19, 0.35);
	outline: 2px solid #F48113;
	outline-offset: 3px;
}

/* ── Decline button (secondary — outlined pill) ── */
.vig-cb__decline {
	display: block;
	width: 100%;
	background: transparent;
	border: 1px solid #D8D3DF;
	color: #584D68;
	padding: 10px 20px;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	min-height: 44px;
	text-align: center;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.vig-cb__decline:hover {
	border-color: #9E99A4;
	color: #1C0E32;
}

/* ── Mobile: equal-width side-by-side buttons ── */
@media (max-width: 480px) {
	.vig-cb__accept,
	.vig-cb__decline {
		flex: 1;
		padding: 13px 16px;
	}

	.vig-cb__decline {
		font-size: 13px;
	}
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	/* transition-duration is already killed globally by colors.css */
	#vig-cookie-banner {
		transform: none !important;
	}

	#vig-cookie-banner.vig-cb--visible {
		transform: none !important;
	}
}
