/*
 * Google Fonts Fallback Detection
 * Ten CSS aktywuje się tylko gdy Google Fonts się nie załaduje
 */

/* Test czy Roboto jest załadowana */
@font-face {
  font-family: 'RobotoTest';
  src: local('Roboto'), local('Roboto-Regular');
  font-display: swap;
}

/* Jeśli Roboto nie jest dostępna, użyj systemowej */
.font-roboto-fallback {
  font-family: 'RobotoTest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* JavaScript będzie dodawał te klasy gdy czcionki się nie załadują */
.google-fonts-failed .tp-caption span[style*="Roboto"],
.google-fonts-failed [style*="font-family:'Roboto'"],
.google-fonts-failed [style*='font-family:"Roboto"'] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.google-fonts-failed h1,
.google-fonts-failed h2,
.google-fonts-failed h3,
.google-fonts-failed h4,
.google-fonts-failed h5,
.google-fonts-failed h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.google-fonts-failed body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}