/*
 * Self-hosted WooCommerce icon font (stars, message/checkmark glyphs, …).
 *
 * WooCommerce renders its star ratings (.star-rating, p.stars a::before) and
 * other UI icons from the "WooCommerce" icon font, declared via @font-face in
 * the plugin's woocommerce.css with a RELATIVE src (../fonts/WooCommerce.woff2).
 * On customer sites that sit behind a CDN / cache / CSS-optimizer, that font
 * can fail to paint in the browser (cross-origin without CORS, rewritten path,
 * 404) — the glyph rule still applies but the font does not, so stars render
 * as tofu boxes (the bare codepoint, e.g. U+E021).
 *
 * These @font-face rules re-declare the SAME family names from a same-origin
 * copy shipped with the theme. This stylesheet is enqueued with a dependency
 * on WooCommerce's "woocommerce-general" handle, so it always loads AFTER
 * woocommerce.css; by the last-wins rule for identical @font-face descriptors,
 * the WooCommerce icon rules then resolve against this theme-local font. No
 * per-selector override or !important is needed, and it covers every WC icon,
 * not just the stars. Relative src resolves next to this file.
 *
 * font-display: block — icon fonts should not flash a fallback (tofu) glyph
 * while loading.
 */
@font-face {
  font-family: 'WooCommerce';
  src: url('./WooCommerce.woff2') format('woff2'),
       url('./WooCommerce.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Legacy family name some WooCommerce versions/cached pages still reference. */
@font-face {
  font-family: 'star';
  src: url('./WooCommerce.woff2') format('woff2'),
       url('./WooCommerce.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
