/* At Africa — customer chat + chatbot widget (chat.css)
   Self-contained styles for the .aa-* widget. Colours/typography inherit the
   site's design tokens (--forest, --gold, --ivory, --serif, --sans, --line)
   so the widget follows the site palette in light and dark mode. */
.aa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 100; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); color: #14271f; box-shadow: 0 8px 24px rgba(15,35,28,.3); display: grid; place-items: center; transition: transform .2s; }
.aa-fab svg { width: 28px; height: 28px; }
.aa-fab:hover { transform: scale(1.06); }
.aa-hello { position: fixed; right: 20px; bottom: 90px; z-index: 99; max-width: 270px; background: var(--white, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(15,35,28,.28); padding: .75rem 2rem .75rem .95rem; font-family: var(--sans); font-size: .9rem; line-height: 1.45; cursor: pointer; animation: aa-hello-in .35s ease-out; }
.aa-hello[hidden] { display: none; }
.aa-hello::after { content: ''; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px; background: var(--white, #fff); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.aa-hello-close { position: absolute; top: 2px; right: 6px; background: none; border: 0; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem; }
@keyframes aa-hello-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aa-panel { position: fixed; right: 20px; bottom: 90px; z-index: 100; width: min(370px, calc(100vw - 40px)); height: 520px; max-height: calc(100dvh - 130px); background: var(--white, #fff); border-radius: 16px; box-shadow: 0 20px 60px rgba(15,35,28,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); font-family: var(--sans); }
.aa-panel[hidden] { display: none; }
.aa-head { background: var(--forest); color: #fff; padding: .9rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.aa-head strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.aa-head small { display: block; color: #ead29d; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-top: .15rem; }
.aa-close { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0 .3rem; }
.aa-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--ivory); }
.aa-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; line-height: 1.55; white-space: pre-line; }
.aa-msg.bot { background: var(--white, #fff); border: 1px solid var(--line); align-self: flex-start; color: var(--ink); }
.aa-msg.user { background: var(--forest); color: #fff; align-self: flex-end; }
.aa-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem 1rem 0; background: var(--ivory); }
.aa-chip { border: 1px solid var(--gold); background: transparent; color: inherit; border-radius: 999px; padding: .42rem .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.aa-chip:hover { background: var(--gold); color: #14271f; }
.aa-team { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--forest2); color: #fff; padding: .8rem 1.1rem; cursor: pointer; text-align: left; }
.aa-team strong { display: block; font-size: .85rem; letter-spacing: .04em; }
.aa-team small { display: block; color: #cfe0d6; font-size: .72rem; margin-top: .1rem; }
.aa-team .aa-team-arrow { font-size: 1.25rem; color: var(--gold); }
.aa-form { display: flex; border-top: 1px solid var(--line); background: var(--white, #fff); }
.aa-form input { flex: 1; border: 0; padding: .9rem 1rem; font: inherit; font-size: .95rem; background: transparent; color: var(--ink); min-width: 0; }
.aa-form input:focus { outline: none; }
.aa-form button { border: 0; background: var(--gold); color: #14271f; font-size: 1.3rem; font-weight: 800; padding: 0 1.2rem; cursor: pointer; }
.aa-disclaimer { font-size: .68rem; color: var(--muted); text-align: center; padding: .5rem .8rem; background: var(--white, #fff); margin: 0; }
.aa-highlight { outline: 3px solid var(--gold); outline-offset: 4px; transition: outline-color .3s; }
@media (max-width: 680px) {
  .aa-fab { right: 14px; bottom: 14px; }
  .aa-hello { right: 14px; bottom: 82px; }
  .aa-panel { right: 10px; bottom: 82px; }
}
