/*
 * Зручність запису і телефон. Підключає mu-plugins/eyeq-cro.php (у <head>).
 * Селектори з body…, бо odessa-landing.css стоїть на сторінці нижче.
 */

/* ---------- Телефон: панель і стрілка «вгору» ---------- */

@media (max-width: 767px) {
	/* стрілка стояла під панеллю «Подзвонити / Записатися» */
	body.eq-has-bar .scrolltop { bottom: 56px; }

	/* напис кнопки в один рядок */
	body.eq-has-bar .eq-bar a {
		font-size: 14px;
		letter-spacing: 0;
		white-space: nowrap;
		text-align: center;
	}
	body.eq-has-bar .eq-bar .eq-bar__call { padding: 0 12px; }
	body.eq-has-bar .eq-bar .eq-bar__book { padding: 0 8px; }
}

/* Одеса: стрілка над плаваючим відео */
@media (max-width: 767px) {
	body.eq-has-bar:has(#floatingVideo[style*="block"]) .scrolltop { bottom: 232px; }
}

@media (max-width: 349px) {
	body.eq-has-bar .eq-bar a { font-size: 13px; }
	body.eq-has-bar .eq-bar .eq-bar__call span { display: none; }
}

/* ---------- Форми запису ---------- */

body .wpcf7 form select.eq-invalid {
	border-color: #d93025 !important;
	box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}

body .wpcf7 form .eq-field-error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 400;
	color: #d93025;
}

/* position: фон вікна форми — окремий шар, текст без position лишається під ним */
body .wpcf7 form .eq-form-note {
	position: relative;
	z-index: 1;
	flex: 0 0 100%;
	max-width: 100%;
	order: 1;
	margin: -6px 0 12px;
	padding: 0 15px;
	font-size: 12px;
	line-height: 1.45;
	font-weight: 400;
	color: #6b7785;
	text-align: center;
}

body .wpcf7 form .eq-form-note a,
body .wpcf7 form .eq-form-note a:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/*
 * Вікно «Дані успішно відправлені»: текст подяки лежав під білим шаром вікна,
 * а кнопка «Закрити вікно» була білою на білому — видно було лише заголовок.
 */
body .modal .feedback_body > p {
	position: relative;
	z-index: 1;
}

body .modal[id^="successful"] .feedback_body .btn.btn-secondary,
body .modal[id^="successful"] .feedback_body .btn.btn-secondary:hover {
	color: #167a56;
	background: #fff;
	border: 1px solid #21a979;
}

/* рядок запису в кінці статті: телефон кольором сайту, а не кольором посилань тексту */
body .post-item .eq-cta-row { margin: 28px 0 8px; }
body .post-item .eq-cta-row .eq-cta-row__tel,
body .post-item .eq-cta-row .eq-cta-row__tel:hover { color: #0f4c81; }

/* ---------- Телефон: переваги у дві колонки (було по одній картці на екран) ---------- */

@media (max-width: 767px) {
	body .first-screen__single_service-advantages .container {
		justify-content: space-between !important;
		align-items: stretch;
	}

	body .first-screen__single_service-advantages .item {
		box-sizing: border-box !important;
		flex: 0 0 calc(50% - 6px) !important;
		max-width: calc(50% - 6px) !important;
		width: auto !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 0 12px !important;
	}
	body .first-screen__single_service-advantages .item.border-gradient { border-width: 5px !important; }

	body .first-screen__single_service-advantages .item .info-box {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 14px 8px 12px !important;
	}
	body .first-screen__single_service-advantages .item .img-box,
	body .first-screen__single_service-advantages .item .img-box img {
		width: 54px !important;
		height: 54px !important;
	}
	body .first-screen__single_service-advantages .item .img-box { margin: 0 auto !important; }
	body .first-screen__single_service-advantages .item .title_6 {
		margin: 10px 0 0 !important;
		font-size: 14px !important;
		line-height: 1.3 !important;
	}

	body .advantages .sticky-row > .item {
		box-sizing: border-box !important;
		flex: 0 0 50% !important;
		width: 50% !important;
		max-width: 50% !important;
		margin: 18px 0 0 !important;
		padding: 0 8px !important;
		text-align: center;
	}
	body .advantages .sticky-row > .item .img-box {
		width: 84px !important;
		height: 84px !important;
		margin: 0 auto 10px !important;
	}
	body .advantages .sticky-row > .item .img-box img {
		width: 56px !important;
		height: 56px !important;
	}
	body .advantages .sticky-row > .item .title_6 {
		margin-bottom: 4px !important;
		font-size: 14px !important;
		line-height: 1.3 !important;
	}
}

/* ---------- Телефон, сторінки послуг: два відгуки і кнопка «Показати ще» ---------- */

.eq-more-wrap { display: none; }

@media (max-width: 767px) {
	body .single_service__testimonials .tab-pane > .row.eq-fold > .col-lg-6:nth-child(n+3) { display: none; }

	body .single_service__testimonials .eq-more-wrap {
		display: block;
		flex: 0 0 100%;
		max-width: 100%;
		margin: 0 0 16px;
		padding: 0 15px;
	}

	body .single_service__testimonials .eq-more-btn {
		display: block;
		width: 100%;
		min-height: 48px;
		padding: 12px 16px;
		border: 1px solid #21a979;
		border-radius: 6px;
		background: #fff;
		font-family: inherit;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.2;
		color: #167a56;
		cursor: pointer;
	}
}
