/* =========================================================================
 * fn-stock-sort-notify.css - „Powiadom o dostępności” (karta + strona produktu)
 *
 * ZASADA NADRZĘDNA: zero `transition` i zero animacji, w szczególności na
 * `opacity` i `visibility`. W tym sklepie pętla błędów zewnętrznego skryptu
 * w kontenerze GTM klienta (sgw.stape.bg) potrafi zamrozić główny wątek,
 * a wtedy przejścia CSS zatrzymują się na wartości startowej i element zostaje
 * niewidoczny. Rozwijanie formularza na karcie robi natywny <details>, więc
 * nie potrzebujemy ani animacji, ani JavaScriptu.
 *
 * Kolory marki: róż #A34B65 (hover #7E3A4F), złoto #C9A15A, espresso #2E2321,
 * tło jasne #FBF7F5 / #F5EBE7, ramka #DDD0CB, tekst wyciszony #756A65
 * (kontrast 5,24:1 - wartość przyjęta w projekcie po audycie a11y).
 * ========================================================================= */

.fn-notify {
	position: relative;
	z-index: 5;
	box-sizing: border-box;
	text-align: left;
	font-family: 'Poppins', sans-serif;
}

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

/* --- wspólne: pola formularza ------------------------------------------ */

.fn-notify .fn-notify-label {
	display: block;
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 500;
	color: #2E2321;
	text-transform: none;
	letter-spacing: 0;
}

.fn-notify .fn-notify-row {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

.fn-notify .fn-notify-row input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 8px 10px;
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	line-height: 1.3;
	color: #2E2321;
	background: #fff;
	border: 1px solid #DDD0CB;
	border-radius: 4px;
	box-shadow: none;
}

.fn-notify .fn-notify-row input[type="email"]::placeholder {
	color: #9b8d87;
	opacity: 1;
}

.fn-notify .fn-notify-row input[type="email"]:focus {
	border-color: #A34B65;
	outline: 2px solid rgba(163, 75, 101, .35);
	outline-offset: 1px;
}

.fn-notify .fn-notify-row button[type="submit"] {
	flex: 0 0 auto;
	height: 40px;
	padding: 0 14px;
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: #A34B65;
	border: 1px solid #A34B65;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
}

.fn-notify .fn-notify-row button[type="submit"]:hover,
.fn-notify .fn-notify-row button[type="submit"]:focus {
	background: #7E3A4F;
	border-color: #7E3A4F;
	color: #fff;
}

.fn-notify .fn-notify-consent {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 9px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: #756A65;
	cursor: pointer;
}

.fn-notify .fn-notify-consent input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 2px 0 0;
	accent-color: #A34B65;
}

.fn-notify .fn-notify-note {
	margin: 7px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: #756A65;
}

.fn-notify .fn-notify-note a {
	color: #A34B65;
	text-decoration: underline;
}

/* Honeypot - poza ekranem, niewidoczny dla człowieka, widoczny dla bota. */
.fn-notify .fn-notify-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
}

/* --- komunikaty po wysłaniu -------------------------------------------- */

.fn-notify .fn-notify-msg {
	margin: 0 0 9px;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.45;
	border-radius: 4px;
	border: 1px solid transparent;
}

.fn-notify .fn-notify-msg--ok {
	color: #285e36;
	background: #eef7f0;
	border-color: #c3e0cb;
}

.fn-notify .fn-notify-msg--err {
	color: #8d2b3c;
	background: #fbf0f2;
	border-color: #e8ccd3;
}

/* =========================================================================
 * WARIANT 1: karta produktu na listingu (zwinięty <details>)
 * ========================================================================= */

.fn-notify--card {
	margin: 10px 0 2px;
}

.fn-notify--card details {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* Przycisk rozwijający = <summary>. Bez animacji, bez JS. */
.fn-notify--card .fn-notify-toggle {
	display: block;
	width: 100%;
	padding: 9px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: #A34B65;
	background: #fff;
	border: 1px solid #A34B65;
	border-radius: 4px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.fn-notify--card .fn-notify-toggle::-webkit-details-marker {
	display: none;
}
.fn-notify--card .fn-notify-toggle::marker {
	content: '';
}

.fn-notify--card .fn-notify-toggle:hover,
.fn-notify--card .fn-notify-toggle:focus {
	color: #fff;
	background: #A34B65;
}

.fn-notify--card details[open] > .fn-notify-toggle {
	color: #fff;
	background: #A34B65;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.fn-notify--card .fn-notify-body {
	padding: 10px;
	background: #FBF7F5;
	border: 1px solid #A34B65;
	border-top: 0;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

/* Na wąskich kartach pole i przycisk jeden pod drugim - inaczej nic się nie mieści. */
@media (max-width: 1024px) {
	.fn-notify--card .fn-notify-row {
		flex-direction: column;
	}
	.fn-notify--card .fn-notify-row button[type="submit"] {
		width: 100%;
	}
}

/* =========================================================================
 * WARIANT 2: strona produktu (blok rozwinięty od razu)
 * ========================================================================= */

.fn-notify--single {
	clear: both;
	margin: 18px 0 22px;
	padding: 18px 20px;
	background: #F5EBE7;
	border: 1px solid #E7DAD4;
	border-radius: 10px;
	max-width: 520px;
}

.fn-notify--single .fn-notify-heading {
	margin: 0 0 4px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: #2E2321;
	text-transform: none;
	letter-spacing: 0;
}

.fn-notify--single .fn-notify-lead {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #756A65;
}

.fn-notify--single .fn-notify-row input[type="email"],
.fn-notify--single .fn-notify-row button[type="submit"] {
	height: 44px;
	font-size: 13.5px;
}

@media (max-width: 600px) {
	.fn-notify--single {
		padding: 15px 14px;
	}
	.fn-notify--single .fn-notify-row {
		flex-direction: column;
	}
	.fn-notify--single .fn-notify-row button[type="submit"] {
		width: 100%;
	}
}
