.app-update-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 14px 40px rgba(39, 52, 143, 0.22);
  color: #0f172a;
  display: flex;
  font: 600 14px/1.4 Vazirmatn, Inter, system-ui, sans-serif;
  gap: 10px;
  inset-inline: 0;
  margin-inline: auto;
  max-width: min(520px, calc(100vw - 24px));
  padding: 8px 8px 8px 16px;
  padding-inline-start: 16px;
  position: fixed;
  width: max-content;
  z-index: 10000;
}

.app-update-banner span {
  flex: 1 1 auto;
}

.app-update-banner [data-update-reload] {
  background: linear-gradient(180deg, #3a66e0, var(--brand-primary-ink, #27348f));
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  min-height: 40px;
  padding: 0 18px;
}

.app-update-banner [data-update-close] {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  cursor: pointer;
  font-size: 20px;
  height: 40px;
  width: 40px;
}

/* Phones: show it at the top, under the header, so it never covers the
   page content or the bottom tab bar. */
@media (max-width: 899px) {
  .app-update-banner {
    bottom: auto;
    font-size: 13px;
    top: calc(68px + env(safe-area-inset-top, 0px));
  }

  .app-update-banner [data-update-reload] {
    min-height: 36px;
    padding: 0 14px;
  }
}

@media (min-width: 900px) {
  .app-update-banner {
    bottom: 24px;
  }
}
