/* Банер встановлення застосунку. */

.e-install {
	position: fixed;
	z-index: 300;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--e-header-bg, #041c12);
	color: var(--e-button-text, #f8f5f2);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
	transform: translateY(140%);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}

.e-install.is-visible {
	transform: translateY(0);
	opacity: 1;
}

/* На головній знизу закріплені кнопки дзвінка — піднімаємо банер над ними. */
body.home .e-install {
	bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.e-install__body {
	flex: 1 1 auto;
	min-width: 0;
}

.e-install__title {
	margin: 0 0 2px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.e-install__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	opacity: .85;
}

.e-install__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.e-install__button {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--e-button-bg, #f0c47a);
	color: var(--e-main, #041c12);
}

.e-install__close {
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.e-install {
		transition: none;
	}
}
