/* ###### MAP CONSENT ###### */

/* Above the page and the navbar, below the dialogs and the photo viewer */
.consent-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 7000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  max-width: 60rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--box-border-color);
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
  color: #1b1c19;

  &[hidden] {
    display: none;
  }

  p {
    flex: 1 1 22rem;
    font-size: 0.9375rem;
  }
}

/* Accept and reject look the same: rejecting is as easy as accepting */
.consent-actions {
  display: flex;
  gap: 0.75rem;
}

.consent-banner button,
.consent-placeholder button {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background-color: #0f5238;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms;

  &:hover {
    background-color: #0b3f2b;
  }

  &:focus-visible {
    outline: 2px solid #a43946;
    outline-offset: 2px;
  }
}

/* Fills the box of a map that is waiting for consent */
.consent-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: #f3f4ef;
  color: #404943;
  text-align: center;

  .material-symbols-outlined {
    font-size: 3rem;
    color: #0f5238;
  }

  p {
    max-width: 32rem;
  }
}
