/* Cookie consent banner.
   Loaded on every page. The card borrows the waitlist modal's language (light
   blurred panel, pill buttons) at a smaller scale, and sits in the bottom left
   so it covers as little of the page as possible. */

.pif_notice[hidden] {
  display: none;
}

/* Below the waitlist modal's 100000 so the modal's scrim covers it rather
   than the two fighting for the same corner. */
.pif_notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99000;
  box-sizing: border-box;
  width: calc(100vw - 48px);
  max-width: 384px;
  padding: 24px;
  border: 1px solid #48484a33;
  border-radius: 28px;
  background-color: #fffffff2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px #0c0c0c26;
}

.pif_notice_title {
  margin: 0 0 8px;
  color: #0c0c0c;
  font-family: Geist, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 130%;
}

.pif_notice_text {
  margin: 0 0 18px;
  color: #5e5e5e;
  font-family: Geist, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 150%;
}

.pif_notice_text a {
  color: #0c0c0c;
  text-decoration: underline;
}

.pif_notice_actions {
  display: flex;
  gap: 10px;
}

/* Both choices are one click and the same size: the only difference is fill,
   so neither reads as the path of least resistance. */
.pif_notice_btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: Geist, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 100%;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease;
}

.pif_notice_btn.is-allow {
  background-color: #111;
  color: #fff;
}

.pif_notice_btn.is-allow:hover {
  opacity: .82;
}

.pif_notice_btn.is-deny {
  border-color: #d8d8d8;
  background-color: #fff;
  color: #111;
}

.pif_notice_btn.is-deny:hover {
  background-color: #f1f1f1;
}

.pif_notice_btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* The footer entry that reopens the banner is a button, since it changes
   state rather than navigating. These reset the parts .footer-link-new
   does not already set on an anchor. */
button.footer-link-new {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 479px) {
  .pif_notice {
    bottom: 16px;
    left: 16px;
    width: calc(100vw - 32px);
    padding: 20px;
    border-radius: 24px;
  }

  .pif_notice_actions {
    flex-flow: column;
  }

  .pif_notice_btn {
    flex: none;
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .pif_notice {
    animation: pif_notice_in .32s ease both;
  }

  @keyframes pif_notice_in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }
}
