.eh-chat {
  --chat-green:#23483e;
  --chat-text:#203c34;
  --chat-border:#cfd8ce;
  --chat-paper:#fffcf7;
  color:var(--chat-text);
  font:400 15px/1.45 var(--font-body);
}
.eh-chat [hidden], [data-chat-dates][hidden] { display:none !important; }
.eh-chat :is(button,input,textarea) {font:inherit;color:inherit;}
.eh-chat button {cursor:pointer;}
.eh-chat :is(button,a,input,textarea):focus-visible, [data-chat-dates]:focus-visible {
  outline:3px solid #a17830;outline-offset:3px;
}
.eh-chat-launch {
  position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));right:20px;z-index:45;
  display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 18px;
  border:1px solid #fff9;border-radius:30px;background:var(--chat-green);
  box-shadow:0 3px 14px #0d231f36;font-weight:550!important;
}
.eh-chat .eh-chat-launch {color:white;}
.eh-chat .eh-chat-launch.over-footer {background:white;color:var(--chat-green);border-color:var(--chat-green);}
.eh-chat-launch svg {width:21px;height:21px;}
.eh-chat-launch b {position:absolute;right:-4px;top:-7px;padding:1px 6px;border-radius:20px;background:#fff6df;border:1px solid #bfa45b;color:var(--chat-text);font:600 13px/18px system-ui;}
body:has(dialog[open]) .eh-chat-launch {visibility:hidden;}
.eh-chat-panel {
  box-sizing:border-box;position:fixed;inset:auto 20px 20px auto;margin:0;
  width:min(418px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);
  padding:0;border:1px solid #ced6cb;border-radius:18px;background:var(--chat-paper);color:var(--chat-text);
  box-shadow:0 16px 65px #10251e40;overflow:hidden;overscroll-behavior:contain;
}
.eh-chat-panel[open] {display:flex;flex-direction:column;}
.eh-chat-panel::backdrop {background:rgba(18,37,32,.2);}
body:has(.eh-chat-panel[open]) {overflow:hidden;}
.eh-chat-head {display:flex;align-items:center;gap:12px;padding:17px 19px;background:var(--chat-green);color:white;flex:none;}
.eh-chat-head img {background:var(--chat-paper);width:48px;height:48px;object-fit:contain;border-radius:50%;padding:6px;box-sizing:border-box;}
.eh-chat-head h2 {font:500 25px/1.15 var(--font-display);color:white;margin:0;letter-spacing:-.02em;}
.eh-chat-head p {color:#e3eae3;font:400 13px/1.4 var(--font-body);margin:4px 0 0;}
.eh-chat-close {display:grid;place-items:center;width:44px;height:44px;padding:0;margin-left:auto;flex:none;border:1px solid #ffffff52;background:transparent;border-radius:50%;color:white;}
.eh-chat-close svg {width:17px;height:17px;}
.eh-chat-close:hover {background:#ffffff18;}
.eh-chat-trip,.eh-chat-state,.eh-chat-error {margin:0;padding:10px 20px;font:500 13px/1.5 var(--font-body);}
.eh-chat-trip {background:#eaf0e6;}
.eh-chat-state {color:#385246;background:#f0f3eb;}
.eh-chat-error {background:#fae8df;color:#752c1d;}
.eh-chat-intake,.eh-chat-offline,.eh-chat-log {overflow:auto;min-height:0;overscroll-behavior:contain;}
.eh-chat-fields,.eh-chat-offline {padding:20px;}
.eh-chat-fields {display:grid;gap:16px;}
.eh-chat-fields fieldset {margin:0;padding:0;border:0;min-width:0;}
.eh-chat-fields label,.eh-chat-fields legend {font:550 14px/1.4 var(--font-body);color:var(--chat-text);}
.eh-chat-fields legend {font:500 18px/1.3 var(--font-display);padding:0;margin:0 0 10px;}
.eh-chat-topics div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.eh-chat-topics label {position:relative;cursor:pointer;}
.eh-chat-topics input,.eh-chat-sr {clip-path:inset(50%);height:1px;width:1px;position:absolute;overflow:hidden;}
.eh-chat-topics span {display:flex;align-items:center;justify-content:center;min-height:38px;padding:5px 7px;border:1px solid var(--chat-border);border-radius:9px;font:400 13px/1.25 var(--font-body);background:#fff;text-align:center;box-sizing:border-box;}
.eh-chat-topics input:checked + span {background:#e4ede4;border-color:#557a63;color:#163d2d;font-weight:600;}
.eh-chat-topics input:focus-visible + span {outline:3px solid #a17830;outline-offset:2px;}
.eh-chat-contact {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.eh-chat-fields :is(input:not([type=radio]),textarea), .eh-chat-compose textarea {
  box-sizing:border-box;display:block;width:100%;min-width:0;min-height:43px;margin:6px 0 0;padding:10px 11px;
  border:1px solid #acbbac;border-radius:8px;background:white;font:400 16px/1.45 var(--font-body);color:#203c34;
}
.eh-chat-fields textarea,.eh-chat-compose textarea {resize:vertical;}
.eh-chat-fields textarea::placeholder,.eh-chat-fields input::placeholder,.eh-chat-compose textarea::placeholder {color:#66736a;opacity:1;}
.eh-chat button.eh-chat-send,.eh-chat-retry {
  min-height:44px;padding:10px 18px;border:0;border-radius:24px;background:var(--chat-green);color:white;font:550 15px/1.35 var(--font-body);
}
.eh-chat-send span {margin-left:6px;}
.eh-chat-send:disabled {opacity:.65;}
.eh-chat-consent {margin:-5px 2px 0;color:#536456;font:400 12px/1.55 var(--font-body);}
.eh-chat-log {height:min(340px,44dvh);padding:15px 18px;display:flex;flex-direction:column;gap:12px;align-items:flex-start;}
.eh-chat-msg {max-width:90%;padding:10px 13px;border-radius:12px;background:#e7ede4;overflow-wrap:anywhere;}
.eh-chat-msg p {font:400 15px/1.5 var(--font-body);margin:3px 0 0;white-space:pre-wrap;}
.eh-chat-msg small {display:block;font:500 11px/1.45 system-ui,sans-serif;}
.eh-chat-msg.from-guest {align-self:flex-end;background:var(--chat-green);color:white;border-bottom-right-radius:3px;}
.eh-chat-msg.from-team {border-bottom-left-radius:3px;}
.eh-chat-msg.from-system {max-width:100%;color:#506256;background:transparent;border-left:2px solid #acc0ad;border-radius:0;}
.eh-chat-msg.from-system p {font-size:13px;}
.eh-chat-compose,.eh-chat-ended {display:flex;gap:10px;align-items:flex-end;border-top:1px solid var(--chat-border);padding:12px 16px;background:white;}
.eh-chat-compose textarea {margin:0;max-height:20dvh;}
.eh-chat-offline h3,.eh-chat-offline p {margin:0 0 12px;}
.eh-chat-offline h3 {font:500 21px/1.3 var(--font-display);}
.eh-chat-offline a {display:inline-block;margin:6px;color:var(--chat-green);text-decoration:underline;}
.pd-card button[data-chat-dates] {width:100%;padding:10px 6px;margin:8px 0 0;border:none;background:transparent;color:#23483e;text-decoration:underline;text-underline-offset:.2em;font-size:14px;}
.pd-card button[data-chat-dates]:disabled {opacity:.6;text-decoration:none;cursor:default;}
@media (max-width:780px) {
  .eh-chat-launch {right:14px;bottom:calc(14px + env(safe-area-inset-bottom));min-height:44px;padding:9px 14px;}
  body:has(.pd-mobile-book) .eh-chat-launch {bottom:calc(12px + var(--chat-booking-height,120px));}
}
@media (max-width:520px) {
  .eh-chat-panel {inset:auto 0 0;width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 8px);border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom);}
  .eh-chat-fields {padding:16px;gap:14px;}
  .eh-chat-head {padding:14px 16px;}
}
@media (max-width:355px) {.eh-chat-contact {grid-template-columns:1fr;}}
