.overlay {
  background: #212326de;

  animation: fade-in 0.3s ease-in-out forwards;

  &.closed {
    animation: fade-out 0.3s ease-in-out forwards;
  }
}

.sheet {
  border-radius: 47px 47px 0 0;
  background: #f3f4f6;
  padding: 16px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 16px);
  height: fit-content;
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 0dvh;
  z-index: 1000;
  animation: slide-up 0.3s ease-in-out forwards;

  &.closed {
    animation: slide-down 0.3s ease-in-out forwards;
  }

  &.gray {
    background: #ffffff70;

    & > .crossButton {
      background: #ffffff33;
      border: none;
    }
  }

  & > .crossButton {
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0px 1px 4px 0px #00000040;
    padding: 0;
    margin: 8px 8px 0 auto;
  }
}

@keyframes slide-up {
  from {
    transform: translate(-50%, 100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes slide-down {
  from {
    transform: translate(-50%, 0);
  }
  to {
    transform: translate(-50%, 100%);
  }
}

@keyframes fade-in {
  from {
    background: transparent;
    backdrop-filter: blur(0px);
  }
  to {
    background: #212326de;
    backdrop-filter: blur(14px);
  }
}

@keyframes fade-out {
  from {
    background: #212326de;
    backdrop-filter: blur(14px);
  }
  to {
    background: transparent;
    backdrop-filter: blur(0px);
  }
}
