body {
  --zo-btn-primary: #155bd5;
  --zo-btn-hover: #114bb5;
  --zo-btn-on-primary: #fff;
  --zo-btn-surface: #f3f6fb;
  --zo-btn-border: #d9e2f0;
  --zo-btn-text: #27364d;
  --zo-btn-focus: #4289f0;
}

html:has(#css_extstyle[href*="/comiis_hei/"]) body,
html:has(#comiis_app_addclass[href*="comiis_16_style.css"]) body {
  --zo-btn-primary: #2868d7;
  --zo-btn-hover: #3473e0;
  --zo-btn-surface: #303740;
  --zo-btn-border: #4a5666;
  --zo-btn-text: #edf3fb;
  --zo-btn-focus: #8bbcff;
}

body :is(button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"],
  .pn, .comiis_btn, .comiis_btns, .comiis_bigbtn, .comiis_btn_pn, .btn_pn, .btn_pn_blue,
  .kmbtn, .zo-share-button, .card-download a, .page-btn, .pg a, .pg strong) {
  border-radius: 8px;
}

body :is(.pn, .comiis_btn, .comiis_btns, .comiis_bigbtn, .comiis_btn_pn, .btn_pn,
  .btn_pn_blue, .kmbtn, .zo-share-button, .card-download a, .page-btn, .pg a,
  button[type="submit"]:not([class]), input[type="submit"]:not([class])) {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

body :is(.pn:not(.pnc), .btn_pn:not(.btn_pn_blue), .page-btn:not(.active), .pg a,
  button[type="submit"]:not([class]), input[type="submit"]:not([class])) {
  background: var(--zo-btn-surface);
  border: 1px solid var(--zo-btn-border);
  color: var(--zo-btn-text);
  box-shadow: none;
}

body :is(.pn.pnc, .btn_pn_blue, .comiis_btn.bg_c, .page-btn.active, .pg strong, .zo-download-notice button) {
  background: var(--zo-btn-primary);
  border-color: transparent;
  color: var(--zo-btn-on-primary);
  font-weight: 600;
}

body :is(.pn.pnc, .btn_pn_blue, .comiis_btn.bg_c, .zo-download-notice button):hover:not(:disabled) {
  background: var(--zo-btn-hover);
}

body :is(button, input[type="button"], input[type="submit"], input[type="reset"], [role="button"],
  .pn, .comiis_btn, .kmbtn, .zo-share-button, .card-download a, .pg a):focus-visible {
  outline: 2px solid var(--zo-btn-focus);
  outline-offset: 2px;
}

body :is(button, input[type="submit"], input[type="button"]):disabled {
  cursor: not-allowed;
  opacity: .58;
}

@media (pointer: coarse) {
  body :is(.comiis_btn, .comiis_bigbtn, .zo-share-button, .zo-download-notice button) {
    min-height: 42px;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  body :is(.pn, .comiis_btn, .kmbtn, .zo-share-button, .card-download a, .page-btn, .pg a) {
    transition: none;
  }
}
