/* LMG creative assistant */
.lmg-chat { position: fixed; right: 24px; bottom: 82px; z-index: 1040; font-size: 1rem; }
.chat-launch { display: flex; align-items: center; gap: 12px; background: #121212; color: white; border: 1px solid #f4b400; padding: 10px 20px 10px 10px; border-radius: 40px; font-weight: 800; box-shadow: 0 8px 30px #0003; text-align: left; }
.chat-launch small { display: block; color: #d7d7d7; font-size: .7rem; font-weight: 400; }
.chat-launch-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #29251a; border: 1px solid #f4b40055; }
.chat-launch-icon img, .chat-avatar img { display: block; width: 52px; height: 52px; }
.chat-launch:hover { background: #29251a; }
.chat-panel { position: absolute; bottom: 90px; right: 0; width: min(410px, calc(100vw - 32px)); max-height: calc(100dvh - 200px); overflow-y: auto; background: #fbfaf7; color: #171717; border: 1px solid #e8e3d9; border-radius: 24px; box-shadow: 0 24px 80px #0004; scrollbar-width: thin; }
.chat-panel[hidden], .chat-suggestions[hidden] { display: none; }
.chat-heading { display: flex; align-items: center; gap: 12px; padding: 22px 18px; background: radial-gradient(ellipse at top right, #695015, transparent 75%), #111; color: white; border-bottom: 3px solid #f4b400; }
.chat-avatar { flex: 0 0 56px; display: grid; place-items: center; height: 56px; background: #ffffff0d; border: 1px solid #f4b40055; border-radius: 16px; }
.chat-eyebrow { display: block; font-size: .55rem; letter-spacing: .15em; color: #f4b400; font-weight: 700; }
.chat-heading strong { display: block; font-family: var(--lmg-font-heading); font-size: 1.15rem; }
.chat-heading small { display: block; font-size: .73rem; color: #ddd; }
.chat-close { margin-left: auto; flex: 0 0 36px; border: 1px solid #ffffff30; background: #ffffff0a; border-radius: 50%; color: white; font-size: 1.5rem; height: 36px; line-height: 1; }
.chat-close:hover { background: #ffffff25; }
.chat-messages { max-height: 240px; overflow-y: auto; padding: 20px 18px 0; scrollbar-width: thin; }
.chat-message { padding: 14px 16px; background: white; border: 1px solid #e9e5dc; border-radius: 4px 18px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.6; margin: 0 20px 14px 0; box-shadow: 0 3px 8px #00000003; }
.chat-assistant::before { content: 'LMG ASSISTANT'; display: block; color: #80600a; font-size: .57rem; letter-spacing: .12em; font-weight: 800; margin-bottom: 6px; }
.chat-user { margin-left: 30px; margin-right: 0; background: #fff0bd; border-color: #efdb98; border-radius: 18px 4px 18px 18px; }
.chat-status { padding: 0 20px; font-size: .73rem; margin: 12px 0; color: #655d4b; }
.chat-suggestions { padding: 0 18px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-suggestions button { background: #fff; border: 1px solid #d8cfb9; border-radius: 12px; padding: 9px 12px; font-size: .75rem; text-align: left; color: #403820; }
.chat-suggestions button:hover { background: #fff0bd; border-color: #b99129; }
.chat-form { padding: 0 18px; }
.chat-form label { display: block; font-size: .7rem; margin-bottom: 6px; font-weight: 700; }
.chat-form > div { display: flex; align-items: center; gap: 6px; background: white; border: 1px solid #c7c1b3; border-radius: 16px; padding: 5px; box-shadow: 0 4px 12px #00000005; }
.chat-form > div:focus-within { border-color: #866200; box-shadow: 0 0 0 3px #f4b40020; }
.chat-form textarea { min-width: 0; width: 100%; background: transparent; border: 0; border-radius: 10px; padding: 10px; font-size: 16px; color: #171717; }
.chat-form textarea:disabled { color: #777; }
.chat-form button { flex: 0 0 42px; height: 42px; background: #f4b400; color: #0d0d0d; border: 0; border-radius: 12px; font-size: 1.5rem; font-weight: 700; }
.chat-form button:disabled { opacity: .45; }
.chat-notice { padding: 0 20px; font-size: .66rem; line-height: 1.5; margin: 12px 0 18px; color: #68645c; }
.chat-contact-label { padding: 14px 18px 0; border-top: 1px solid #e8e3d9; background: white; margin: 0; font-size: .72rem; font-weight: 700; }
.chat-contact { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 18px; background: white; }
.chat-contact a { font-size: .72rem; color: #171717; text-decoration: none; font-weight: 700; padding: 7px 10px; border: 1px solid #dedbd3; border-radius: 8px; }
.chat-contact a:hover { background: #fff0bd; border-color: #b99129; }
.lmg-chat :focus-visible { outline: 3px solid #866200; outline-offset: 3px; }
.chat-heading :focus-visible, .chat-launch:focus-visible { outline-color: #f4b400; }
@media (max-width: 575.98px) { .lmg-chat { right: 16px; bottom: 76px; } .chat-heading { padding: 18px 14px; gap: 8px; } .chat-panel { max-height: calc(100dvh - 190px); bottom: 90px; } .chat-launch { padding-right: 16px; } }
@media (prefers-reduced-motion: no-preference) { .chat-panel:not([hidden]) { animation: chat-appear .18s ease-out; } @keyframes chat-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }
/* Website assistant: fixed controls, independently scrollable conversation. */
.chat-panel { display: flex; flex-direction: column; position: fixed; right: 24px; bottom: calc(100px + var(--chat-view-bottom, 0px)); height: min(690px, calc(var(--chat-view-height, 100dvh) - 120px)); max-height: none; overflow: hidden; }
.chat-heading { flex-shrink: 0; padding: 14px; gap: 10px; }
.chat-heading strong { font-size: 1rem; }
.chat-heading small { font-size: .7rem; line-height: 1.5; }
.chat-online { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #75e49b; }
.chat-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; font-size: .72rem; border-bottom: 1px solid #e8e3d9; flex-shrink: 0; }
.chat-clear { border: 0; background: transparent; color: #493400; text-decoration: underline; padding: 8px; font-weight: 700; }
.chat-messages { flex: 1 1 auto; min-height: 0; max-height: none; overscroll-behavior: contain; overflow-y: auto; padding: 12px 14px 0; }
.chat-message { font-size: .9rem; }
.chat-message p { margin: 0; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-actions a { display: inline-block; border: 1px solid #b99129; border-radius: 8px; background: #fff4ce; color: #29200d; padding: 6px 9px; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: normal; }
.chat-status { flex-shrink: 0; min-height: 20px; margin: 3px 0; }
.chat-suggestions { flex-shrink: 0; padding: 4px 12px 8px; gap: 5px; }
.chat-suggestions button { padding: 7px 9px; font-size: .75rem; }
.chat-form { flex-shrink: 0; padding: 0 12px; }
.chat-notice { flex-shrink: 0; margin: 8px 0 12px; padding: 0 14px; font-size: .68rem; }
.chat-clear:hover, .chat-actions a:hover { background: #ffe6a0; }
.lmg-chat button:active, .chat-actions a:active { filter: brightness(.9); }
.lmg-chat button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 575.98px), (max-height: 560px) {
  .chat-is-open .chat-launch { visibility: hidden; }
  .chat-panel { right: 12px; bottom: calc(12px + var(--chat-view-bottom, 0px)); width: min(410px, calc(100vw - 24px)); height: calc(var(--chat-view-height, 100dvh) - 24px); border-radius: 18px; }
}
@media (max-height: 500px) {
  .chat-avatar { display: none; }
  .chat-heading { padding: 6px 12px; }
  .chat-heading small, .chat-notice, .chat-form label { display: none; }
  .chat-suggestions { flex-wrap: nowrap; overflow-x: auto; }
  .chat-suggestions button { flex-shrink: 0; }
  .chat-form { padding-bottom: 8px; }
}
/* AI conversation and guided quote controls reuse the existing robot design. */
.chat-close { flex-basis: 44px; width: 44px; height: 44px; }
.chat-form button { flex-basis: 44px; height: 44px; }
.chat-clear, .chat-suggestions button, .chat-actions a, .chat-actions button { min-height: 44px; }
.chat-actions a { display: inline-flex; align-items: center; }
.chat-form textarea { resize: none; line-height: 1.4; max-height: 100px; }
.chat-form label span { font-weight: 400; }
.chat-actions button, .chat-quote-choices button { background: #fff4ce; color: #29200d; border: 1px solid #b99129; border-radius: 8px; padding: 8px; font-size: .8rem; font-weight: 700; }
.chat-quote-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; }
.chat-quote-choices label { display: block; width: 100%; font-size: .8rem; }
.chat-quote-choices select { display: block; width: 100%; min-height: 44px; margin-top: 4px; background: #fff; color: #171717; border: 1px solid #b99129; border-radius: 6px; font-size: 16px; }
.chat-quote-choices button { min-height: 44px; }
.chat-heading > div { min-width: 0; }
@media (max-width: 575.98px) {
  .chat-launch { width: 64px; height: 64px; padding: 3px; }
  .chat-launch > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
