/*
 * Wyśrodkowany na ekranie komunikat po wysyłce formularza CF7 (sukces/błąd)
 * - zastępuje domyślny, mało widoczny pasek pod formularzem (patrz
 * ".wpcf7:has(.epi-tally-theme) .wpcf7-response-output" w tally-theme.css).
 * Tworzony dynamicznie przez assets/js/toast.js.
 */

.epi-toast-backdrop {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.4 );
	z-index: 100000;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.epi-toast-backdrop.is-visible {
	opacity: 1;
}

.epi-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100001;
	width: calc( 100% - 32px );
	max-width: 420px;
	box-sizing: border-box;
	background: #ffffff;
	color: #1f3d28;
	border-radius: 16px;
	padding: 30px 26px 24px;
	text-align: center;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.3 );
	opacity: 0;
	transform: translate( -50%, -50% ) scale( 0.94 );
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.epi-toast.is-visible {
	opacity: 1;
	transform: translate( -50%, -50% ) scale( 1 );
}

.epi-toast__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
}

.epi-toast--success .epi-toast__icon {
	background: #2f9e59;
}

.epi-toast--error .epi-toast__icon {
	background: #d64545;
}

.epi-toast__message {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
}

.epi-toast__close {
	border: none;
	background: #1f3d28;
	color: #ffffff;
	border-radius: 8px;
	padding: 10px 26px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.15s ease-in-out;
}

.epi-toast__close:hover {
	opacity: 0.85;
}
