/*
 * <wc-deletion-dialog> — DELETION-FLOWS §4.1.
 *
 * EVERY rule here is scoped to a `.wpml-dd*` class. The element mounts on
 * edit.php and post.php (and, in B3, on upload.php / edit-tags.php /
 * nav-menus.php), screens whose own stylesheets WPML does not own; a single
 * unscoped selector here would repaint somebody else's list table. That is also
 * why the bundle carries its own file instead of borrowing
 * `public/css/tailwind.css`, which ships an IA-wide `.wrap a` link rule and
 * would restyle every row action on the screen behind the dialog.
 *
 * The Modal's backdrop and card come from its inline `style` / `bodyStyle`
 * escape hatches (Modal.tsx documents them for exactly this), so the dialog is
 * placed and framed even if this file fails to load.
 */

.wpml-dd-modal .modal-content {
  color: #1d2327;
  font-size: 13px;
  line-height: 1.6;
}

.wpml-dd-modal .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px;
  line-height: 1;
  color: #646970;
  background: none;
  border: 0;
  cursor: pointer;
}

.wpml-dd-modal .modal-close:hover,
.wpml-dd-modal .modal-close:focus {
  color: #1d2327;
}

.wpml-dd__title {
  margin: 0 32px 16px 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1d2327;
}

/* §4.3's media sentence and §4.1's duplicate answer. Set as a quiet block rather
   than a warning: neither is a risk to weigh, both are facts that make the
   options mean what they say. The left rule carries the grouping so two notes
   read as one aside instead of as two stray paragraphs. */
.wpml-dd__notes {
  margin: 0 0 16px;
  padding: 8px 12px;
  background: #f6f7f7;
  border-left: 3px solid #c3c4c7;
  border-radius: 0 3px 3px 0;
}

.wpml-dd__note {
  margin: 0;
  padding: 0;
  color: #50575e;
}

.wpml-dd__note + .wpml-dd__note {
  margin-top: 6px;
}

.wpml-dd__options {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wpml-dd__option {
  margin: 0 0 4px;
  padding: 0;
  border-radius: 3px;
}

.wpml-dd__option:last-child {
  margin-bottom: 0;
}

/* The highlight belongs to the whole OPTION, not to its label: "only this one"
   carries a promote select underneath, and a highlight that stopped at the
   label would leave the select looking like it belonged to the next option. */
.wpml-dd__option:hover {
  background: #f6f7f7;
}

.wpml-dd__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.wpml-dd__choice input[type='radio'],
.wpml-dd__choice input[type='checkbox'] {
  flex: 0 0 auto;
  /* WP-admin's own radio is 1rem tall with no top margin; nudge it onto the
     first text line instead of the padded box's top edge. */
  margin: 3px 0 0;
}

.wpml-dd__text {
  display: block;
  min-width: 0;
}

.wpml-dd__label {
  display: block;
  font-weight: 600;
  color: #1d2327;
}

.wpml-dd__description {
  display: block;
  margin-top: 2px;
  color: #50575e;
}

.wpml-dd__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: #8a6116;
  background: #fcf3e3;
  border: 1px solid #f0c987;
  border-radius: 9px;
  vertical-align: 1px;
  white-space: nowrap;
}

.wpml-dd__promote {
  /* Aligned to the option TEXT, not to the padded box: the select belongs to
     the sentence above it, which starts past the radio. 38px = the choice's
     12px padding + the 16px control + the 10px gap. */
  margin: 0;
  padding: 0 12px 10px 38px;
}

.wpml-dd__select {
  max-width: 100%;
}

.wpml-dd__remember {
  /* The 12px left padding puts this checkbox on the same vertical line as the
     options' radios, which sit inside the choice's own 12px padding. The rule
     above it still runs the full content width. */
  margin: 12px 0 0;
  padding: 12px 12px 0;
  border-top: 1px solid #f0f0f1;
}

.wpml-dd__choice--inline {
  align-items: center;
  padding: 0;
}

.wpml-dd__choice--inline:hover {
  background: none;
}

.wpml-dd__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.wpml-dd__button {
  margin: 0;
}

