/* Self-hosted T-Star Pro font faces (add files under /fonts) */
@font-face {
  font-family: "T-Star Pro";
  src: url("/fonts/TStarPro-Regular.woff2") format("woff2"),
       url("/fonts/TStarPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "T-Star Pro";
  src: url("/fonts/TStarPro-Bold.woff2") format("woff2"),
       url("/fonts/TStarPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Make the chat fill the entire viewport */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: #111;
  font-family: "T-Star Pro", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

#chat-embed {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  width: 100vw;
  height: 100vh; /* fallback */
  height: 100dvh; /* iOS Safari: dynamic viewport to avoid cropping bottom */
  min-height: 100svh; /* small viewport as extra fallback */
  background: #ffffff;
  padding-bottom: env(safe-area-inset-bottom); /* keep input above home indicator */
}

/* Ensure any injected widget/iframe fills the container */
#chat-embed > * {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

#chat-embed iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}


