@use "_theme.scss";

.draft-description-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.draft-description-text {
  font-size: var(--text-size-regular);
  color: var(--text-color-medium);
  word-break: break-word;
  white-space: pre-line;
}

.draft-description-with-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  .draft-description-button {
    margin-top: 5px;
  }
}

.draft-description-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;

  &:hover:not(:disabled) {
    .edit-icon {
      opacity: 1;
    }
  }

  .edit-icon {
    transition: opacity 0.2s ease;
  }

  svg path {
    fill: var(--color-icon);
  }

  .draft-description-label {
    font-size: var(--text-size-regular);
    color: var(--text-color-medium);
    word-break: break-word;
  }
}

.draft-description-input {
  display: inline-block;
  border: 1px solid var(--color-line);
  height: 30px;
  border-radius: var(--form-input-border-radius);
  width: 320px;
  color: var(--text-color-dark);
  font-size: var(--text-size-regular);
  padding: 0 10px;
  flex: 1;
  margin-top: 4px;

  &:focus {
    outline: none;
    border: 1px solid var(--color-line);
  }

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