/* Hoosh Iran PWA – install banner & iOS guide. Matches the site palette (cream #faf8f4, teal #0e8a84, gold #e8a33d). */
.hoosh-pwa-banner,
.hoosh-pwa-ios {
	--hp-bg: #ffffff;
	--hp-ink: #1f2a2a;
	--hp-muted: #5b6666;
	--hp-line: rgba(14, 138, 132, .14);
	--hp-teal: #0e8a84;
	--hp-teal-ink: #ffffff;
	font-family: Vazirmatn, Tahoma, sans-serif;
	direction: rtl;
	text-align: right;
}

.hoosh-pwa-banner {
	position: fixed;
	z-index: 99990;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--hp-bg);
	color: var(--hp-ink);
	border: 1px solid var(--hp-line);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(20, 40, 40, .16);
	transform: translateY(140%);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}
.hoosh-pwa-banner.is-visible { transform: translateY(0); opacity: 1; }

.hoosh-pwa-banner__icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.hoosh-pwa-banner__text { flex: 1; min-width: 0; line-height: 1.6; }
.hoosh-pwa-banner__text strong { display: block; font-size: 14px; font-weight: 700; }
.hoosh-pwa-banner__text span { display: block; font-size: 12px; color: var(--hp-muted); }
.hoosh-pwa-banner__actions { display: flex; flex-direction: column; gap: 4px; flex: none; }

.hoosh-pwa-banner button,
.hoosh-pwa-install-btn {
	font: inherit;
	cursor: pointer;
	border: 0;
	border-radius: 10px;
}
.hoosh-pwa-banner__install {
	background: var(--hp-teal);
	color: var(--hp-teal-ink);
	font-size: 14px;
	font-weight: 700;
	padding: 8px 18px;
}
.hoosh-pwa-banner__later {
	background: transparent;
	color: var(--hp-muted);
	font-size: 12px;
	padding: 2px 8px;
}

/* Shortcode button [hoosh_install] */
.hoosh-pwa-install-btn {
	font-family: Vazirmatn, Tahoma, sans-serif;
	background: #0e8a84;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 10px 22px;
}
.hoosh-pwa-install-btn[hidden] { display: none; }

/* iOS guide */
.hoosh-pwa-ios {
	position: fixed;
	inset: 0;
	z-index: 99995;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(20, 30, 30, .45);
	opacity: 0;
	transition: opacity .25s ease;
}
.hoosh-pwa-ios.is-visible { opacity: 1; }
.hoosh-pwa-ios__sheet {
	position: relative;
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	background: var(--hp-bg);
	color: var(--hp-ink);
	border-radius: 22px 22px 0 0;
	padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px));
	text-align: center;
	transform: translateY(30px);
	transition: transform .25s ease;
}
.hoosh-pwa-ios.is-visible .hoosh-pwa-ios__sheet { transform: translateY(0); }
.hoosh-pwa-ios__icon { width: 60px; height: 60px; border-radius: 15px; }
.hoosh-pwa-ios h3 { margin: 12px 0 14px; font-size: 17px; }
.hoosh-pwa-ios__steps {
	margin: 0;
	padding: 0 20px 0 0;
	text-align: right;
	font-size: 14px;
	line-height: 2;
	color: var(--hp-ink);
}
.hoosh-pwa-ios__steps li { margin-bottom: 6px; }
.hoosh-pwa-ios__share {
	width: 20px;
	height: 20px;
	vertical-align: -4px;
	color: #007aff;
}
.hoosh-pwa-ios__close {
	position: absolute;
	top: 10px;
	left: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f1efea;
	color: var(--hp-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	.hoosh-pwa-banner, .hoosh-pwa-ios, .hoosh-pwa-ios__sheet { transition: none; }
}
