[data-website-chat-open][hidden] { display: none; }
html:has(.website-chat[open]) { overflow: hidden; }
.website-chat-launch {
  position: fixed; z-index: 4; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem); gap: .55rem; box-shadow: 0 4px 16px #11182020;
}
.website-chat-launch svg { flex-shrink: 0; }
.website-chat {
  position: fixed;
  inset: auto max(.625rem, env(safe-area-inset-right)) max(.625rem, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(440px, calc(100% - 1.25rem)); max-height: min(640px, calc(100dvh - 1.25rem));
  border: 1px solid #d6dce3; padding: 0; border-radius: 12px; color: #111820; background: white;
  box-shadow: 0 14px 50px #11182030;
}
.website-chat[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  animation: website-chat-slide-in 220ms ease-out both;
  overscroll-behavior: contain;
}
@keyframes website-chat-slide-in {
  from { transform: translateX(calc(100% + 1rem)); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .website-chat[open] { animation: none; }
}
.website-chat::backdrop { background: #11182070; }
.website-chat-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .65rem 1rem; }
.website-chat-heading h2 { font-size: 1.12rem; letter-spacing: -.015em; }
.website-chat-heading button {
  min-width: 44px; min-height: 44px; cursor: pointer; background: transparent; color: #344551;
  border: 1px solid transparent; border-radius: 6px; font-size: 1.4rem;
}
.website-chat-heading button:hover { background: #edf1f4; }
.website-chat-messages {
  display: flex; flex-direction: column; gap: .55rem; min-height: min(220px, 36dvh);
  overflow: auto; overscroll-behavior: contain; padding: .85rem 1rem; overflow-wrap: anywhere; background: #fafbfc;
  border-block: 1px solid #e2e7eb;
}
.website-chat-answer, .website-chat-question { margin: 0; padding: .55rem .75rem; border-radius: 10px; }
.website-chat-answer { align-self: start; max-width: 100%; background: #edf1f4; line-height: 1.45; }
.website-chat-answer :is(p, ul, ol) { margin: 0; }
.website-chat-answer :is(ul, ol) { padding-inline-start: 1.3rem; }
.website-chat-answer > :is(p, ul, ol) + :is(p, ul, ol) { margin-block-start: .55rem; }
.website-chat-answer li + li { margin-block-start: .3rem; }
.website-chat-answer strong { font-weight: 650; }
.website-chat-question { align-self: end; max-width: 92%; white-space: pre-wrap; background: #ffeadb; }
.website-chat-prompts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.website-chat-prompts :is(button, a) {
  display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; padding: .25rem .6rem; border: 1px solid #bdc9d2;
  border-radius: 5px; background: white; color: #243847; font: inherit; font-size: .82rem; text-align: start; text-decoration: none;
}
.website-chat-prompts button { cursor: pointer; }
.website-chat-prompts :is(button, a):hover { background: #edf3f7; }
.website-chat-form { padding: .7rem 1rem .85rem; }
.website-chat-form label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .25rem; }
.website-chat-form div { display: flex; gap: .5rem; }
.website-chat-form input { min-width: 0; width: 100%; font: inherit; padding: .45rem .6rem; border: 1px solid #a6b1bc; border-radius: 5px; }
.website-chat-enquiry { display: grid; gap: .4rem; background: #edf1f4; padding: .75rem; border-radius: 10px; }
.website-chat-enquiry h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: normal; }
.website-chat-enquiry p { margin: 0 0 .15rem; }
.website-chat-enquiry :is(label, legend) { font-size: .85rem; font-weight: 650; }
.website-chat-enquiry :is(input:not([type="checkbox"]), textarea) {
  width: 100%; min-width: 0; font: inherit; padding: .4rem .55rem; border: 1px solid #a6b1bc; border-radius: 5px;
}
.website-chat-enquiry textarea { resize: vertical; }
.website-chat-enquiry fieldset { min-width: 0; margin: .2rem 0; padding: .35rem .5rem .5rem; border: 1px solid #bdc9d2; }
.website-chat-enquiry fieldset p { font-size: .82rem; }
.website-chat-products label { display: flex; align-items: flex-start; gap: .5rem; padding: .45rem 0; min-height: 36px; cursor: pointer; }
.website-chat-products label + label { border-top: 1px solid #d6dce3; }
.website-chat-products input { flex: none; margin: .25rem 0 0; }
.website-chat-product-summary { display: block; color: #344551; font-weight: 400; line-height: 1.4; }
.website-chat-enquiry-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.website-chat-enquiry-actions [data-chat-enquiry-cancel] {
  min-height: 44px; padding: .35rem .65rem; font: inherit; background: white; border: 1px solid #bdc9d2; border-radius: 5px;
}
.website-chat-enquiry [role="alert"] { color: #942a18; }
.website-chat .button { min-height: 44px; padding: .45rem .9rem; }
.website-chat .button:disabled { opacity: .7; cursor: wait; }
.website-chat :is(input, textarea, button, a):focus-visible,
.website-chat-form input:focus { outline: 1px solid #285f8f; outline-offset: 1px; }
.website-chat-form input:focus { border-color: #285f8f; }
@media (max-width: 600px) {
  body:has(.website-chat-launch:not([hidden])) { padding-bottom: 4.5rem; }
  .website-chat-launch { bottom: max(.6rem, env(safe-area-inset-bottom)); }
}
