/* The manager app demo's extras (see demo.js): the phone's status bar and home bar when it's shown inside the
   website's phone, the pretend Face ID, notifications and the code hint. */

.demo-framed body { padding-top: 46px; }
.demo-framed .top { top: 46px; }
.demo-framed .bottom-nav { padding-bottom: 22px; }
.demo-framed .content { padding-bottom: 120px; }
.demo-framed .toast { bottom: 104px; }

.demo-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35; /* above the app's full-screen pages (z-index 30) */
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px 0 38px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.demo-icons { display: inline-flex; align-items: center; gap: 6px; }
.demo-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.demo-sig b { width: 3px; background: var(--text); border-radius: 1px; }
.demo-sig b:nth-child(1) { height: 4px; }
.demo-sig b:nth-child(2) { height: 6px; }
.demo-sig b:nth-child(3) { height: 9px; }
.demo-sig b:nth-child(4) { height: 12px; }
.demo-5g { font-size: 13px; }
.demo-bat { width: 25px; height: 12px; border: 1.5px solid var(--text); border-radius: 4px; padding: 1.5px; opacity: 0.9; }
.demo-bat b { display: block; width: 78%; height: 100%; background: var(--text); border-radius: 1.5px; }

.demo-home {
  position: fixed;
  left: 50%;
  bottom: 7px;
  z-index: 36;
  width: 134px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(243, 235, 225, 0.85);
  pointer-events: none;
}

.demo-faceid {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
}
.demo-faceid > div {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 150px;
  padding: 22px 0 16px;
  border-radius: 24px;
  background: rgba(40, 34, 30, 0.96);
  color: var(--text);
}
.demo-faceid p { margin: 0; font-weight: 600; }
.demo-face {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 3px solid var(--text);
  position: relative;
  transition: border-color 0.2s;
}
.demo-face::before { content: ''; position: absolute; inset: 18px 16px auto; height: 8px; border-left: 3px solid; border-right: 3px solid; }
.demo-face::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 14px; height: 10px; border: 3px solid; border-top: 0; border-radius: 0 0 12px 12px; }
.demo-faceid.done .demo-face { border-color: var(--ok); color: var(--ok); }

.demo-push {
  position: fixed;
  top: 54px;
  left: 10px;
  right: 10px;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(58, 50, 44, 0.97);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: demo-in 0.35s ease-out;
  transition: opacity 0.4s, transform 0.4s;
}
.demo-push.out { opacity: 0; transform: translateY(-20px); }
.demo-push img { width: 38px; height: 38px; border-radius: 9px; }
.demo-push div { display: grid; font-size: 14px; }
@keyframes demo-in { from { opacity: 0; transform: translateY(-20px); } }
html:not(.demo-framed) .demo-push { top: 10px; }

.demo-hint { color: var(--accent-soft); font-size: 14px; margin: 8px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .demo-push { animation: none; transition: none; }
}

/* Straight to Home (see demo.js): hide the app while it unlocks itself, and hide the padlock. */
.demo-unlocking #app { visibility: hidden; }
.lock-btn { display: none !important; }

/* A full-screen page over the app (Notifications, expiring minutes, popular products) sits under the status bar. */
.demo-framed .over-page { top: 46px; }
.demo-framed .over-page .top { top: 0; }
.demo-framed .over-body { padding-bottom: 48px; }
