/* ============ INSTALL-THE-APP BUTTONS + INSTRUCTIONS SHEET (js/pwa.js) ============
   Self-contained on purpose: the storefront and the login pages load
   different base stylesheets, so this only relies on its own colours. */
.install-app-btn[hidden] { display: none !important; }

.hero-app-btn {
  margin-top: 22px; border: none; border-radius: 999px; padding: 12px 24px; cursor: pointer;
  background: linear-gradient(135deg, #e3b768, #c9973d); color: #2a1410;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35); transition: transform 0.15s, box-shadow 0.15s;
}
.hero-app-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,0.45); }

.link-app-btn {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit;
  text-decoration: underline;
}
.store-footer-contacts .link-app-btn { color: #f0e2d3; font-size: 12.5px; text-align: left; white-space: nowrap; }
.store-footer-contacts .link-app-btn:hover { color: #e3b768; }

/* Phone-only bar pinned to the bottom of the storefront. Sits under the
   cart drawer (z-index 55-70 in store.css) so it never covers checkout. */
.pwa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 12px;
  background: #3d1a15; color: #f4e9dc; box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  font-family: 'Inter', sans-serif;
}
.pwa-bar img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.pwa-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pwa-bar-text strong { font-size: 13.5px; color: #fff; }
.pwa-bar-text span { font-size: 11.5px; color: #e3b768; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-bar-install {
  flex-shrink: 0; border: none; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  background: linear-gradient(135deg, #e3b768, #c9973d); color: #2a1410;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px;
}
.pwa-bar-close {
  flex-shrink: 0; background: none; border: none; color: #c8a98f; font-size: 22px; line-height: 1;
  padding: 4px 2px; cursor: pointer;
}
body.has-pwa-bar { padding-bottom: 70px; }

.pwa-sheet-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20,8,6,0.6);
}
.pwa-sheet {
  width: 100%; max-width: 380px; padding: 22px; border-radius: 16px; background: #fff; color: #2a1410;
  font-family: 'Inter', sans-serif; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.pwa-sheet-icon { width: 56px; height: 56px; border-radius: 14px; display: block; margin-bottom: 12px; }
.pwa-sheet h3 { margin: 0 0 10px 0; font-family: 'Sora', sans-serif; font-size: 18px; color: #3d1a15; }
.pwa-sheet ol { margin: 0 0 14px 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.pwa-sheet p { margin: 0 0 14px 0; font-size: 14px; line-height: 1.5; }
.pwa-sheet .pwa-note { font-size: 12.5px; color: #7a6558; }
.pwa-sheet-close {
  width: 100%; border: none; border-radius: 10px; padding: 11px; cursor: pointer;
  background: #3d1a15; color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
}
@media (max-width: 480px) {
  .pwa-sheet-overlay { align-items: flex-end; }
  .hero-app-btn { font-size: 13px; padding: 11px 20px; }
}
