
/* Lighten body type (400 looks heavy, 300 too thin) */
body {
  font-weight: 350;
}

/* Make login page right panel background white */
div.bg-muted.overflow-hidden {
  background-color: white !important;
}

/* Chainlit crops this image (object-fit: cover) to fill the panel. Our logo is a
   wide horizontal lockup, unlike eals's centered circular badge, so cropping clips
   the "United" wordmark off the edge. Show the whole mark instead, letterboxed on
   the white background set above. */
div.bg-muted.overflow-hidden img {
  object-fit: contain !important;
}

/* Oculta el botón de cambio entre claro/oscuro en los settings */
#theme-toggle,
.settings-theme-toggle {
  display: none !important;
}

/* Always underline markdown links (Chainlit only underlines them on hover by
   default). Covers links in message content and the trial side panel, which
   share the same `text-primary hover:underline` anchor component. */
a.text-primary {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Oculta la marca de agua “Built with Chainlit” */
/* .watermark {
  display: none !important;
} */


/* tooltip style starts here */


.sava-tip[data-tip] {
  position: relative;
  display: inline;
  margin: 0 2px;
  cursor: help;
  font-size: 1.08em;
  font-weight: 700;
  text-decoration: none;
  vertical-align: text-bottom;
}

.sava-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: min(360px, 80vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
  pointer-events: none;
  text-align: left;
  transition: opacity 120ms ease;
  white-space: normal;
}

.sava-tip[data-tip]::before {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(100% + 4px);
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  border: 6px solid transparent;
  border-bottom-color: #111827;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.sava-tip[data-tip]:hover::after,
.sava-tip[data-tip]:focus::after,
.sava-tip[data-tip]:hover::before,
.sava-tip[data-tip]:focus::before {
  visibility: visible;
  opacity: 1;
}

.sava-tip[data-tip],
.sava-tip[data-tip]::before,
.sava-tip[data-tip]::after {
  overflow: visible !important;
}

.prose,
.markdown,
[class*="markdown"],
[class*="Markdown"],
[class*="message"],
[class*="Message"],
[data-testid*="message"],
[data-testid*="Message"],
[class*="MessageContent"],
[class*="message-content"],
[class*="MessageContent"] ul,
[class*="MessageContent"] ol,
[class*="MessageContent"] li,
[class*="markdown"] ul,
[class*="markdown"] ol,
[class*="markdown"] li,
[class*="prose"] ul,
[class*="prose"] ol,
[class*="prose"] li {
  overflow: visible !important;
}

/* tooltip style ends here */

/* Guest header sign-up prompt */
.sava-guest-signup-prompt {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.sava-guest-signup-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding-left: 0 !important;
}

.sava-guest-signup-action {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sava-guest-signup-details {
    display: none;
  }
}

/* On small phones "Guest mode –" pushes "Usage Policy" off the header; keep just "Sign up ✨". */
@media (max-width: 400px) {
  .sava-guest-signup-prefix {
    display: none;
  }
}

/* Guest usage-policy consent */
.sava-guest-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.sava-guest-consent-dialog {
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #202121;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.sava-guest-consent-dialog h2 {
  margin: 0 0 20px;
  color: #202121;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.sava-guest-consent-subtitle {
  margin: 0 0 10px;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.sava-guest-consent-signup {
  margin: 0 0 24px;
  color: #404040;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sava-guest-consent-signup a {
  color: #005776;
  font-weight: 600;
  text-decoration: underline;
}

.sava-guest-consent-field {
  margin: 0 0 24px;
}

.sava-guest-consent-select {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #202121;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.sava-guest-consent-input {
  width: 100%;
  margin-top: 10px;
  padding: 0.62rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #202121;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
}

.sava-guest-consent-select:focus,
.sava-guest-consent-input:focus {
  border-color: #E0601F;
  box-shadow: 0 0 0 3px rgba(224, 96, 31, 0.3);
  outline: none;
}

.sava-guest-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sava-guest-consent-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #E0601F;
  cursor: pointer;
}

.sava-guest-consent-row label {
  color: #404040;
  cursor: pointer;
}

.sava-guest-consent-row a {
  color: #005776;
  font-weight: 600;
  text-decoration: underline;
}

.sava-guest-consent-continue {
  width: 100%;
  margin-top: 24px;
  padding: 11px 18px;
  border: 1px solid #E0601F;
  border-radius: 8px;
  background: #E0601F;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Brand guide allows no darker orange, so hover lifts the button instead of recolouring it. */
.sava-guest-consent-continue:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sava-guest-consent-continue:focus-visible,
.sava-guest-consent-signup a:focus-visible,
.sava-guest-consent-select:focus-visible,
.sava-guest-consent-row input:focus-visible,
.sava-guest-consent-row a:focus-visible {
  outline: 3px solid rgba(224, 96, 31, 0.3);
  outline-offset: 2px;
}

/* Faded orange reads as an off-palette peach, so disabled buttons use neutral grey. */
.sava-guest-consent-continue:disabled {
  border-color: #e5e5e5;
  background: #e5e5e5;
  color: #666666;
  cursor: not-allowed;
}

#chat-submit:disabled {
  background-color: #e5e5e5 !important;
  color: #666666 !important;
  opacity: 1 !important;
}

@media (max-width: 480px) {
  .sava-guest-consent-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .sava-guest-consent-dialog {
    padding: 22px 20px;
    border-radius: 14px 14px 8px 8px;
  }

  /* iOS zooms the page when a field under 16px is focused. */
  .sava-guest-consent-select,
  .sava-guest-consent-input {
    font-size: 16px;
  }
}
