/* Spam controls belong to the gmail_like skin. */
.rf-spam-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  color: var(--rf-text, #263238);
}
.rf-spam-panel h1 { font-size: 1.65rem; margin-bottom: 12px; }
.rf-spam-panel h2 { font-size: 1.15rem; margin: 0 0 18px; }
.rf-spam-panel p { line-height: 1.6; }
.rf-spam-card {
  padding: 24px;
  margin: 20px 0;
  border: 1px solid var(--rf-border, #dce2e8);
  border-radius: 16px;
  background: var(--rf-surface, #fff);
}
.rf-spam-card label { display: block; margin: 14px 0 6px; }
.rf-spam-help { font-size: .9rem; color: var(--rf-muted, #596579); }
.rf-spam-list-heading, .rf-spam-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.rf-spam-list-heading { justify-content: space-between; }
.rf-spam-list-heading h2 { margin: 0; }
.rf-spam-filters label { flex: 1; min-width: 160px; }
#rf-spam-rows { padding: 0; margin: 0; list-style: none; }
#rf-spam-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rf-border, #dce2e8);
}
.rf-spam-address { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.rf-spam-badge { font-size: .85rem; border-radius: 20px; padding: 5px 10px; background: #edf2f7; color: #36465b; }
.rf-spam-badge.block { background: #fff0df; color: #754400; }
.rf-spam-feedback { min-height: 1.5em; overflow-wrap: anywhere; }
.rf-spam-error { color: #b42318; }
.rf-spam-message-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
}
.rf-message-toolbar > .rf-spam-message-actions { padding: 0 12px; }
.rf-spam-message-actions .rf-spam-tool {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rf-muted);
  text-decoration: none;
  cursor: pointer;
}
.rf-spam-tool::before { font-family: Icons; font-weight: 900; font-size: 15px; }
.rf-spam-block::before { content: "\f05e"; }
.rf-spam-allow::before { content: "\f058"; }
.rf-spam-manage::before { content: "\f1de"; }
.rf-spam-message-actions .rf-spam-tool:hover { color: var(--rf-text); background: var(--rf-accent-soft); }
.rf-spam-tool:focus-visible { outline: 2px solid var(--rf-accent-strong); outline-offset: 2px; }
.rf-spam-tool:disabled { opacity: .4; cursor: default; }
.rf-spam-message-actions .rf-spam-allow[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px #2eaa70;
  background: color-mix(in srgb, var(--rf-surface) 82%, #2eaa70) !important;
}
.rf-spam-message .rf-spam-feedback { margin-top: 12px; font-size: .85rem; min-height: 0; }
.rf-spam-message .rf-spam-feedback:empty { display: none; }
.rf-spam-reason { margin: 14px 0 0; font-size: .85rem; line-height: 1.5; color: var(--rf-muted); }
html.dark-mode .rf-spam-error { color: #ffb4ab; }
html.dark-mode .rf-spam-badge { background: #36465b; color: #e3e7ef; }
html.dark-mode .rf-spam-badge.block { background: #4e3a24; color: #ffd8a8; }
@media (max-width: 767px) {
  .rf-spam-panel { padding: 18px 12px; }
  .rf-spam-card { padding: 18px 14px; }
  .rf-spam-panel h1 { font-size: 1.35rem; }
  .rf-message-toolbar > .rf-spam-message-actions { padding: 0 6px; }
  #rf-spam-rows li { align-items: flex-start; }
  .rf-spam-address { flex-basis: 100%; }
}
