.assistant-launch { position: fixed; z-index: 12; bottom: 24px; right: 24px; border: 1px solid #d1b17b; border-radius: 3px; padding: 13px 18px; background: #091a28; color: #fff; font: 600 14px Arial, sans-serif; cursor: pointer; box-shadow: 0 5px 24px #091a2833; }
.assistant-panel { position: fixed; z-index: 61; bottom: 22px; right: 22px; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100dvh - 44px)); background: #f2efe8; color: #091a28; border: 1px solid #b08d57; border-radius: 5px; box-shadow: 0 10px 38px #091a2844; display: flex; flex-direction: column; overflow: hidden; }
.assistant-panel[hidden], .assistant-launch[hidden], .assistant-summary[hidden], .assistant-summary-offer[hidden] { display: none; }
.assistant-heading { background: #091a28; color: white; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.assistant-heading h2 { font: 24px Georgia, serif; margin: 0; }
.assistant-heading small { color: #d1b17b; font-size: 11px; letter-spacing: .08em; }
.assistant-heading button { background: transparent; color: white; border: 0; font-size: 25px; cursor: pointer; min-width: 36px; min-height: 36px; }
.assistant-body { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; }
.assistant-message { border: 1px solid #d9d0bd; background: #fff; border-radius: 4px; padding: 10px 12px; margin: 0 0 9px; font: 14px/1.45 Arial, sans-serif; max-width: 95%; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message.is-user { background: #e7ddca; margin-left: auto; width: fit-content; }
.assistant-options { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0; }
.assistant-options button, .assistant-summary button, .assistant-summary-offer button { cursor: pointer; border: 1px solid #ae9670; border-radius: 3px; background: #fff; color: #091a28; padding: 8px 10px; font: 13px/1.3 Arial, sans-serif; }
.assistant-summary-offer { margin-top: 12px; padding: 12px; border: 1px solid #d9d0bd; border-radius: 4px; background: #fff; }
.assistant-summary-offer p { margin: 0 0 10px; font: 14px/1.4 Arial, sans-serif; }
.assistant-summary-offer button + button { margin-left: 7px; }
.assistant-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #d9d0bd; }
.assistant-composer input, .assistant-summary textarea { border: 1px solid #a99c88; padding: 9px; min-width: 0; border-radius: 3px; font: 16px Arial, sans-serif; background: white; color: #091a28; }
.assistant-composer input { flex: 1; }
.assistant-composer button { border: 0; border-radius: 3px; background: #091a28; color: white; padding: 8px 12px; cursor: pointer; }
.assistant-summary label { display: block; margin: 9px 0; font-weight: 600; }
.assistant-summary textarea { width: 100%; min-height: 95px; }
@media (max-width: 500px) {
  .assistant-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: min(570px, calc(100dvh - 16px)); }
  .assistant-launch { bottom: 16px; right: 16px; }
}

/* Leave the site's return-to-top control reachable while scrolling. */
body:has(.back-to-top.is-visible) .assistant-launch { bottom: 78px; }
.footer-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.footer-actions .assistant-launch, .footer-actions .back-to-top { position: static; opacity: 1; transform: none; box-shadow: none; flex: none; }
.footer-actions .back-to-top.is-visible { visibility: visible; }
@media (max-width: 800px) { .footer-actions { justify-content: flex-start; flex-wrap: wrap; } }
.assistant-mode { margin: 8px 0 0; color: #52616d; font: 12px/1.4 Arial, sans-serif; }
.assistant-mode:empty { display: none; }
.assistant-composer button:disabled { opacity: .65; cursor: wait; }
.assistant-mode-label { margin: 0; padding: 9px 15px; background: #e7ddca; border-bottom: 1px solid #d9d0bd; color: #091a28; }
.assistant-composer input[hidden] { display: none; }

.assistant-privacy { margin: 0; padding: 5px 15px 8px; background: #e7ddca; font: 12px/1.4 Arial, sans-serif; }
.assistant-privacy a { color: #091a28; text-decoration: underline; }
