/* A native cursor keeps the tip exactly under the pointer, without a trail. */
.customCursor {
  display: none !important;
}

/* The captured base layer hides native pointers with !important. */
@layer base {
  @media (hover: hover) and (pointer: fine) {
    :root {
      cursor:
        url("/assets/netbuur/cursor.svg") 4 3,
        auto !important;
    }

    :root * {
      cursor: inherit !important;
    }

    :root :is(p, h1, h2, h3, h4, h5, h6, .rs-label) {
      cursor: text !important;
    }

    :root
      :is(
        a[href],
        button,
        summary,
        select,
        label[for],
        [role="button"],
        [role="link"],
        input:is(
          [type="checkbox"],
          [type="radio"],
          [type="submit"],
          [type="button"],
          [type="reset"],
          [type="file"],
          [type="color"]
        )
      ),
    :root
      :is(a[href], button, summary, label[for], [role="button"], [role="link"])
      * {
      cursor: pointer !important;
    }

    :root input[type="range"] {
      cursor: ew-resize !important;
    }

    :root
      input:is(
        :not([type]),
        [type="text"],
        [type="email"],
        [type="password"],
        [type="tel"],
        [type="url"],
        [type="search"],
        [type="number"]
      ),
    :root textarea,
    :root [contenteditable="true"],
    :root [contenteditable="true"] * {
      cursor: text !important;
    }

    :root:root :is(:disabled, [aria-disabled="true"]),
    :root:root :is(:disabled, [aria-disabled="true"]) * {
      cursor: not-allowed !important;
    }
  }
}
