/* Voreva — cookie banner (Cookie Notice plugin).
   Floating card, square edges, black/white, same type as the nav.
   !important is deliberate: the plugin writes inline colours and the Customizer's Additional CSS
   still holds an older `#cookie-notice { position: relative }` rule. */

#cookie-notice {
	position: fixed !important;
	top: auto !important;
	left: auto !important;
	right: 24px !important;
	bottom: 24px !important;
	width: min(360px, calc(100vw - 32px)) !important;
	min-width: 0 !important;
	background: #fff !important;
	color: #0b0b0b !important;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
	text-align: left !important;
	z-index: 100000;
}

#cookie-notice.cookie-notice-hidden { display: none !important; }

/* Instant close: the footer script in voreva-motion.php adds .vm-ck-out on click, so the card never waits for the plugin's animationend. */
#cookie-notice.vm-ck-out {
	opacity: 0 !important;
	transform: translateY(8px) !important;
	pointer-events: none !important;
	transition: opacity 0.18s ease, transform 0.18s ease;
}
#cookie-notice.vm-ck-gone { display: none !important; }

#cookie-notice.cookie-notice-visible {
	animation: vm-ck-in 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
}
@keyframes vm-ck-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

#cookie-notice:not(.cookie-notice-hidden) .cookie-notice-container {
	display: block !important;
	padding: 16px 16px 12px !important;
	color: inherit !important;
}

#cookie-notice .cn-text-container {
	display: block !important;
	margin: 0 0 12px !important;
	font-size: 12.5px;
	line-height: 1.55;
	letter-spacing: 0;
	text-align: left !important;
	color: #0b0b0b !important;
}

#cookie-notice .cn-buttons-container {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px !important;
	margin: 0 !important;
}

#cookie-notice .cn-button {
	flex: 1 1 0;
	min-width: 0;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	border-radius: 0 !important;
	font-size: 10.5px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s cubic-bezier(0.23, 1, 0.32, 1), color 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Accept and Reject share size and layer (GDPR: rejecting must be as easy as accepting). */
#cookie-notice #cn-accept-cookie {
	background: #0b0b0b !important;
	color: #fff !important;
	border: 1px solid #0b0b0b !important;
}
#cookie-notice #cn-refuse-cookie {
	background: #fff !important;
	color: #0b0b0b !important;
	border: 1px solid #0b0b0b !important;
}

#cookie-notice #cn-more-info {
	flex: 0 0 100%;
	margin-top: 2px !important;
	padding: 4px 0 0 !important;
	background: transparent !important;
	color: #6b6b6b !important;
	border: 0 !important;
	font-size: 12px !important;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#cookie-notice #cn-close-notice { display: none !important; }

#cookie-notice .cn-button:focus-visible {
	outline: 2px solid #0b0b0b;
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	#cookie-notice #cn-accept-cookie:hover { background: #fff !important; color: #0b0b0b !important; }
	#cookie-notice #cn-refuse-cookie:hover { background: #0b0b0b !important; color: #fff !important; }
	#cookie-notice #cn-more-info:hover { color: #0b0b0b !important; }
}

@media (min-width: 1025px) {
	body:has(#cookie-notice.cookie-notice-visible:not(.vm-ck-out)) .scrollToTop { bottom: 200px; }
}

/* WoodMart's bottom toolbar (55px) shows up to 1024px: sit above it instead of covering it. */
@media (max-width: 1024px) {
	#cookie-notice { bottom: 67px !important; }
}

@media (max-width: 600px) {
	#cookie-notice {
		left: 12px !important;
		right: 12px !important;
		bottom: 67px !important;
		width: auto !important;
	}
	#cookie-notice .cookie-notice-container { padding: 14px 14px 10px !important; }
	/* Compact on phones: less of the screen, still two big thumb-sized choices. */
	#cookie-notice .cn-text-container { font-size: 12px; line-height: 1.5; margin: 0 0 12px !important; }
	#cookie-notice .cn-button { padding: 14px 10px !important; min-height: 44px; }
	#cookie-notice #cn-more-info { margin-top: 0 !important; padding: 10px 0 2px !important; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	#cookie-notice.cookie-notice-visible { animation: none; }
	#cookie-notice .cn-button { transition: none; }
}
