.tdc-copy-editor {
  margin-top: 20px;
}

.tdc-copy-editor textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
}

.tdc-post-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding-bottom: 18px;
}

.tdc-post-copy-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
  max-height: 4.2em;
  font-size: 12px;
}

.tdc-post-copy .tdc-post-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #93b4f8;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
}

.tdc-post-copy-button svg {
  flex: none;
}

.tdc-post-copy .tdc-post-copy-button:hover,
.tdc-post-copy .tdc-post-copy-button:focus-visible {
  background: #dbeafe;
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.tdc-post-copy .tdc-post-copy-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tdc-post-copy-feedback {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #166534;
  font-size: 11px;
  line-height: 16px;
}

.tdc-post-copy-feedback.is-error {
  color: #b91c1c;
}
