@import 'assets/scss/colors';
@import 'assets/scss/fonts';

.main {
  position: absolute;
  height: 40px;
  bottom: 48px;
  text-align: -webkit-center;
  right: 0;
  left: 0;
  animation: pop 0.8s;
  transition-timing-function: ease-in-out;
}

.errorWrapper {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px 8px 12px;
  border-radius: 10px;
  background-color: indianred;
  border: 1px solid var(--color-error-border);
  svg {
    fill: white;
    height: 24px;
    width: 24px;
    margin-right: 2px;
  }
  button {
    margin: 2px 0 0 0;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding-right: 0;
    svg {
      fill: white;
      height: 12px;
      width: 12px;
    }
  }
  p {
    max-width: 95%;
    line-height: 1.5;
    padding: 0 6px;
    @include font-s;
    font-weight: 700;
    color: white;
    white-space: pre-line;
  }
}

.errorContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pop {
  0% {
    bottom: -50px;
  }
  60% {
    bottom: 50px;
  }
  75% {
    bottom: 46px;
  }
  90% {
    bottom: 50px;
  }
  100% {
    bottom: 48px;
  }
}
