/**
 * jamp-ios6.css — точечные фиксы для iPhone 6 / 6s (iOS 12 и ниже)
 * Подключается последним. Без min()/max()/gap-only/aspect-ratio.
 */

/* --- fixed bottom: тикер и кнопка «вернуться» --- */
.promo-ticker {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	/* JS visualViewport перебивает top; fallback: */
	bottom: 0;
	z-index: 1004 !important;
}

.jamp-back-btn {
	position: fixed !important;
	left: 12px !important;
	z-index: 1006 !important;
}

/* --- side menu scroll (iOS) --- */
.side-menu.is-open,
body.jamp-side-open .side-menu {
	overflow-y: scroll !important; /* auto иногда мёртвый на iOS 10–12 */
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important;
	/* height через JS; fallback: */
	height: 100% !important;
	max-height: 100% !important;
}

/* gap не везде: отступы между пунктами */
.side-menu nav a {
	display: block;
	margin: 0 0 18px 0;
}
.side-menu nav a:last-child {
	margin-bottom: 0;
}

/* --- модалки: не full-width на «как будто desktop» --- */
@media only screen and (min-width: 768px) {
	#popup-halfbg-form .modal-dialog {
		width: 800px !important;
		max-width: 800px !important;
		margin: 0 auto !important;
	}
	body.modal-open #popup-halfbg-form.show,
	body.modal-open #popup-halfbg-form.in {
		display: -webkit-box !important;
		display: -webkit-flex !important;
		display: flex !important;
		-webkit-box-align: center !important;
		-webkit-align-items: center !important;
		align-items: center !important;
		-webkit-box-pack: center !important;
		-webkit-justify-content: center !important;
		justify-content: center !important;
	}
}

/* --- touch: убрать 300ms delay где возможно --- */
a, button, .jamp-back-btn, .jamp-prod-name-more {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
	touch-action: manipulation;
}

/* --- product name clamp fallback --- */
.jamp-prod-name.is-clamped {
	overflow: hidden !important;
	max-height: 2.8em !important;
}
