/* The change review: accept, reject or edit each change
   (src/lib/changeReviewView.ts). Shared by the app and the editor. The
   button labels live here, not in the markup, so the diff's text is just
   the words. Needs the page to define --sans, --danger. */
.diff-insert { background: #d7ead9; color: #1f5c34; border-radius: 3px; padding: 0 2px; }
.diff-delete { background: #f6d9d2; color: var(--danger); text-decoration: line-through; border-radius: 3px; padding: 0 2px; }

.hunk { position: relative; border-radius: 4px; cursor: pointer; outline: none; }
.hunk.pending:hover, .hunk.pending:focus-within { box-shadow: 0 0 0 2px rgba(122, 92, 240, .35); }
.hunk.accepted { box-shadow: inset 0 -2px 0 #9fd1ab; }
.hunk.rejected { box-shadow: inset 0 -2px 0 #d9d9e3; }
.hunk-actions {
  position: absolute; left: 0; bottom: 100%; z-index: 5; display: none;
  gap: 4px; padding-bottom: 4px; white-space: nowrap;
}
.hunk:hover .hunk-actions, .hunk:focus-within .hunk-actions { display: inline-flex; }
.hunks-locked .hunk-actions { display: none !important; }
.hunk-btn {
  font: 600 12px/1 var(--sans);
  border-radius: 999px; padding: 6px 10px; cursor: pointer; border: 1px solid;
  box-shadow: 0 2px 8px rgba(17, 17, 26, .12); text-decoration: none; transform: none !important;
}
.hunk-accept { background: #1f5c34; border-color: #1f5c34; color: #fff; }
.hunk-accept::before { content: "\2713  Accept"; }
.hunk-reject { background: #fff; border-color: #f0c4bd; color: #b3261e; }
.hunk-reject::before { content: "\2715  Reject"; }
.hunk-undo { background: #fff; border-color: #d9d9e3; color: #3a3a44; }
.hunk-undo::before { content: "\21B6  Undo"; }
.hunk.edited { box-shadow: inset 0 -2px 0 #b9a6ff; }
.hunk.editing { cursor: text; }
.hunk-edit { background: #fff; border-color: #d6ccff; color: #5b3fd6; }
.hunk-edit::before { content: "\270E  Edit"; }
.hunk-save { background: #1f5c34; border-color: #1f5c34; color: #fff; }
.hunk-save::before { content: "\2713  Save"; }
.hunk-cancel { background: #fff; border-color: #d9d9e3; color: #3a3a44; }
.hunk-cancel::before { content: "Cancel"; }
.hunk-input {
  font: inherit; color: inherit; max-width: 100%; padding: 1px 6px; border-radius: 6px;
  border: 1px solid #b9a6ff; background: #fff; box-shadow: 0 0 0 3px #f1edff; outline: none;
}
