/* Cookie consent banner (includes/consent.php). Both choices share one style on purpose: neither is pushed. */
.as-consent[hidden] {
	display: none !important;
}

.as-consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	width: min(440px, calc(100vw - 40px));
	color: var(--as-paper, #f4f1ea);
	background: var(--as-ink, #191919);
	border: 1px solid rgba(244, 241, 234, 0.18);
	box-shadow: 0 18px 48px rgba(25, 25, 25, 0.28);
}

.as-consent__inner {
	padding: 22px 22px 20px;
}

.as-consent__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.as-consent__text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: inherit;
}

.as-consent__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.as-consent__actions {
	display: flex;
	gap: 10px;
}

.as-consent__button {
	flex: 1 1 0;
	min-height: 46px;
	margin: 0;
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--as-ink, #191919);
	background: var(--as-paper, #f4f1ea);
	border: 1px solid var(--as-paper, #f4f1ea);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.as-consent__button:hover {
	color: var(--as-paper, #f4f1ea);
	background: transparent;
}

.as-consent__text a:focus-visible,
.as-consent__button:focus-visible {
	outline: 2px solid var(--as-paper, #f4f1ea);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.as-consent {
		animation: as-consent-in 0.25s ease-out both;
	}

	@keyframes as-consent-in {
		from { opacity: 0; transform: translateY(12px); }
		to { opacity: 1; transform: none; }
	}
}

@media (max-width: 600px) {
	.as-consent {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		border-width: 1px 0 0;
	}

	.as-consent__inner {
		padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.as-consent__title {
		font-size: 17px;
	}
}

@media print {
	.as-consent {
		display: none !important;
	}
}

/* Google Analytics for WooCommerce reads the product from the clicked element itself; Blocksy puts an
   icon inside the cart's remove link, so the click must land on the link for remove_from_cart to be sent. */
.woocommerce-cart-form a.remove > * {
	pointer-events: none;
}
