@font-face {
  font-family: 'BonMono';
  src: url('./fonts/BonMono.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  font-size: 14px;
}
body {
  margin: 0;
}

#webchat {
  height: 100%;
  width: 100%;
}

/* Adaptive Card container */
.ac-container {
  font-family: 'BonMono, BonBru, Arial,sans-serif';
}

/* Action buttons like "Check pricing" */
.ac-pushButton {
  background-color: #cc992b !important;
  color: #FFF !important;
  border-radius: 4px !important;
  font-weight: bold !important;
}

/* Input controls like your Country dropdown */
.ac-input {
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
}

/* Card emphasis sections */
.ac-emphasis {
  background-color: #e3f2fd !important;
}

/* ── Scrollbars ─────────────────────────────────────────────────────── */

/* ── Typing indicator GIF sizing ────────────────────────────────────── */
/* Scale GIF width to 100% of the element; height follows the GIF's own
   aspect ratio — eliminates cropping AND the bottom gap from letterboxing. */
[class*="webchat__typing-indicator"] {
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ── Tables inside bot messages ─────────────────────────────────────── */

/* Allow tables to scroll horizontally if wider than the message bubble */
.webchat__render-markdown {
    overflow-x: auto;
}

.webchat__render-markdown table {
    border-collapse: collapse;
    /* Don't force 100% — let the table be as wide as its content needs */
    min-width: 100%;
    margin: 8px 0;
    font-size: 13px;
}

.webchat__render-markdown th,
.webchat__render-markdown td {
    border: 1px solid #555555;
    padding: 6px 12px;
    text-align: left;
    vertical-align: top;
    color: #EEEEEE;
    white-space: nowrap;
}

.webchat__render-markdown th {
    background-color: #4a4a4a;
    color: #C49330;
    font-weight: bold;
}

.webchat__render-markdown tr:nth-child(even) td {
    background-color: #5a5a5a;
}

.webchat__render-markdown tr:nth-child(odd) td {
    background-color: #666666;
}

.webchat__render-markdown tr:hover td {
    background-color: #707070;
}

/* ── Emoji in table cells ────────────────────────────────────────────── */
/* Force emoji (✔️ ✗ etc.) to render as monochrome text glyphs so
   CSS color can tint them. Chromium/WebView2 supports font-variant-emoji. */
.webchat__render-markdown td {
    font-variant-emoji: text;
    color: #EEEEEE;
}

/* Cells that contain only a checkmark-style character — render in gold */
.webchat__render-markdown td:has(> br:only-child),
.webchat__render-markdown td[data-check] {
    color: #C49330;
    text-align: center;
}

/* Hide scrollbars everywhere while keeping scroll functionality */
* {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge legacy */
}
*::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, WebView2 */
}

/* ── Links ───────────────────────────────────────────────────────────── */

a {
  color: #C49330;
}

/* ── Citation / link-definitions ────────────────────────────────────── */

.webchat__link-definitions {
    border-top: 1px solid #C49330;
    margin-top: 8px;
    padding-top: 6px;
}

.webchat__link-definitions__header-text {
    color: #CCCCCC;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.webchat__link-definitions__list-item-body {
    background-color: #666666;
}

a.webchat__link-definitions__list-item-box {
    border-color: #666666 !important;
}

@media (forced-colors: none) {
  .webchat__link-definitions__badge {
      background-color: #666666 !important;
      color: #EEEEEE !important;
      border-color: #666666 !important;
  }
}

.webchat__link-definitions__list-item-text {
    color: #C49330 !important;
}

/* ── External-link icon — inline badge inside bubble text ────────────
   Uses a Material Design open-in-new path on viewBox 0 0 24 24 so the
   path content is well inside the bounds and never clips at any size. */
.webchat__render-markdown__external-link-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23C49330' d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E") !important;
    display: inline-block !important;
    width: 1em !important;
    height: 0.85em !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    vertical-align: middle !important;
}

/* ── External-link icon — inside references list ─────────────────────
   These icons are SVG elements (not background-image), coloured by fill/color. */
.webchat__link-definitions svg,
.webchat__link-definitions svg path,
.webchat__link-definitions svg rect,
.webchat__link-definitions svg circle,
.webchat__link-definitions a svg {
    fill: #C49330 !important;
    color: #C49330 !important;
}

.webchat__link-definitions {
    border-color: #666666 !important;
}