/* Fouka Capture — non-blocking first-visit prompt. */

.fc,
.fc *,
.fc *::before,
.fc *::after {
	box-sizing: border-box;
}

.fc {
	max-width: 100%;
	position: fixed;
	z-index: 10000000;
	right: 24px;
	bottom: 24px;
	width: min(360px, calc(100vw - 32px));
	font-family: "Commissioner", "Helvetica Neue", Arial, sans-serif;
	color: #23261f;
}

.fc[hidden] {
	display: none;
}

/* Author display rules must never resurrect a [hidden] block. */
.fc [hidden] {
	display: none !important;
}

.fc-code:empty {
	display: none;
}

.fc-card {
	position: relative;
	background: #fbf7ee;
	border: 1px solid #23261f;
	border-radius: 2px;
	box-shadow: 0 18px 40px -24px rgba(35, 38, 31, 0.45);
	padding: 22px 22px 18px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 260ms ease, transform 260ms ease;
}

.fc.is-in .fc-card {
	opacity: 1;
	transform: none;
}

.fc-kicker {
	margin: 0 0 10px;
	font-family: "GFS Didot", Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #a5813f;
}

.fc-title {
	margin: 0 0 8px;
	font-family: "GFS Didot", Georgia, serif;
	font-weight: 400;
	font-size: 24px;
	line-height: 1.15;
	letter-spacing: -0.005em;
	color: #23261f;
}

.fc-body {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: #434a3e;
	white-space: pre-line;
}

.fc-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #52584b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.fc-close:hover,
.fc-close:focus-visible {
	color: #23261f;
}

.fc-form {
	margin: 0;
}

.fc-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #52584b;
}

.fc-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid #c9c3b3;
	border-radius: 2px;
	background: #fffdf7;
	color: #23261f;
	font: inherit;
	font-size: 15px;
}

.fc-input:focus {
	outline: 2px solid #3c4a31;
	outline-offset: 1px;
	border-color: #3c4a31;
}

.fc-input[aria-invalid="true"] {
	border-color: #c0392b;
}

.fc-error {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #9d2a1d;
}

.fc-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin: 14px 0 16px;
	font-size: 13px;
	line-height: 1.45;
	color: #434a3e;
	cursor: pointer;
}

.fc-consent input {
	margin: 2px 0 0;
	accent-color: #3c4a31;
}

.fc-consent em {
	font-style: normal;
	color: #52584b;
}

.fc-submit {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #23261f;
	border-radius: 2px;
	background: #23261f;
	color: #fbf7ee;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.fc-submit:hover {
	background: #3c4a31;
	border-color: #3c4a31;
}

.fc-submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.fc-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #3c4436;
	cursor: pointer;
}

.fc-consent input {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin: 1px 0 0;
	accent-color: #3c4a31;
	cursor: pointer;
}

.fc-optional {
	color: #737a6c;
}

.fc-fine {
	margin: 12px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: #52584b;
}

.fc-fine a {
	color: #434a3e;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fc-skip {
	display: block;
	margin: 10px auto 0;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: #52584b;
	font: inherit;
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fc-skip:hover {
	color: #23261f;
}

.fc-done {
	margin: 0;
	padding: 10px 0 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #3c4a31;
}

.fc-code-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 6px 0 4px;
}

.fc-code {
	display: block;
	user-select: all;
	-webkit-user-select: all;
	padding: 11px 12px;
	border: 1px dashed #a5813f;
	background: #fffdf7;
	font-family: "SFMono-Regular", "Consolas", monospace;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: #23261f;
	text-align: center;
	overflow-wrap: anywhere;
}

.fc-copy {
	align-self: stretch;
	padding: 11px 14px;
	border: 1px solid #23261f;
	background: transparent;
	color: #23261f;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.fc-copy:hover {
	background: #23261f;
	color: #fbf7ee;
}

.fc.is-sent .fc-form,
.fc.is-sent .fc-fine,
.fc.is-sent .fc-skip,
.fc.is-sent .fc-body {
	display: none;
}

@media (max-width: 600px) {
	.fc {
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
	}

	.fc-card {
		padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
		border-width: 1px 0 0;
		border-radius: 0;
		box-shadow: 0 -14px 34px -22px rgba(35, 38, 31, 0.4);
	}

	.fc-title {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fc-card {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

.fc-auto {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #52584b;
	text-align: center;
}
