.overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 5;

  backdrop-filter: blur(4px);
  background-color: #ffffff3d;

  transition: all 0.4s ease-in-out;
}

.modal {
  display: flex;
  flex-direction: column;

  border-radius: 16px;
  background-color: var(--bg-primary);

  box-shadow: var(--shadow-primary);

  @media screen and (max-width: 768px) {
    height: 100dvh;
    width: 100%;
  }
}

.modal__header {
  position: relative;

  width: 100%;
  padding: 16px;

  display: flex;
  align-items: center;

  box-shadow: var(--shadow-primary);

  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  h1 {
    width: 100%;

    text-align: center;
  }

  app-button {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(-50%, -50%);

    @media screen and (max-width: 768px) {
      right: -16px;
    }
  }
}

.modal__content {
  width: 100%;

  padding: 24px;
  padding-top: 16px;

  max-height: 52vh;
  overflow-y: auto;

  @media screen and (max-width: 768px) {
    flex: 1;
    max-height: unset;
    width: 100%;
  }
}
