@use '_theme.scss';

.modal-dialog.draft-description-modal {
  max-width: 536px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0 auto;

  @media (max-width: theme.$sm) {
    margin: 0 20px;
    max-width: calc(100% - 40px);
  }

  .draft-description-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid var(--color-line);

    .draft-description-modal-title {
      font-size: var(--text-size-h4);
      color: var(--text-color-ultra-dark);
    }

    .close-btn {
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      cursor: pointer;

      &:hover {
        opacity: 0.7;
      }
    }
  }

  .draft-description-modal-body {
    padding: 30px 20px;

    @media (max-width: theme.$sm) {
      padding: 20px 15px;
    }
  }

  .draft-description-form {
    margin-bottom: 50px;
  }

  .draft-description-label {
    display: block;
    font-size: var(--text-size-label);
    color: var(--text-color-ultra-dark);
    margin-bottom: 10px;
  }

  .draft-description-textarea {
    width: 100%;
    min-height: calc(3 * 1.5em + 20px);
    max-height: calc(10 * 1.5em + 20px);
    padding: 10px 15px;
    font-size: var(--text-size-label);
    font-family: inherit;
    border: 1px solid var(--color-line);
    border-radius: 5px;
    resize: vertical;
    box-sizing: border-box;

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

  .draft-description-note {
    font-size: var(--text-size-regular);
    color: var(--text-color-medium);
    margin-top: 10px;
    margin-bottom: 0;
  }

  .draft-description-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;

    .button {
      width: 100%;
    }

    @media (max-width: theme.$sm) {
      gap: 12px;
    }
  }
}

.draft-description-modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
