html {
  scroll-padding-top: var(--app-banner-height, 0px);
}

/* Reserve the measured banner height so fixed positioning doesn't cover the
   page, including when larger text or safe-area padding makes it taller. */
body.has-app-banner {
  padding-top: var(--app-banner-height, calc(58px + env(safe-area-inset-top, 0px)));
}

.app-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: calc(58px + env(safe-area-inset-top, 0px));
  padding: calc(6px + env(safe-area-inset-top, 0px))
    calc(12px + env(safe-area-inset-right, 0px)) 6px
    calc(12px + env(safe-area-inset-left, 0px));
  border: 0.5px solid rgb(0 0 0 / 10%);
  background: #006861;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.1;
}

.app-banner__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.app-banner__copy {
  display: flex;
  flex: 1 1 7em;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-banner__title,
.app-banner__download {
  font-weight: 500;
  letter-spacing: 0.008em;
}

.app-banner__download {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  border-radius: 100px;
  -webkit-tap-highlight-color: transparent;
}

.app-banner__download span {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: inherit;
  background: rgb(254 255 238 / 20%);
}

.app-banner__download:focus-visible {
  outline: 2px solid #feffee;
  outline-offset: 2px;
}
