/* The buy bar pinned to the bottom of a phone screen.
   Values are the legacy page's `.fixed-auth-btn` block. */

/* `env(safe-area-inset-bottom)` keeps it clear of the home indicator on a
   notched phone; the fallback is 0 everywhere else. */
.symbol-buy-bar {
  position: fixed;
  right: 0;
  bottom: env(safe-area-inset-bottom, 0);
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background-color: var(--gray-0);
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* `.btn` gives it the brand colours and the radius; the size is this bar's.
   `.btn` also pins `line-height: 20px`, where the legacy's button inherits the
   page's 1.6 — a pixel of difference in where the label sits. */
.symbol-buy-bar-link {
  width: 100%;
  height: 48px;
  font-size: 16px;
  line-height: inherit;
}

/* From 600px up the calculator is on screen with its own buy button, so the
   legacy drops this rather than showing two. */
@media (min-width: 600px) {
  .symbol-buy-bar {
    display: none;
  }
}
