/* Scoped styles use the consultation page's clay palette and rounded cards. */
.consultation-assistant { --assistant-bottom: 20px; position: fixed; bottom: calc(var(--assistant-bottom) + env(safe-area-inset-bottom, 0px)); right: 24px; z-index: 100; color: #262626; font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.6; }
.consultation-assistant [hidden], .consultation-assistant[hidden] { display: none !important; }
.consultation-assistant button { font: inherit; cursor: pointer; }
.consultation-assistant button:focus-visible, .consultation-assistant h3:focus-visible { outline: 3px solid #915858; outline-offset: 3px; }
.consultation-assistant button:disabled { cursor: not-allowed; opacity: .55; }
.assistant-launcher { display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: 58px; margin-left: auto; padding: 10px 18px 10px 11px; border: 0; border-radius: 999px; background: #915858; color: #fff; box-shadow: 0 8px 24px #75454526; transition: background .2s; }
.assistant-launcher-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #f3efeb; }
.assistant-launcher-logo img { display: block; width: 28px; height: 28px; object-fit: contain; }
.assistant-launcher-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.assistant-launcher[aria-expanded="true"] { width: 58px; padding: 11px; border-radius: 50%; }
.assistant-launcher[aria-expanded="true"] .assistant-launcher-label { display: none; }
.assistant-launcher:hover, .assistant-primary:hover { background: #754545; }
.assistant-panel { position: absolute; bottom: 72px; right: 0; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); max-height: calc(100dvh - var(--assistant-bottom) - 100px); display: flex; flex-direction: column; background: #fff; border: 1px solid #e9e5e1; border-radius: 24px; box-shadow: 0 12px 40px #26262626; overflow: hidden; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px; border-bottom: 1px solid #e9e5e1; background: #fcf8f7; flex-shrink: 0; }
.assistant-header h2 { font-size: 15px; font-weight: 600; margin: 2px 0 0; }
.assistant-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #754545; margin: 0 0 8px; }
.assistant-icon-button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #754545; font-size: 24px !important; }
.assistant-icon-button:hover { background: #f4e4e2; }
.assistant-content { padding: 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.assistant-content h3 { font-size: 20px; line-height: 1.4; font-weight: 600; margin: 0 0 14px; }
.assistant-content p { margin-bottom: 16px; }
.assistant-note { font-size: 12px; line-height: 1.6; color: #595959; }
#assistant-disclaimer { margin: 20px 0 0; }
.assistant-answers, .assistant-result { display: flex; flex-direction: column; gap: 12px; }
.assistant-primary, .assistant-secondary, .assistant-answer { display: block; width: 100%; min-height: 48px; border-radius: 12px; padding: 12px 16px; transition: background .2s, border-color .2s; }
.assistant-primary { background: #915858; color: #fff; font-weight: 600 !important; border: 1px solid #915858; }
.assistant-secondary, .assistant-answer { border: 1px solid #d4d4d4; background: #fff; color: #262626; }
.assistant-answer { text-align: left; }
.assistant-answer:hover, .assistant-secondary:hover { border-color: #915858; background: #fcf8f7; }
.assistant-answer strong, .assistant-answer span { display: block; }
.assistant-answer span { font-size: 12px; color: #595959; margin-top: 4px; }
.assistant-navigation { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; border-top: 1px solid #e9e5e1; flex-shrink: 0; }
.assistant-text-button, .assistant-help { border: 0; background: transparent; color: #754545; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.assistant-help { text-align: left; font-size: 12px !important; }
.assistant-notification { position: absolute; bottom: 72px; right: 0; width: 288px; max-width: calc(100vw - 32px); display: flex; align-items: flex-start; padding: 14px 40px 14px 16px; background: #fffdfd; border: 1px solid #eadcda; border-radius: 16px; box-shadow: 0 8px 24px #75454514; }
#assistant-notification-open { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; min-height: 44px; color: #404040; font-size: 14px; line-height: 1.5; }
#assistant-notification-close { position: absolute; top: 2px; right: 2px; color: #806967; font-size: 16px !important; }
.assistant-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#consult-panel { scroll-margin-top: 110px; }
@keyframes assistant-content-enter { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.assistant-content-changing { animation: assistant-content-enter .18s ease-out; }
/* Keep the capsule on desktop, with a compact launcher on smaller screens. */
@media (max-width: 1023px) {
  .assistant-launcher { width: 58px; padding: 11px; border-radius: 50%; }
  .assistant-launcher-label { display: none; }
}
@media (max-width: 639px) {
  .consultation-assistant { right: 16px; --assistant-bottom: 16px; }
  .assistant-panel { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 16px 16px; }
  .assistant-launcher[aria-expanded="true"] { visibility: hidden; }
  .assistant-content { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .consultation-assistant *, .assistant-content-changing { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
