.custom-alerts-overlay {
  // Cover the entire viewport
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;

  // Dark, semi-transparent background
  background-color: rgba(0, 0, 0, 0.8);

  // Centering the dialog
  display: flex;
  align-items: center;
  justify-content: center;

  // Hidden by default
  &.hidden {
    display: none;
  }
}

.custom-alerts-dialog {
  background-color: #222;
  color: #fff;
  padding: 20px 20px 25px;
  border-radius: 20px;
  min-width: 250px;
  // max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;

  #custom-alerts-message {
    font-size: 130%;
    line-height: 1.4em;
    padding: 0 20px;
    margin: 0 auto 1.2em;
    max-width: 350px;
  }

  button,
  input[type="text"] {
    margin: 0;
    font-size: 100%;
    border-radius: 8px;
    text-transform: uppercase;
    & + button {
      margin-top: 1em;
    }
  }

  .custom-alerts-buttons {
    display: flex;
    gap: 10px;
    button {
      margin: 0;
    }
  }
}

.custom-alerts-input-container {
  margin-bottom: 25px;

  // Hidden by default
  &.hidden {
    display: none;
  }

  input[type="text"] {
    background-color: #181818;
    padding: 20px;
  }
}

.custom-alerts-list-container {
  margin-bottom: 1.5em;
  columns: 4;
  gap: 25px;
  &.hidden {
    display: none;
  }
  .custom-alerts-list-item {
    display: grid;
    grid-template-columns: 1fr 30px;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
  }
  button.resolve {
    display: block;
    display: flex;
    grid-gap: 10px;
    justify-content: space-between;
    text-align: left;
    background-color: #404040;
  }
  button.remove {
    font-size: 0;
    margin: 0;
    width: 100%;
    height: 100%;
  }
  .details {
    color: #999;
    font-size: 80%;
  }
}

.hidden {
  display: none;
}
