.flash-messages {
  position: absolute;
  top: 10px;
  right: 0;

  .flash-message {
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    max-width: 400px;
    z-index: 20;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .btn-close {
      cursor: pointer;
      margin-left: 1rem;
      font-size: 1.25rem;
      text-shadow: 0 1px 0 #fff;
      opacity: 0.75;
      transition: opacity 0.2s ease;

      &:hover {
        opacity: 1;
      }

      &:before {
        content: "×";
      }
    }

    & + .flash-message {
      margin-top: 1rem;
    }
  }
}
