/* The chat window. Loaded on every page, so it sets its own fonts and colours and does not depend on the app
   stylesheet (which is switched off on the marketing pages). The lead form shown inside it is styled here too. */
#cb-launch, #cb-panel { font-family: 'Google Sans Flex', 'Figtree', system-ui, sans-serif; color: #121317; box-sizing: border-box; }
#cb-panel *, #cb-launch * { box-sizing: border-box; }
#cb-launch { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: inline-flex; align-items: center; gap: 9px; min-height: 48px;
  padding: 12px 20px; border: 0; border-radius: 999px; background: #121317; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(18, 19, 23, .55); }
#cb-launch:hover { background: #2B2E36; }
#cb-launch svg { width: 20px; height: 20px; }
#cb-launch:focus-visible, #cb-panel :focus-visible { outline: 3px solid #1746ff; outline-offset: 2px; }
#cb-panel { position: fixed; right: 20px; bottom: 84px; z-index: 36; width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid #DCE3EE; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(18, 19, 23, .5); }
#cb-panel[hidden] { display: none; }
#cb-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 18px; border-bottom: 1px solid #EEF0F4; }
#cb-panel header div { flex: 1; min-width: 0; display: grid; gap: 1px; }
#cb-panel header b { font-size: 16px; }
#cb-panel header span { font-size: 13px; color: #5A6478; }
.cb-x { width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; font-size: 24px; line-height: 1; color: #4A5568; cursor: pointer; }
.cb-x:hover { background: #F0F2F6; }
.cb-btn { min-height: 40px; padding: 9px 16px; border: 1px solid #121317; border-radius: 999px; background: #121317; color: #fff; font: 700 14px 'Google Sans Flex', 'Figtree', sans-serif; cursor: pointer; white-space: nowrap; }
.cb-btn:hover { background: #2B2E36; }
.cb-btn.ghost { background: #fff; color: #121317; border-color: #C9D2E4; }
.cb-btn.ghost:hover { border-color: #121317; background: #fff; }
.cb-btn[disabled] { opacity: .6; cursor: progress; }
.cb-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cb-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cb-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cb-msg.assistant { align-self: flex-start; background: #F1F4FA; border-bottom-left-radius: 6px; }
.cb-msg.visitor { align-self: flex-end; background: #121317; color: #fff; border-bottom-right-radius: 6px; }
.cb-msg a { color: #0b2fc4; font-weight: 600; }
.cb-act { align-self: flex-start; }
.cb-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-starters button { min-height: 40px; padding: 8px 14px; border: 1px solid #C9D2E4; border-radius: 999px; background: #fff; color: #121317; font: 500 14px 'Google Sans Flex', 'Figtree', sans-serif; cursor: pointer; text-align: left; }
.cb-starters button:hover { border-color: #121317; }
.cb-wait { display: inline-flex; gap: 5px; align-items: center; min-height: 40px; }
.cb-wait i { width: 7px; height: 7px; border-radius: 50%; background: #7A859C; animation: cb-dot 1.2s infinite ease-in-out; }
.cb-wait i:nth-child(2) { animation-delay: .15s; } .cb-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes cb-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.cb-ask { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 8px; border-top: 1px solid #EEF0F4; }
.cb-ask textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border: 1px solid #C9D2E4; border-radius: 16px;
  background: #fff; color: #121317; font: 400 16px/1.4 'Google Sans Flex', 'Figtree', sans-serif; }
.cb-ask textarea:focus { outline: none; border-color: #1746ff; box-shadow: 0 0 0 4px rgba(23, 70, 255, .14); }
.cb-ask .cb-btn { min-height: 44px; }
.cb-note { margin: 0; padding: 0 16px 12px; font-size: 12px; line-height: 1.45; color: #5A6478; }
.cb-note a { color: #0b2fc4; }

/* the lead form inside the chat */
.cb-form { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 18px; font-size: 15px; line-height: 1.5; }
.cb-form > p { margin: 0 0 14px; color: #33415f; }
.cb-form .formgrid { display: block; }
.cb-form .field { margin-bottom: 12px; }
.cb-form label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.cb-form input, .cb-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #C9D2E4; border-radius: 12px; background: #fff; color: #121317;
  font: 400 16px 'Google Sans Flex', 'Figtree', sans-serif; }
.cb-form input:focus, .cb-form select:focus { outline: none; border-color: #1746ff; box-shadow: 0 0 0 4px rgba(23, 70, 255, .14); }
.cb-form .phone-row { display: flex; gap: 8px; }
.cb-form .phone-row select { flex: 0 0 9.5rem; min-width: 0; }
.cb-form .phone-row input { flex: 1 1 auto; min-width: 0; }
.cb-form .hint { margin-top: 4px; font-size: 12.5px; color: #5A6478; }
.cb-form .error { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #fde9e7; color: #b3261e; font-size: 14px; }
.cb-form .btn { min-height: 46px; padding: 12px 22px; border: 0; border-radius: 999px; background: #121317; color: #fff; font: 700 15px 'Google Sans Flex', 'Figtree', sans-serif; cursor: pointer; }
.cb-form .btn[disabled] { opacity: .6; cursor: progress; }
.cb-form .small { font-size: 12.5px; color: #5A6478; }
.cb-form .small a { color: #0b2fc4; }
.cb-form [hidden] { display: none; }

/* phones: the chat fills the screen, and the button sits above the "Talk to us" bar when that bar is shown */
@media (max-width: 560px) {
  #cb-launch { right: 14px; bottom: 14px; }
  #cb-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #cb-launch { width: 52px; height: 52px; padding: 0; justify-content: center; }
  body.has-mcta #cb-launch { bottom: 82px; }
  #cb-panel { inset: 0; width: auto; max-width: none; height: auto; border: 0; border-radius: 0; }
  body.cb-open #cb-launch { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cb-wait i { animation: none; opacity: .7; } }
