/* Lily Yum — Smart PWA install banner. Uses the site theme variables
   (cream / forest / royal, light + dark) so no per-theme overrides needed.
   Legacy #installHint from app.js is retired: forced hidden here. */
#installHint{display:none!important}

.ly-install-bar{
  position:fixed;left:12px;right:12px;bottom:calc(124px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px));
  z-index:45;max-width:640px;margin:0 auto;
  background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:10px 8px 10px 12px;display:flex;gap:8px;align-items:center;
  box-shadow:var(--shadow);font-size:13.5px;font-weight:600;color:var(--ink);
}
.ly-install-icon{font-size:20px;flex:none;line-height:1}
.ly-install-text{flex:1;min-width:0}
.ly-install-bar .ly-install-cta{padding:8px 12px;font-size:13px;flex:none;white-space:nowrap}
.ly-install-collapse,.ly-install-close{
  flex:none;border:0;background:transparent;color:var(--muted);cursor:pointer;
  font-size:20px;line-height:1;width:32px;height:32px;border-radius:10px;
}
.ly-install-collapse:hover,.ly-install-close:hover{background:var(--surface-2);color:var(--ink)}
.ly-install-collapse{padding-bottom:0}

/* When the cart summary bar is visible (bottom:128px, 65px tall at 390px),
   lift the install bar / fab above it instead of overlapping it. The bottom
   tab bar is 73px tall at 390px (EN and FA) and the raised cart button's
   top sits 87px — all clearances are 124px base. 2026-11-15 nav redesign. */
body.has-cart-bar .ly-install-bar{bottom:calc(208px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
body.has-cart-bar .ly-install-fab{bottom:calc(214px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
.ly-install-fab{
  position:fixed;bottom:calc(124px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px));
  inset-inline-end:14px;z-index:45;
  display:flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,var(--brand),var(--brand-deep));color:#fff;
  border:0;border-radius:999px;padding:10px 14px;cursor:pointer;
  font-size:13px;font-weight:700;box-shadow:var(--shadow);
  animation:ly-fab-pulse 2.2s ease-in-out infinite;
}
@keyframes ly-fab-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(217,119,6,.45),var(--shadow)}
  50%{box-shadow:0 0 0 9px rgba(217,119,6,0),var(--shadow)}
}
@media (prefers-reduced-motion:reduce){ .ly-install-fab{animation:none} }

/* Install guide overlay (iOS steps / desktop steps / Android fallback). */
.ly-install-guide{
  position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.45);
  display:flex;align-items:flex-end;justify-content:center;padding:16px;
}
.ly-install-guide-card{
  background:var(--surface);color:var(--ink);border:1px solid var(--line);
  border-radius:20px;padding:16px;width:100%;max-width:520px;max-height:82vh;overflow:auto;
  box-shadow:var(--shadow);
}
.ly-install-guide-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ly-install-guide-title{font-size:16px}
.ly-install-guide-close{
  border:0;background:var(--surface-2);color:var(--ink);cursor:pointer;
  font-size:20px;line-height:1;width:32px;height:32px;border-radius:10px;flex:none;
}
.ly-install-steps{display:grid;gap:12px;padding:0;margin:14px 0 0}
.ly-install-steps li{background:var(--surface-2);border-radius:12px;padding:10px 12px;list-style:none}
.ly-install-steps li b{display:block;color:var(--ink)}
.ly-install-steps li span{color:var(--ink-2);font-size:13.5px}
.ly-install-note{color:var(--muted);font-size:13px;margin:14px 0 0}

@media (max-width:420px){
  .ly-install-bar{left:8px;right:8px;font-size:13px;padding:9px 6px 9px 10px;gap:6px}
  .ly-install-bar .ly-install-cta{padding:8px 10px;font-size:12.5px}
  .ly-install-icon{font-size:18px}
  .ly-install-fab{padding:9px 12px;font-size:12.5px}
}

/* ---------- Inline SVG icons (2026-11-15) ---------- */
.ly-install-icon .ic{width:22px;height:22px}
.ly-install-fab .ic{width:18px;height:18px;flex:none}
.ly-install-collapse,.ly-install-close,.ly-install-guide-close{display:flex;align-items:center;justify-content:center}
.ly-install-collapse .ic,.ly-install-close .ic,.ly-install-guide-close .ic{width:18px;height:18px}
