/**
 * CIS Fonts Definition
 *
 * This file handles the self-hosting of fonts for the Cargo Inquiry System plugin
 * to ensure consistent display without relying on external CDNs.
 *
 * Font: Vazirmatn FD (Farsi Digits) Variable Font
 * Source: https://github.com/rastikerdar/vazirmatn
 */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-FD-VF.woff2') format('woff2-variations');
  /* The format 'woff2-variations' is key for variable fonts. */
  font-weight: 100 900;
  /* Defines the entire weight range available in the variable font file. */
  font-style: normal;
  font-display: swap;
  /* 'swap' ensures text is visible with a fallback font while Vazirmatn loads. */
}

/**
 * Global Font Application
 *
 * Apply Vazirmatn to all plugin elements for a consistent and professional UI.
 * This class will be applied to top-level containers of the plugin's output.
 */
.cis-admin-container,
.cis-theme-styles {
    font-family: 'Vazirmatn', Arial, sans-serif !important;
}

/*
 * Specific override for the new advanced auth modal to ensure
 * its custom styling doesn't get overridden by theme defaults.
 */
.cis-auth-modal * {
    font-family: 'Vazirmatn', sans-serif !important;
}