/* One cursor rule for storefront, customer pages and dashboard controls. */
:is(a[href], button, select, summary, [role="button"], [role="link"], [role="tab"], [role="menuitem"], [role="checkbox"], [role="radio"], [role="switch"], [onclick], [data-bs-toggle], label[for], label:has(input[type="checkbox"], input[type="radio"]), input[type="button"], input[type="submit"], input[type="reset"], input[type="checkbox"], input[type="radio"]) {
  cursor: pointer !important;
}

/* Hovering the icon or label must feel the same as hovering its control. */
:is(a[href], button, select, summary, [role="button"], [role="link"], [role="tab"], [role="menuitem"], [role="checkbox"], [role="radio"], [role="switch"], [onclick], [data-bs-toggle], label[for], label:has(input[type="checkbox"], input[type="radio"])) * {
  cursor: inherit !important;
}

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

:is(button, input, select, textarea):disabled,
[aria-disabled="true"],
.btn.disabled {
  cursor: not-allowed !important;
}
