.chat-launch, .chat-send {
  background: #1e4caf; color: #fff; border: 0; border-radius: .4rem;
  padding: .7rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
}
.chat-launch { margin-top: 1.5rem; }
.chat-launch:hover, .chat-send:hover { background: #183e90; }
.inquiry-chat {
  position: fixed; inset: auto 1.25rem 1.25rem auto; margin: 0; padding: 0;
  box-sizing: border-box; width: min(27rem, calc(100% - 2rem)); max-width: none; max-height: none;
  color: #18252c; background: white; border: 1px solid #c7d0d4;
  border-radius: .85rem; box-shadow: 0 1rem 3rem #19282e30;
}
.inquiry-chat:not([open]), .inquiry-chat [hidden], .chat-launch[hidden] { display: none; }
.inquiry-chat::backdrop { background: rgb(14 26 38 / .22); }
.chat-layout { display: flex; flex-direction: column; max-height: min(42rem, 84vh); max-height: min(42rem, 84dvh); }
.chat-header { flex: none; position: relative; padding: 1.1rem 3.3rem .9rem 1.2rem; border-bottom: 1px solid #d8dedc; }
.chat-header h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.chat-product { margin: .35rem 0 0; color: #416274; font-size: .8rem; font-weight: 600; }
.chat-state, .chat-notice { color: #475860; font-size: .86rem; line-height: 1.4; margin: .45rem 0 0; }
.chat-close { position: absolute; right: .35rem; top: .35rem; width: 2.75rem; height: 2.75rem; font: inherit; font-size: 1.5rem; color: #314450; cursor: pointer; }
.chat-thread { overflow-y: auto; min-height: 1.25rem; max-height: 18rem; scrollbar-gutter: stable; }
.chat-bubble { width: fit-content; max-width: 87%; margin: .75rem 1rem; padding: .55rem .75rem; background: #edf2f4; border-radius: .6rem; overflow-wrap: anywhere; }
.chat-bubble[data-actor="visitor"] { margin-left: auto; background: #e8efff; }
.chat-bubble strong { font-size: .73rem; color: #425766; font-weight: 650; }
.chat-bubble p { white-space: pre-wrap; font-size: .94rem; margin: .18rem 0 0; }
.chat-compose { display: grid; gap: .55rem; flex-shrink: 0; padding: .9rem 1.15rem 1rem; border-top: 1px solid #d8dedc; }
.chat-label { font-size: .87rem; font-weight: 600; }
.chat-compose textarea, .chat-compose input[type="email"] {
  width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; padding: .55rem .65rem; border: 1px solid #a5b4bd; border-radius: .4rem;
}
.chat-compose textarea { max-height: 6rem; resize: vertical; }
.chat-compose input[type="email"] { display: block; margin-top: .25rem; }
.chat-mode { display: flex; gap: .5rem; align-items: center; font-size: .88rem; min-height: 1.8rem; }
.chat-mode input { accent-color: #1e4caf; }
.chat-controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.chat-send:disabled { opacity: .65; cursor: default; }
.chat-restart { color: #1e4caf; text-decoration: underline; cursor: pointer; }
.inquiry-chat :focus-visible, .chat-launch:focus-visible { outline: 3px solid #1e4caf; outline-offset: 2px; }
@media (max-width: 560px), (max-height: 520px) {
  .inquiry-chat { inset: auto 0 0; width: 100%; border-radius: .85rem .85rem 0 0; }
  .chat-layout { max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
  .chat-compose { padding-bottom: max(.85rem, env(safe-area-inset-bottom)); }
  .chat-compose textarea, .chat-compose input[type="email"] { font-size: 1rem; }
  .chat-thread:not(:empty) { min-height: 4rem; }
}
