/* Scope the pointer-only reset to our components, not forms or third-party UI.
   Do not remove focus, selection borders, or keyboard outlines. */
html[data-hn-input-mode="pointer"] :is(
    .hn-header-actions, .hn-header-cart-dialog, .hn-search-dialog,
    .webninja-gallery, .hn-product-meta, .hn-catalog-row,
    .hn-purchase-form, .quantity-button-wrapper, .hn-mobile-filter-menu
) :is(button, a, summary, [tabindex]):focus {
    outline: none !important;
}
html[data-hn-input-mode="pointer"] .hn-mobile-filter-button:focus {
    outline: none !important;
}
html[data-hn-input-mode="keyboard"] .webninja-gallery [tabindex]:focus {
    outline: 2px solid #171717;
    outline-offset: -2px;
}
/* Frontend text-entry controls share one quiet focus treatment, including
   coupon, account and search forms. Keep native radios/checkboxes untouched. */
body:not(.wp-admin) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="color"]), textarea, select):focus {
    outline:none!important;
    box-shadow:none!important;
}
body:not(.wp-admin) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="color"]),textarea,select):focus:not([aria-invalid="true"]):not(.woocommerce-invalid *) {
    border-color:#868686!important;
}
html[data-hn-input-mode="keyboard"] body:not(.wp-admin) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="color"]),textarea,select):focus-visible {
    outline:2px solid #64748b!important;
    outline-offset:-2px!important;
}
