.modal {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--modal-background-color);
  padding: 0 20px;
  z-index: 100;
  overflow-y: auto;

  .content {
    position: relative;
    max-width: 350px;
    margin: 100px auto;
    padding: 1rem;
    background-color: var(--modal-background-content-color);
    border-radius: var(--border-radius);
    overflow: auto;
    box-shadow: var(--modal-drop-shadow);
  }
}

/* remove scroll bars */
.loki-dialog .add-moderators-dialog .content {
  padding: 1.1rem;
}

.session-modal {
  &__input-group {
    min-width: 300px;

    input {
      margin-bottom: var(--margins-md);
    }

    input:last-child {
      margin-bottom: 0px;
    }
  }
}

.add-moderators-dialog,
.remove-moderators-dialog {
  .content {
    max-width: 100% !important;
  }
  .contact-selection-list {
    width: 100%;
  }

  .buttons {
    margin: 8px;
  }

  .group-name {
    font-size: larger;
  }

  .titleText {
    font-size: large;
    text-align: center;
  }

  .no-contacts {
    text-align: center;
  }

  .hidden {
    display: none;
  }
}

.loki-dialog {
  display: flex;
  align-items: center;
  justify-content: center;

  input[type='radio'] {
    width: inherit;
  }

  input:not([type='radio']) {
    width: 100%;
  }

  input {
    padding: 8px;
    border: 0;
    outline: none;
    border-radius: 4px;

    &:focus {
      outline: none;
    }
  }

  h4 {
    margin-top: 8px;
    margin-bottom: 16px;
  }
}

.loki-dialog {
  & ~ .index.inbox {
    transition: filter var(--duration-modal-to-inbox);
  }

  input {
    background-color: var(--input-background-color);
    color: var(--input-text-color);
    border: 1px solid var(--input-border-color);

    &::placeholder {
      color: var(--input-text-placeholder-color);
    }
  }
}

.reaction-list-modal {
  .session-confirm-wrapper {
    .session-modal__body {
      width: 376px;
    }
  }
}

.no-body-padding {
  .session-confirm-wrapper {
    .session-modal__body {
      padding: 0;
      .session-modal__centered {
        margin: 0;
      }
    }
  }
}

.user-details-dialog {
  .session-confirm-wrapper {
    .session-modal__header {
      max-width: 400px;
    }
    .session-modal__body {
      width: 400px;
    }
  }
}
