.jwa-chat {
    --chat-ink: #10221b;
    --chat-green: #18382d;
    --chat-lime: #c8f45b;
    --chat-paper: #f7f4ed;
    --chat-clay: #c87857;
    --chat-line: rgba(16, 34, 27, .16);
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10040;
    color: var(--chat-ink);
    font-family: "DM Sans", Arial, sans-serif;
}
.jwa-chat *, .jwa-chat *::before, .jwa-chat *::after { box-sizing: border-box; }
.jwa-chat__launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 11px 18px 11px 11px;
    border: 0;
    border-radius: 999px;
    background: var(--chat-lime);
    color: var(--chat-ink);
    font: inherit;
    font-weight: 800;
    box-shadow: 0 15px 40px rgba(9, 29, 22, .24);
    cursor: pointer;
}
.jwa-chat__launcher:hover, .jwa-chat__launcher:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(9, 29, 22, .3); }
.jwa-chat__launcher:focus-visible, .jwa-chat button:focus-visible, .jwa-chat a:focus-visible, .jwa-chat input:focus-visible, .jwa-chat textarea:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.jwa-chat__launcher-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--chat-green);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 19px;
}
.jwa-chat__panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: grid;
    grid-template-rows: auto minmax(160px, 1fr) auto auto auto;
    width: min(390px, calc(100vw - 32px));
    height: min(680px, calc(100vh - 118px));
    height: min(680px, calc(100dvh - 118px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 18px;
    background: var(--chat-paper);
    box-shadow: 0 25px 70px rgba(7, 25, 18, .32);
}
.jwa-chat__panel[hidden], .jwa-chat__lead[hidden] { display: none !important; }
.jwa-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    background: var(--chat-green);
    color: #fff;
}
.jwa-chat__header > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; }
.jwa-chat__header strong { font-size: 15px; line-height: 1.2; }
.jwa-chat__header small { grid-column: 2; margin-top: 3px; color: rgba(255, 255, 255, .72); font-size: 11px; }
.jwa-chat__header > button, .jwa-chat__lead-heading button { border: 0; background: transparent; color: inherit; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.jwa-chat__status { width: 9px; height: 9px; border-radius: 50%; background: var(--chat-lime); box-shadow: 0 0 0 4px rgba(200, 244, 91, .14); }
.jwa-chat__messages { min-height: 0; overflow-y: auto; padding: 18px 15px 10px; scroll-behavior: smooth; }
.jwa-chat__message { display: flex; margin: 0 0 12px; }
.jwa-chat__message p { max-width: 86%; margin: 0; padding: 11px 13px; border-radius: 13px 13px 13px 3px; background: #fff; font-size: 14px; line-height: 1.52; white-space: pre-wrap; box-shadow: 0 5px 18px rgba(16, 34, 27, .07); }
.jwa-chat__message--user { justify-content: flex-end; }
.jwa-chat__message--user p { border-radius: 13px 13px 3px 13px; background: var(--chat-green); color: #fff; }
.jwa-chat__message--notice p { border-left: 3px solid var(--chat-clay); }
.jwa-chat__message[data-chat-pending] p { color: rgba(16, 34, 27, .6); }
.jwa-chat__quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 15px 10px; }
.jwa-chat__quick[hidden] { display: none; }
.jwa-chat__quick button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--chat-line); border-radius: 999px; background: transparent; color: var(--chat-green); font: 700 11px/1.2 "DM Sans", Arial, sans-serif; cursor: pointer; }
.jwa-chat__quick button:hover { background: rgba(200, 244, 91, .36); }
.jwa-chat__composer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 10px 15px; border-top: 1px solid var(--chat-line); background: #fff; }
.jwa-chat__composer textarea { width: 100%; min-height: 45px; max-height: 104px; resize: none; border: 1px solid var(--chat-line); border-radius: 10px; background: var(--chat-paper); color: var(--chat-ink); padding: 10px 11px; font: 14px/1.4 inherit; }
.jwa-chat__composer button, .jwa-chat__lead > button { min-height: 44px; border: 0; border-radius: 9px; background: var(--chat-lime); color: var(--chat-ink); padding: 9px 14px; font: 800 12px/1 inherit; cursor: pointer; }
.jwa-chat button:disabled, .jwa-chat textarea:disabled { cursor: not-allowed; opacity: .55; }
.jwa-chat__actions { display: grid; grid-template-columns: 1fr 1.2fr; border-top: 1px solid var(--chat-line); background: #fff; }
.jwa-chat__actions a, .jwa-chat__actions button { display: grid; place-items: center; min-height: 42px; border: 0; border-right: 1px solid var(--chat-line); background: transparent; color: var(--chat-green); font: 800 11px/1.25 inherit; text-decoration: none; cursor: pointer; }
.jwa-chat__actions button { border-right: 0; }
.jwa-chat__actions a:hover, .jwa-chat__actions button:hover { background: rgba(200, 244, 91, .24); }
.jwa-chat__privacy { margin: 0; padding: 8px 15px 10px; background: #fff; color: rgba(16, 34, 27, .66); font-size: 9.5px; line-height: 1.4; }
.jwa-chat__privacy a { color: inherit; font-weight: 700; }
.jwa-chat__lead {
    position: absolute;
    inset: 65px 0 0;
    z-index: 3;
    overflow-y: auto;
    padding: 18px;
    background: var(--chat-paper);
}
.jwa-chat__lead-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.jwa-chat__lead-heading strong { font-family: Georgia, serif; font-size: 22px; }
.jwa-chat__lead label { display: grid; gap: 5px; margin-bottom: 12px; color: var(--chat-green); font-size: 11px; font-weight: 800; }
.jwa-chat__lead input { width: 100%; min-height: 42px; border: 0; border-bottom: 1px solid var(--chat-green); background: transparent; color: var(--chat-ink); padding: 7px 2px; font: 15px inherit; }
.jwa-chat__lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jwa-chat__honeypot { position: absolute !important; left: -9999px !important; }
.jwa-chat__lead .jwa-security { display: grid; gap: 5px; margin: 2px 0 14px; padding: 10px 12px; border: 1px solid var(--chat-line); background: #fff; }
.jwa-chat__lead .jwa-security--fallback label { grid-template-columns: minmax(0, 1fr) 72px; align-items: center; gap: 10px; margin: 0; }
.jwa-chat__lead .jwa-security--fallback label span { font-size: 10.5px; line-height: 1.35; }
.jwa-chat__lead .jwa-security--fallback input { min-height: 36px; padding: 6px 8px; border: 1px solid var(--chat-line); text-align: center; }
.jwa-chat__lead .jwa-security small, .jwa-chat__lead .jwa-security__message { margin: 0; color: rgba(16,34,27,.6); font-size: 9px; line-height: 1.35; }
.jwa-chat__lead .jwa-turnstile { min-height: 60px; }
.jwa-chat__lead [data-chat-lead-status] { font-size: 11px; line-height: 1.5; color: rgba(16, 34, 27, .67); }
.jwa-chat__book-after { display: inline-block; margin-top: 10px; color: var(--chat-green); font-weight: 800; }
@media (max-width: 600px) {
    .jwa-chat { right: 12px; bottom: 82px; }
    .jwa-chat__launcher { width: 46px; min-height: 46px; padding: 8px; justify-content: center; font-size: 12px; }
    .jwa-chat__launcher > span:last-child { display: none; }
    .jwa-chat__launcher-icon { width: 30px; height: 30px; }
    .jwa-chat__panel { right: -2px; bottom: 58px; width: calc(100vw - 20px); height: min(650px, calc(100dvh - 155px)); border-radius: 15px; }
    .jwa-chat__lead-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .jwa-chat__launcher, .jwa-chat__messages { transition: none; scroll-behavior: auto; }
}
