/* Atelier Kuroi — consent banner (Matomo) */

.kuroi-consent {
	position: fixed;
	left: max(1rem, env(safe-area-inset-left));
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 10040;
	display: none;
	pointer-events: none;
}

.kuroi-consent.is-visible {
	display: block;
	pointer-events: auto;
}

.kuroi-consent__panel {
	max-width: 28rem;
	margin-left: auto;
	padding: 1.25rem 1.35rem 1.35rem;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 165, 116, 0.07) 0%, transparent 70%),
		rgba(10, 9, 8, 0.96);
	border: 1px solid rgba(196, 165, 116, 0.28);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	color: rgba(242, 237, 230, 0.9);
}

.kuroi-consent__title {
	font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
	font-weight: 400;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	margin: 0 0 0.55rem;
	color: var(--blanc-soft, #f2ede6);
}

.kuroi-consent__text {
	font-family: var(--font-sans, 'Jost', system-ui, sans-serif);
	font-weight: 300;
	font-size: 0.82rem;
	line-height: 1.65;
	letter-spacing: 0.04em;
	color: rgba(234, 225, 210, 0.78);
	margin: 0 0 0.75rem;
}

.kuroi-consent__link-wrap {
	margin: 0 0 1rem;
}

.kuroi-consent__privacy {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(196, 165, 116, 0.92);
	text-decoration: none;
	border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}

.kuroi-consent__privacy:hover,
.kuroi-consent__privacy:focus-visible {
	color: #f2ede6;
	border-bottom-color: rgba(242, 237, 230, 0.55);
}

.kuroi-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.kuroi-consent__btn {
	flex: 1 1 8.5rem;
	min-height: 44px;
	border: 1px solid transparent;
	padding: 0.7rem 0.9rem;
	font-family: var(--font-sans, 'Jost', system-ui, sans-serif);
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.kuroi-consent__btn:focus-visible {
	outline: 1px solid rgba(196, 165, 116, 0.55);
	outline-offset: 3px;
}

/* Guarantee native cursors on the consent UI even if custom cursor CSS is active. */
html.kuroi-consent-open .kuroi-consent,
html.kuroi-consent-open .kuroi-consent *,
body.kuroi-consent-open .kuroi-consent,
body.kuroi-consent-open .kuroi-consent * {
	cursor: auto;
}

html.kuroi-consent-open .kuroi-consent a,
html.kuroi-consent-open .kuroi-consent button,
html.kuroi-consent-open .kuroi-consent [role="button"],
html.kuroi-consent-open .kuroi-consent .kuroi-consent__privacy,
html.kuroi-consent-open .kuroi-consent .kuroi-consent__btn,
body.kuroi-consent-open .kuroi-consent a,
body.kuroi-consent-open .kuroi-consent button,
body.kuroi-consent-open .kuroi-consent [role="button"],
body.kuroi-consent-open .kuroi-consent .kuroi-consent__privacy,
body.kuroi-consent-open .kuroi-consent .kuroi-consent__btn {
	cursor: pointer;
}

.kuroi-consent__btn--accept {
	background: rgba(196, 165, 116, 0.92);
	color: #0a0908;
}

.kuroi-consent__btn--accept:hover,
.kuroi-consent__btn--accept:focus-visible {
	background: #f2ede6;
}

.kuroi-consent__btn--refuse {
	background: transparent;
	border-color: rgba(196, 165, 116, 0.35);
	color: rgba(234, 225, 210, 0.86);
}

.kuroi-consent__btn--refuse:hover,
.kuroi-consent__btn--refuse:focus-visible {
	border-color: rgba(196, 165, 116, 0.7);
	color: #f2ede6;
}

@media (max-width: 480px) {
	.kuroi-consent {
		left: max(0.65rem, env(safe-area-inset-left));
		right: max(0.65rem, env(safe-area-inset-right));
		bottom: max(0.65rem, env(safe-area-inset-bottom));
	}

	.kuroi-consent__panel {
		max-width: none;
		margin-left: 0;
	}

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

	.kuroi-consent__btn {
		flex-basis: auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kuroi-consent__btn {
		transition: none;
	}
}

/* Keep below age-gate (10050) and above site chrome */
body.age-gate-open .kuroi-consent {
	display: none !important;
}
