@include moz-document(url-prefix "chrome://browser/content") {
  @import "../../theme/proton_chrome/sanitize_everything";
}

@include moz-document(
  url-prefix "about:preferences",
  url-prefix "chrome://browser/content/preferences/dialogs/",
  url-prefix "chrome://pippki/content/"
) {
  // Odd table #737 #751 #783
  :is(.contentPane, .main-content, #certmanagertabs) richlistbox > richlistitem,
  #translations-manage-install-list > .translations-manage-language {
    &:hover {
      background-color: var(--in-content-item-hover);
      color: var(--in-content-item-hover-text);
    }
    &[selected="true"] {
      background-color: var(--in-content-item-selected);
      color: var(--in-content-item-selected-text);
    }
    &:nth-child(even):not([selected="true"], :hover) {
      background-color: var(--in-content-box-background-odd);
    }
  }
}
@include moz-document(url-prefix "about:preferences") {
  // #952
  .privacy-extra-information > .custom-option:not(:first-child) {
    margin-block: 2px !important; /* Original: 10px */
  }
  .extra-information-label:not(:first-child) {
    margin-top: 4px !important; /* Original: 19px */
  }
}
