/* "Install app" button and the iPhone / iPad help sheet
   (templates/_install-app.php, public/assets/install.js), for the shop and
   the admin. Colours come from each stylesheet's own variables, so Day and
   Night both work; the fallbacks are for a page without them. */

.install-app {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; margin: 0; padding: 8px 10px;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.install-app[hidden] { display: none !important; }
.install-app svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Shop: the end of the desktop menu bar, and a line in the phone menu. */
@media (min-width: 700px) { .mainnav-inner > .menubar:has(.menubar-install) { flex: 1 1 auto; } }
.menubar > li.menubar-install { margin-left: auto; }
.install-app.in-menubar { padding: 12px; font-size: 14px; font-weight: 600; color: var(--ink, #1B1B1B); white-space: nowrap; }
.install-app.in-menubar:hover,
.install-app.in-menubar:focus-visible { color: var(--orange, #FB7701); }
.install-app.drawer-link { width: 100%; padding: 11px 4px; font-size: 15px; color: var(--ink, #1B1B1B); }

/* Admin: in the sidebar footer, styled like "Settings & account". */
.install-app.side-settings { width: 100%; font-size: 13.5px; font-weight: 600; color: var(--body, #3A444F); }
.install-app.side-settings:hover, .install-app.side-settings:focus-visible { color: var(--accent, #2C5FF6); }

/* ------------------------------------------------ iPhone / iPad sheet */
.ia-sheet { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; }
.ia-sheet[hidden] { display: none; }
.ia-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.ia-box {
  position: relative; width: 100%; max-width: 440px; box-sizing: border-box;
  margin: 0 8px calc(8px + env(safe-area-inset-bottom, 0px));
  padding: 22px 20px 18px; border-radius: 18px;
  background: var(--card, #fff); color: var(--ink, #1B1B1B);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 700px) { .ia-sheet { align-items: center; } }
.ia-title { margin: 0 32px 6px 0; font-size: 18px; line-height: 1.3; }
.ia-lead, .ia-note { margin: 0 0 12px; opacity: .8; font-size: 14px; }
.ia-note { margin: 12px 0 0; font-size: 13px; }
.ia-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ia-steps li { display: flex; align-items: center; gap: 12px; }
.ia-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--orange, var(--accent, #FB7701));
}
.ia-icon { display: inline-flex; vertical-align: middle; margin: 0 4px; color: #0A84FF; }
.ia-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ia-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(127, 127, 127, .15); color: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
