/* The install bar (js/pwa.js): bottom-right on a desktop, centred and full-width on a phone. */
.pwa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  width: min(420px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #1a2035;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(6, 12, 24, .45);
  font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
  animation: pwa-in .26s cubic-bezier(.4, 0, .2, 1);
}
@media (max-width: 860px) {
  .pwa { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes pwa-in { from { opacity: 0; margin-bottom: -14px; } to { opacity: 1; margin-bottom: 0; } }

.pwa-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; overflow: hidden; display: flex; }
.pwa-mark img { width: 100%; height: 100%; display: block; }
.pwa-copy { flex: 1; min-width: 0; }
.pwa-copy .t { font-size: 14px; font-weight: 700; line-height: 1.25; }
.pwa-copy .s { font-size: 12px; color: #a5b1cc; margin-top: 3px; line-height: 1.4; }
.pwa-copy .s b { color: #e2e8f5; font-weight: 600; }

.pwa-go {
  flex: none; border: none; cursor: pointer;
  background: #3b5bdb; color: #fff;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  border-radius: 11px; padding: 10px 16px;
}
.pwa-go:hover { background: #4c6ef5; }
.pwa-go:active { transform: translateY(1px); }
.pwa-x {
  flex: none; background: none; border: none; cursor: pointer;
  color: #8592b0; font-size: 22px; line-height: 1; padding: 4px 6px;
}
.pwa-x:hover { color: #fff; }

/* Self-Service Portal appearance: the portal's own navy and teal, as in InstaHRM. */
html[data-appearance="portal"] .pwa { background: #1B2B4B; }
html[data-appearance="portal"] .pwa-go { background: #0DBFB0; color: #062b28; }

@media (prefers-reduced-motion: reduce) { .pwa { animation: none; } }
