/* INAR Gifts app: install banner + app-only tab bar. */

/* Install banner */
.app-install {
	position: fixed; z-index: 90;
	left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
	max-width: 460px; margin-inline: auto;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 12px 12px 14px;
	background: var(--ink); color: var(--cloud);
	border: 1px solid var(--line-light);
	border-radius: var(--r-md);
	box-shadow: 0 18px 48px rgba(11, 26, 61, .35);
	transform: translateY(24px); opacity: 0;
	transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.app-install[hidden] { display: none; }
.app-install.is-in { transform: none; opacity: 1; }
.app-install__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.app-install__text { flex: 1; min-width: 0; }
.app-install__title { font-family: var(--font-display); font-weight: 800; font-size: 12px; white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; color: var(--white); line-height: 1.3; }
.app-install__sub { font-size: 13px; line-height: 1.45; color: var(--muted-light); margin-top: 2px; }
.app-install__sub strong { color: var(--peach); font-weight: 500; }
.app-install__share { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; color: var(--peach); }
.app-install__btn {
	flex: none; min-height: 40px; padding: 0 18px;
	border: 0; border-radius: var(--r-pill);
	background: var(--flame); color: var(--navy-950);
	font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
	cursor: pointer;
}
.app-install__btn[hidden] { display: none; }
.app-install__close {
	flex: none; display: grid; place-items: center;
	width: 36px; height: 36px; margin-left: -4px;
	border: 0; border-radius: var(--r-pill);
	background: transparent; color: var(--muted-light); cursor: pointer;
}
.app-install__close:hover { color: var(--white); }

/* Tab bar: only inside the installed app */
.app-tabs { display: none; }
@media (display-mode: standalone) {
	html:not(.is-app) .app-tabs { display: grid; }
}
.is-app .app-tabs { display: grid; }
.app-tabs {
	position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
	grid-template-columns: repeat(4, 1fr);
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	background: rgba(14, 31, 71, .96);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-top: 1px solid var(--line-light);
}
.app-tabs__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	min-height: 52px; border-radius: var(--r-md);
	color: var(--muted-light); text-decoration: none;
	font-size: 11px; font-weight: 400; letter-spacing: .02em;
	-webkit-tap-highlight-color: transparent;
}
.app-tabs__item svg { width: 24px; height: 24px; }
.app-tabs__item.is-active { color: var(--peach); }
.app-tabs__item--wa { color: var(--white); }
.app-tabs__item--wa svg { color: var(--coral); }
.app-tabs__item:active { background: rgba(233, 236, 243, .08); }

/* Room for the tab bar + notch when running as the app */
.is-app body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.is-app .site-header { padding-top: env(safe-area-inset-top); }
.is-app .nav__cta { display: none; }
@media (display-mode: standalone) {
	body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
