/* Affluent Chat widget */
.afc-root { --afc-accent: #0b3d2e; position: fixed; right: 20px; bottom: 20px; z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.afc-launcher { display: inline-flex; align-items: center; gap: 8px; background: var(--afc-accent); color: #fff;
  border: none; border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.afc-launcher:hover { filter: brightness(1.08); }
.afc-launcher svg { width: 20px; height: 20px; }

.afc-panel { display: none; flex-direction: column; width: 370px; max-width: calc(100vw - 32px); height: 560px;
  max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.28); }
.afc-root.afc-open .afc-panel { display: flex; }
.afc-root.afc-open .afc-launcher { display: none; }

.afc-head { background: var(--afc-accent); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.afc-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.afc-head .afc-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.afc-close { background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .85; }

.afc-log { flex: 1; overflow-y: auto; padding: 14px; background: #f6f7f8; display: flex; flex-direction: column; gap: 10px; }
.afc-msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.afc-msg.afc-bot { background: #fff; color: #1a1a1a; align-self: flex-start; border: 1px solid #e6e8ea; border-bottom-left-radius: 4px; }
.afc-msg.afc-user { background: var(--afc-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.afc-sources { font-size: 11px; color: #6b7280; align-self: flex-start; margin-top: -4px; }
.afc-sources a { color: #6b7280; }
.afc-typing { align-self: flex-start; color: #9aa0a6; font-size: 13px; }

.afc-cta { align-self: flex-start; background: #fff; border: 1px solid var(--afc-accent); color: var(--afc-accent);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }

.afc-form { display: none; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #e6e8ea; border-radius: 12px; padding: 12px; }
.afc-form.afc-show { display: flex; }
.afc-form input { border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 10px; font-size: 14px; }
.afc-form button { background: var(--afc-accent); color: #fff; border: none; border-radius: 8px; padding: 10px; font-weight: 600; cursor: pointer; }
.afc-consent { font-size: 11px; color: #6b7280; display: flex; gap: 6px; align-items: flex-start; }

.afc-inputbar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e6e8ea; background: #fff; }
.afc-inputbar input { flex: 1; border: 1px solid #d1d5db; border-radius: 999px; padding: 10px 14px; font-size: 14px; }
.afc-inputbar button { background: var(--afc-accent); color: #fff; border: none; border-radius: 999px; width: 42px; cursor: pointer; }
.afc-foot { text-align: center; font-size: 10px; color: #9aa0a6; padding: 4px 0 8px; background: #fff; }
