/* Block-sender form: shared by the dialog (static/js/block_sender_dialog.js)
   and the no-JS confirm page. Dialog chrome comes from snooze_dialog.css. */
.block-sender-dialog {
  max-width: min(32rem, calc(100vw - 2rem));
}
.block-sender-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.block-sender-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2);
  background: var(--surface-card);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.block-sender-option:hover {
  background: var(--surface);
}
.block-sender-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface-tint);
}
.block-sender-option:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}
.block-sender-option input {
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}
.block-sender-option__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.block-sender-option__kind {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
}
.block-sender-option__value {
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.block-sender-option__note {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: 1.4;
}
.block-sender-warning {
  color: var(--danger);
}
/* The no-JS confirm page renders Cancel as a link; match the dialog's
   button.secondary so both versions of the form look the same. */
.block-sender-actions a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--h-md);
  padding: 0 0.9rem;
  border-radius: var(--r-2);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease;
}
.block-sender-actions a.secondary:hover {
  background: var(--surface);
  text-decoration: none;
}
.block-sender-actions a.secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
/* On the confirm page the form sits inside .msgd-card, whose h2 rule turns
   headings into small uppercase labels. */
.msgd-card form.block-sender-form h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.75rem;
}
