/* Geek Web Smart Chatbot 3.6.46 - Persian font hardening
   This file does not change the layout. It only makes font loading/inheritance reliable
   across desktop, Android, iOS Safari, form controls, SVG labels and dynamically-created UI. */

:root{
  --gwmrc-font-family: Vazirmatn, "Vazirmatn FD", Vazir, "Vazir FD", IRANSansX, "IRANSansXFaNum", IRANSans, "Noto Sans Arabic", "Noto Sans Arabic UI", "Noto Naskh Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html body .gwmrc-widget,
html body .gwmrc-widget *,
html body .gwmrc-widget *::before,
html body .gwmrc-widget *::after,
html body .gwmrc-widget button,
html body .gwmrc-widget input,
html body .gwmrc-widget textarea,
html body .gwmrc-widget select,
html body .gwmrc-widget option{
  font-family:var(--gwmrc-font-family)!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  text-rendering:optimizeLegibility!important;
}

html body .gwmrc-widget input,
html body .gwmrc-widget textarea,
html body .gwmrc-widget button,
html body .gwmrc-widget select{
  font:inherit!important;
  letter-spacing:inherit!important;
}

html body .gwmrc-widget input::placeholder,
html body .gwmrc-widget textarea::placeholder{
  font-family:var(--gwmrc-font-family)!important;
  opacity:1!important;
}

html body .gwmrc-widget svg,
html body .gwmrc-widget svg text{
  font-family:var(--gwmrc-font-family)!important;
}

html body .gwmrc-widget .gwmrc-send input{
  font-family:var(--gwmrc-font-family)!important;
}

#wpwrap .gwmrc-admin,
#wpwrap .gwmrc-admin *,
#wpwrap .gwmrc-admin *::before,
#wpwrap .gwmrc-admin *::after,
#wpwrap .gwmrc-admin-route,
#wpwrap .gwmrc-admin-route *,
#wpwrap .gwmrc-admin-route *::before,
#wpwrap .gwmrc-admin-route *::after,
#wpwrap .gwmrc-admin button,
#wpwrap .gwmrc-admin input,
#wpwrap .gwmrc-admin textarea,
#wpwrap .gwmrc-admin select,
#wpwrap .gwmrc-admin option,
#wpwrap .gwmrc-admin-route button,
#wpwrap .gwmrc-admin-route input,
#wpwrap .gwmrc-admin-route textarea,
#wpwrap .gwmrc-admin-route select,
#wpwrap .gwmrc-admin-route option{
  font-family:var(--gwmrc-font-family)!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  text-rendering:optimizeLegibility!important;
}

#wpwrap .gwmrc-admin input,
#wpwrap .gwmrc-admin textarea,
#wpwrap .gwmrc-admin button,
#wpwrap .gwmrc-admin select,
#wpwrap .gwmrc-admin-route input,
#wpwrap .gwmrc-admin-route textarea,
#wpwrap .gwmrc-admin-route button,
#wpwrap .gwmrc-admin-route select{
  font:inherit!important;
}

#wpwrap .gwmrc-admin input::placeholder,
#wpwrap .gwmrc-admin textarea::placeholder,
#wpwrap .gwmrc-admin-route input::placeholder,
#wpwrap .gwmrc-admin-route textarea::placeholder{
  font-family:var(--gwmrc-font-family)!important;
  opacity:1!important;
}

#wpwrap .gwmrc-admin svg,
#wpwrap .gwmrc-admin svg text,
#wpwrap .gwmrc-admin-route svg,
#wpwrap .gwmrc-admin-route svg text,
#wpwrap .gwmrc-edge-label{
  font-family:var(--gwmrc-font-family)!important;
}

/* Keep JSON/code import boxes readable while the rest of the UI uses the Persian font. */
#wpwrap .gwmrc-admin .gwmrc-manual-flow-import textarea,
#wpwrap .gwmrc-admin .gwmrc-json-utility textarea,
#wpwrap .gwmrc-admin-route .gwmrc-manual-flow-import textarea,
#wpwrap .gwmrc-admin-route .gwmrc-json-utility textarea{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Courier New",monospace!important;
}

@media(max-width:768px){
  html{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }
  html body .gwmrc-widget,
  html body .gwmrc-widget *,
  html body .gwmrc-widget input,
  html body .gwmrc-widget button,
  html body .gwmrc-widget textarea,
  html body .gwmrc-widget select{
    font-family:var(--gwmrc-font-family)!important;
  }
}
