.live-chat {
  --chat-green: #00db33;
  --chat-deep: #062e25;
  --chat-ink: #17252c;
  --chat-line: #dce7e3;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--chat-keyboard-offset, 0px));
  z-index: 40;
  width: 56px;
  height: 56px;
  color: var(--chat-ink);
  font: 14px/1.45 var(--font, 'DM Sans', sans-serif);
  letter-spacing: 0;
}
.live-chat *, .live-chat *::before, .live-chat *::after { box-sizing: border-box; letter-spacing: 0; }
.live-chat [hidden], .live-chat[hidden] { display: none !important; }
.live-chat button, .live-chat input, .live-chat textarea { font: inherit; }
.live-chat button { cursor: pointer; }
.live-chat button:disabled { cursor: wait; opacity: .65; }
.live-chat button:focus-visible, .live-chat a:focus-visible, .live-chat input:focus-visible, .live-chat textarea:focus-visible, .live-chat-log:focus-visible { outline: 2px solid #087a47; outline-offset: 3px; }
.live-chat-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.live-chat-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.live-chat-launcher { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid #08b832; border-radius: 50%; color: var(--chat-deep); background: var(--chat-green); box-shadow: 0 5px 20px #062e2533; }
.live-chat-launcher .live-chat-icon { width: 26px; height: 26px; }
.live-chat-launcher:hover, .live-chat-primary:hover, .live-chat-send:hover { background: #00c72e; }
.live-chat-attention { animation: chat-widget-arrive 1s cubic-bezier(.16, 1, .3, 1) both; }
.live-chat-attention .live-chat-launcher { transform-origin: center; animation: chat-widget-nudge 20s ease-in-out 3s infinite; }
.live-chat-attention .live-chat-launcher:hover, .live-chat-attention .live-chat-launcher:focus-visible { animation-play-state: paused; }
.live-chat-invitation { position: absolute; right: 0; bottom: 88px; width: min(252px, calc(100vw - 32px)); border: 1px solid var(--chat-line); border-radius: 8px; background: #fff; box-shadow: 0 6px 24px #062e2524; }
.live-chat-invitation-open { display: flex; flex-direction: column; align-items: start; gap: 3px; width: 100%; min-height: 76px; padding: 15px 44px 15px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--chat-deep); text-align: left; }
.live-chat-invitation-open:hover { background: #f1faf5; }
.live-chat-invitation-open strong { font-size: 15px; font-weight: 800; line-height: 1.4; }
.live-chat-invitation-open span { color: #4d6057; font-size: 12px; line-height: 1.5; }
.live-chat-invitation .live-chat-invitation-dismiss { position: absolute; top: 1px; right: 1px; width: 44px; height: 44px; }
.live-chat-invitation-dismiss .live-chat-icon { width: 16px; height: 16px; }
.live-chat-invitation .live-chat-invitation-arrow { position: absolute; top: calc(100% + 5px); right: 15px; width: 24px; height: 24px; color: #fff; filter: drop-shadow(0 1px 2px #062e25bb); pointer-events: none; animation: chat-invitation-point 1.8s ease-in-out 2; }
@keyframes chat-widget-arrive { from { opacity: 0; transform: translate3d(12px, 32px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes chat-widget-nudge { 0%, 94%, 100% { transform: translateX(0) rotate(0); } 95%, 97% { transform: translateX(-2px) rotate(-4deg); } 96%, 98% { transform: translateX(2px) rotate(4deg); } 99% { transform: translateX(-1px) rotate(-2deg); } }
@keyframes chat-invitation-point { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.live-chat-unread { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 5px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--chat-deep); font-size: 11px; font-weight: 700; }
.live-chat-panel { position: absolute; right: 0; bottom: 68px; display: flex; flex-direction: column; width: min(380px, calc(100vw - max(16px, env(safe-area-inset-right)) - max(16px, env(safe-area-inset-left)))); height: min(640px, calc(var(--chat-viewport-height, 100dvh) - max(16px, env(safe-area-inset-bottom)) - 84px)); min-height: 0; overflow: hidden; border: 1px solid var(--chat-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 40px #062e2529; }
.live-chat-head { display: flex; flex: 0 0 auto; align-items: start; gap: 6px; padding: 16px 12px 14px 18px; color: var(--chat-deep); background: var(--chat-green); }
.live-chat-heading { flex: 1; min-width: 0; }
.live-chat-head h2 { margin: 0; color: inherit; font: 800 16px/1.25 var(--display, 'Manrope', sans-serif); overflow-wrap: anywhere; }
.live-chat-head p { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }
.live-chat-tools { display: flex; flex: 0 0 auto; gap: 2px; }
.live-chat-icon-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: var(--chat-deep); border: 0; border-radius: 4px; background: transparent; }
.live-chat-icon-button:hover { background: #062e2514; }
.live-chat-feedback { flex: 0 0 auto; max-height: 30%; overflow: auto; padding: 10px 18px; border-bottom: 1px solid var(--chat-line); background: #f8faf9; font-size: 12px; }
.live-chat-feedback p { margin: 0 0 6px; overflow-wrap: anywhere; }
.live-chat-error { color: #9c2626; }
.live-chat-feedback a, .live-chat-privacy a { color: #066d3b; text-decoration: underline; text-underline-offset: 2px; }
.live-chat-retry { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: 10px; padding: 0; border: 0; color: var(--chat-deep); background: transparent; font-weight: 700 !important; }
.live-chat-retry .live-chat-icon { width: 16px; height: 16px; flex-basis: 16px; }
.live-chat-start { flex: 1; min-height: 0; margin: 0; padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
.live-chat-hours { margin: 0 0 12px; color: #4d6057; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.live-chat-field { min-width: 0; margin-bottom: 10px; }
.live-chat-field label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.live-chat-field input, .live-chat-field textarea, .live-chat-composer textarea { display: block; width: 100%; min-width: 0; padding: 8px 10px; color: var(--chat-ink); border: 1px solid #bacdc3; border-radius: 4px; background: #fff; line-height: 1.4; }
.live-chat-field input { height: 44px; }
.live-chat-field textarea { height: 72px; resize: vertical; min-height: 60px; max-height: 140px; }
.live-chat-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-chat-privacy { margin: 12px 0 10px; color: #4d6057; font-size: 12px; line-height: 1.5; }
.live-chat-accept { display: flex; align-items: start; gap: 9px; min-height: 44px; margin-bottom: 14px; color: #364a40; font-size: 12px; line-height: 1.45; cursor: pointer; }
.live-chat-accept input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #087a47; }
.live-chat-primary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 0; border-radius: 4px; background: var(--chat-green); color: var(--chat-deep); font-weight: 700 !important; }
.live-chat-start > .live-chat-primary { width: 100%; }
.live-chat-text-button { min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: #066d3b; font-size: 12px !important; text-decoration: underline; text-underline-offset: 3px; }
.live-chat-start > .live-chat-text-button { display: block; margin: 8px auto 0; }
.live-chat-conversation { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.live-chat-support { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.live-chat-support > .live-chat-hours { flex: 0 0 auto; margin: 0; padding: 12px 18px; border-top: 1px solid var(--chat-line); }
.live-chat-conversation[data-mode="contact"] .live-chat-support { flex: 0 0 auto; }
.live-chat-subject { flex: 0 0 auto; margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--chat-line); color: #4d6057; font-size: 12px; overflow-wrap: anywhere; max-height: 70px; overflow: auto; }
.live-chat-queue { flex: 0 0 auto; margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--chat-line); color: var(--chat-deep); background: #f1faf5; font-size: 12px; overflow-wrap: anywhere; }
.live-chat-log { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 18px; overscroll-behavior: contain; overflow-anchor: none; }
.live-chat-message { width: fit-content; max-width: 92%; margin: 0 0 14px; }
.live-chat-message[data-sender="visitor"] { margin-left: auto; }
.live-chat-message-author { display: block; margin: 0 2px 4px; font-size: 11px; font-weight: 700; color: #4d6057; }
.live-chat-message[data-sender="visitor"] .live-chat-message-author { text-align: right; }
.live-chat-message-body { margin: 0; padding: 10px 12px; border-radius: 6px; background: #f0f5f3; color: var(--chat-ink); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.live-chat-message[data-sender="visitor"] .live-chat-message-body { background: var(--chat-deep); color: #fff; }
.live-chat-message[data-sender="system"] .live-chat-message-body { padding: 8px 0; border-radius: 0; color: #596761; background: transparent; font-size: 12px; }
.live-chat-message-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 2px 0; color: #5d6970; font-size: 10px; }
.live-chat-message[data-sender="visitor"] .live-chat-message-meta { justify-content: end; }
.live-chat-message [data-delivery="failed"], .live-chat-message [data-delivery="review"] { color: #9c2626; }
.live-chat-new-messages { flex: 0 0 auto; min-height: 44px; padding: 6px; border: 0; border-top: 1px solid var(--chat-line); color: #066d3b; background: #f1faf5; font-size: 12px !important; }
.live-chat-composer { flex: 0 0 auto; margin: 0; padding: 12px; border-top: 1px solid var(--chat-line); background: #fff; }
.live-chat-input-wrap { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 6px; border: 1px solid #cdded5; border-radius: 8px; background: #f6faf8; transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease; }
.live-chat-input-wrap:focus-within { border-color: #087a47; background: #fff; box-shadow: 0 0 0 3px #087a471f; }
.live-chat-composer textarea { flex: 1; height: 64px; min-height: 64px; max-height: 110px; padding: 8px; border: 0; border-radius: 0; background: transparent; line-height: 1.5; resize: none; }
.live-chat-composer textarea::placeholder { color: #66776f; opacity: 1; }
.live-chat-composer textarea:focus-visible { outline: none; }
.live-chat-send { flex: 0 0 48px; width: 48px; height: 48px; margin: 0; border-radius: 6px; background: var(--chat-green); }
.live-chat-send .live-chat-icon { flex-basis: 22px; width: 22px; height: 22px; }
.live-chat-confirm, .live-chat-closed { flex: 0 0 auto; padding: 12px 18px; border-top: 1px solid var(--chat-line); background: #f1faf5; }
.live-chat-confirm p, .live-chat-closed p { margin: 0 0 8px; font-size: 12px; }
.live-chat-conversation[data-mode="contact"] .live-chat-closed { flex: 1; min-height: 0; overflow-y: auto; }
.live-chat-receipt { margin-bottom: 16px; overflow-wrap: anywhere; }
.live-chat-receipt h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.live-chat-confirm > div { display: flex; justify-content: space-between; gap: 10px; }
.live-chat-honey, .live-chat-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.live-chat-document, .live-chat-page { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #fff; }
.live-chat-page .live-chat { top: var(--chat-viewport-top, 0px); right: 0; bottom: auto; left: 0; width: 100%; height: var(--chat-viewport-height, 100dvh); }
.live-chat-page .live-chat-panel { position: relative; inset: auto; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.live-chat-page .live-chat-launcher, .live-chat-page .live-chat-invitation { display: none; }
.live-chat-page .live-chat-head { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.live-chat-page .live-chat-start { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.live-chat-page .live-chat-composer, .live-chat-page .live-chat-closed { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.live-chat-page .live-chat-field input, .live-chat-page .live-chat-field textarea, .live-chat-page .live-chat-composer textarea { font-size: 16px; }
.live-chat-page .live-chat-tools a { text-decoration: none; }
.live-chat-page [data-chat-end] { flex-basis: auto; width: auto; padding-inline: 8px; font-size: 12px; font-weight: 700; }
@media (max-width: 440px) {
  .live-chat-head { padding: 12px; }
  .live-chat-head h2 { font-size: 15px; }
  .live-chat-start { padding: 12px 14px; }
  .live-chat-field input, .live-chat-field textarea, .live-chat-composer textarea { font-size: 16px; }
  .live-chat-form-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-chat { animation: none !important; }
  .live-chat *, .live-chat *::before, .live-chat *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
