/*
 * Global Font Override - Replace Google Fonts with System Fonts
 * This fixes CORS issues with fonts.googleapis.com
 * NOTE: Excludes icon fonts (FontAwesome, bootstrap-icons, etc.)
 */

/* Override text fonts but exclude icon fonts */
body,
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Only override text elements, not icons */
p,
span:not(.fa):not(.oi):not([class*="fa-"]):not([class*="bi-"]),
div:not(.fa):not(.oi),
a:not(.fa):not(.oi),
button,
input,
select,
textarea,
label {
    font-family: inherit;
}

/* Override Odoo website fonts */
.s_website_form,
.o_website_form {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Remove @font-face declarations that might try to load external fonts */
@font-face {
    font-family: "Inter";
    src: local("Segoe UI"), local("Roboto"), local("Arial");
}

@font-face {
    font-family: "Inter Tight";
    src: local("Segoe UI"), local("Roboto"), local("Arial");
}
