/* Popup „Zaczekaj!” — timer / exit intent */
body.klimat-exit-lead-popup--open {
	overflow: hidden;
}

.klimat-exit-lead-popup {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

.klimat-exit-lead-popup[hidden] {
	display: none;
}

.klimat-exit-lead-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.klimat-exit-lead-popup__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 26rem;
	max-height: min(90vh, 520px);
	overflow: auto;
	padding: 1.75rem 1.75rem 1.5rem;
	border-radius: 20px;
	background-color: #fafafa;
	color: #1a1a1a;
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.35);
}

.klimat-exit-lead-popup__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #333;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.9;
}

.klimat-exit-lead-popup__close:hover,
.klimat-exit-lead-popup__close:focus-visible {
	opacity: 1;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.klimat-exit-lead-popup__hero {
	height: 150px;
	margin: -1.75rem -1.75rem 1rem;
	width: calc(100% + 3.5rem);
	max-width: none;
	overflow: hidden;
	border-radius: 20px 20px 0 0;
}

.klimat-exit-lead-popup__hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.klimat-exit-lead-popup__title {
	margin: 0 2rem 0.4rem 0;
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	line-height: 1.2;
	color: #0d0d0d;
}

.klimat-exit-lead-popup__lead {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	line-height: 1.45;
	color: #2a2a2a;
}

.klimat-exit-lead-popup__sub {
	margin: 0 0 1.1rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
}

.klimat-exit-lead-popup__field {
	margin-bottom: 1rem;
}

.klimat-exit-lead-popup__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
}

.klimat-exit-lead-popup__req {
	color: #b42318;
	font-weight: 700;
}

.klimat-exit-lead-popup__field input[type="tel"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	border: 1px solid #b0b0b0;
	background: #fff;
	color: #1a1a1a;
	font-size: 1rem;
}

.klimat-exit-lead-popup__field input[type="tel"]::placeholder {
	color: #555;
	opacity: 1;
}

.klimat-exit-lead-popup__field input:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary, #00a0d2);
	outline-offset: 1px;
}

.klimat-exit-lead-popup__field--hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.klimat-exit-lead-popup__msg {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}

.klimat-exit-lead-popup__msg--error {
	color: #9a1a0f;
}

.klimat-exit-lead-popup__msg--ok {
	color: #0d5c3d;
}

.klimat-exit-lead-popup__actions {
	margin-top: 0.25rem;
	width: 100%;
	box-sizing: border-box;
}

.klimat-exit-lead-popup__submit.wp-element-button {
	cursor: pointer;
	display: block;
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	border: 2px solid transparent;
	border-radius: 4px;
	padding: var(--wp--preset--spacing--30, 0.75rem) var(--wp--preset--spacing--30, 0.75rem);
	font-size: var(--wp--preset--font-size--small, 1rem);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	box-shadow: none;
	background: var(--wp--preset--color--primary, #ff5e13);
	color: var(--wp--preset--color--contrast, #f0f0f0);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.klimat-exit-lead-popup__submit.wp-element-button:hover:not(:disabled),
.klimat-exit-lead-popup__submit.wp-element-button:focus-visible:not(:disabled) {
	border-color: var(--wp--preset--color--custom-color-1, var(--wp--preset--color--secondary, #00a0d2));
	background-color: #fff;
	color: #001111;
	filter: none;
}

.klimat-exit-lead-popup__submit.wp-element-button:disabled {
	opacity: 0.65;
	cursor: wait;
}
