/*!
 * Eusbett Concierge — chat assistant styles (navy & gold, mobile-first sheet).
 */
.eh-chat {
  --eh-c-navy: var(--eh-navy, #0A111F);
  --eh-c-navy-2: #132036;
  --eh-c-gold: var(--eh-gold, #C9A35E);
  --eh-c-gold-2: var(--eh-gold-2, #E8CF98);
  --eh-c-gold-d: var(--eh-gold-d, #9E7A3B);
  --eh-c-cream: var(--eh-cream, #FAF6EF);
  --eh-c-ease: cubic-bezier(.22, .8, .24, 1);
  --eh-chat-vh: 100dvh;
  --eh-chat-top: 0px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--eh-c-navy);
  -webkit-font-smoothing: antialiased;
}
.eh-chat *, .eh-chat *::before, .eh-chat *::after { box-sizing: border-box; }
.eh-chat button { font: inherit; cursor: pointer; }
.eh-chat svg { width: 18px; height: 18px; flex: none; }
.eh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Launcher (bottom-left, clear of WhatsApp & back-to-top) ---------------- */
.eh-chat-launcher {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9985;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 8px;
  border: 1px solid rgba(232, 207, 152, .35);
  border-radius: 999px;
  background: linear-gradient(135deg, #16243b 0%, var(--eh-c-navy) 70%);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(10, 17, 31, .7), 0 0 0 0 rgba(201, 163, 94, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .35s var(--eh-c-ease), box-shadow .35s var(--eh-c-ease), opacity .3s, visibility .3s, bottom .35s var(--eh-c-ease);
  animation: ehChatPulse 3.2s var(--eh-c-ease) 2.5s 3;
}
.eh-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -14px rgba(10, 17, 31, .75), inset 0 1px 0 rgba(255, 255, 255, .1); }
.eh-chat-launcher:focus-visible { outline: 3px solid var(--eh-c-gold-2); outline-offset: 3px; }
.eh-chat-launcher-ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--eh-c-gold-2), var(--eh-c-gold));
  color: var(--eh-c-navy);
  box-shadow: inset 0 -2px 6px rgba(158, 122, 59, .35);
  transition: transform .35s var(--eh-c-ease), opacity .25s;
}
.eh-chat-launcher-ico svg { width: 22px; height: 22px; }
.eh-chat-ico-close { position: absolute; left: 8px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.eh-chat.is-open .eh-chat-ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.eh-chat.is-open .eh-chat-ico-close { opacity: 1; transform: none; }
.eh-chat-launcher-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.eh-chat-launcher-txt strong { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.eh-chat-launcher-txt span { font-size: 11.5px; color: var(--eh-c-gold-2); font-weight: 500; letter-spacing: .04em; }
.eh-chat-dot {
  position: absolute; left: 41px; top: 9px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--eh-c-navy);
}
.eh-chat-badge {
  position: absolute; top: -6px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #e5484d; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 6px 14px -4px rgba(229, 72, 77, .6);
}
.eh-chat-badge[hidden] { display: none; }
@keyframes ehChatPulse {
  0%, 100% { box-shadow: 0 18px 40px -14px rgba(10, 17, 31, .7), 0 0 0 0 rgba(201, 163, 94, .5); }
  50% { box-shadow: 0 18px 40px -14px rgba(10, 17, 31, .7), 0 0 0 12px rgba(201, 163, 94, 0); }
}

/* ---------------- Nudge bubble ---------------- */
.eh-chat-nudge {
  position: fixed; left: 22px; bottom: 94px; z-index: 9984;
  width: min(320px, calc(100vw - 44px));
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: bottom left;
  transition: opacity .35s var(--eh-c-ease), transform .35s var(--eh-c-ease);
  pointer-events: none;
}
.eh-chat-nudge.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.eh-chat-nudge[hidden] { display: none; }
.eh-chat-nudge-body {
  display: flex; gap: 12px; align-items: flex-start; width: 100%;
  padding: 14px 38px 14px 14px; border: 1px solid rgba(201, 163, 94, .28); border-radius: 18px 18px 18px 6px;
  background: #fff; color: var(--eh-c-navy); text-align: left;
  box-shadow: 0 22px 44px -18px rgba(10, 17, 31, .45);
}
.eh-chat-nudge-av { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid rgba(10, 17, 31, .08); padding: 3px; flex: none; }
.eh-chat-nudge-body strong { display: block; font-size: 14px; margin-bottom: 2px; }
.eh-chat-nudge-body span span { display: block; font-size: 13px; line-height: 1.45; color: #4a5568; }
.eh-chat-nudge-x {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(10, 17, 31, .06); color: #4a5568;
  display: inline-flex; align-items: center; justify-content: center;
}
.eh-chat-nudge-x svg { width: 14px; height: 14px; }

/* ---------------- Panel ---------------- */
.eh-chat-scrim { display: none; }
.eh-chat-panel {
  position: fixed; left: 22px; bottom: 94px; z-index: 9990;
  width: 400px; height: min(680px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: var(--eh-c-cream);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 94, .25);
  box-shadow: 0 40px 90px -30px rgba(10, 17, 31, .55), 0 0 0 1px rgba(10, 17, 31, .04);
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom left;
  transition: opacity .32s var(--eh-c-ease), transform .32s var(--eh-c-ease);
}
.eh-chat-panel.is-visible { opacity: 1; transform: none; }
.eh-chat-panel[hidden] { display: none; }

.eh-chat-head {
  position: relative; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 14px 16px 18px;
  background: radial-gradient(120% 140% at 0% 0%, #1d2f4d 0%, var(--eh-c-navy) 60%);
  color: #fff;
}
.eh-chat-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--eh-c-gold), transparent);
  opacity: .7;
}
.eh-chat-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.eh-chat-av { position: relative; width: 44px; height: 44px; flex: none; }
.eh-chat-av img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; padding: 4px; box-shadow: 0 0 0 2px rgba(232, 207, 152, .55); }
.eh-chat-av i { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--eh-c-navy); }
.eh-chat-id-txt { display: flex; flex-direction: column; min-width: 0; }
.eh-chat-id-txt strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 700; letter-spacing: .005em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eh-chat-id-txt span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .72); margin-top: 3px; white-space: nowrap; }
.eh-chat-live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ehChatLive 2s infinite; }
@keyframes ehChatLive { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.eh-chat-head-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.eh-chat-hbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: var(--eh-c-gold-2);
  text-decoration: none; transition: background-color .2s, color .2s, transform .2s;
}
.eh-chat-hbtn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.eh-chat-hbtn:focus-visible { outline: 2px solid var(--eh-c-gold-2); outline-offset: 2px; }
.eh-chat-hbtn svg { width: 17px; height: 17px; }
.eh-chat-hbtn--wa { color: #4ade80; }
.eh-chat-hbtn--close { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------------- Message log ---------------- */
.eh-chat-log {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 163, 94, .08), transparent 45%),
    var(--eh-c-cream);
  scrollbar-width: thin; scrollbar-color: rgba(10, 17, 31, .18) transparent;
}
.eh-chat-log:focus { outline: none; }
.eh-msg { display: flex; max-width: 100%; }
.eh-msg.is-new { animation: ehMsgIn .38s var(--eh-c-ease) both; }
@keyframes ehMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eh-msg--bot { justify-content: flex-start; }
.eh-msg--user { justify-content: flex-end; }
.eh-msg--wide { display: block; }
.eh-bubble {
  max-width: 86%;
  padding: 11px 14px;
  font-size: 14.5px; line-height: 1.55;
  border-radius: 18px;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.eh-msg--bot .eh-bubble {
  background: #fff; color: #1f2937;
  border: 1px solid rgba(10, 17, 31, .06);
  border-bottom-left-radius: 6px;
  box-shadow: 0 6px 18px -12px rgba(10, 17, 31, .3);
}
.eh-msg--bot .eh-bubble strong { color: var(--eh-c-navy); font-weight: 700; }
.eh-msg--user .eh-bubble {
  background: linear-gradient(135deg, var(--eh-c-navy-2), var(--eh-c-navy));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px -10px rgba(10, 17, 31, .55);
}
.eh-typing .eh-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.eh-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--eh-c-gold); opacity: .4; animation: ehDot 1.2s infinite; }
.eh-typing i:nth-child(2) { animation-delay: .15s; }
.eh-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ehDot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* ---------------- Room & venue cards (swipe rail) ---------------- */
.eh-cc-rail {
  display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  margin: 0 -14px; padding: 2px 14px 8px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.eh-cc-rail::-webkit-scrollbar { display: none; }
.eh-cc, .eh-vc {
  flex: 0 0 236px; scroll-snap-align: start;
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(10, 17, 31, .07);
  box-shadow: 0 10px 24px -16px rgba(10, 17, 31, .4);
  display: flex; flex-direction: column;
}
.eh-cc-rail.is-single .eh-cc, .eh-cc-rail.is-single .eh-vc { flex-basis: 100%; }
.eh-cc-img, .eh-vc-img { position: relative; display: block; aspect-ratio: 16 / 10; background: #e9e3d8; overflow: hidden; }
.eh-cc-img img, .eh-vc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--eh-c-ease); }
.eh-cc:hover .eh-cc-img img, .eh-vc:hover .eh-vc-img img { transform: scale(1.04); }
.eh-cc-tag {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 17, 31, .78); color: var(--eh-c-gold-2);
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eh-cc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.eh-cc-body h4 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-weight: 700; color: var(--eh-c-navy); line-height: 1.15; }
.eh-cc-price { display: flex; flex-direction: column; }
.eh-cc-price b { font-size: 17px; font-weight: 800; color: var(--eh-c-gold-d); letter-spacing: -.01em; }
.eh-cc-price small { font-size: 11.5px; color: #6b7280; line-height: 1.4; }
.eh-cc-feats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.eh-cc-feats li { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--eh-c-cream); color: #374151; border: 1px solid rgba(201, 163, 94, .25); }
.eh-cc-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.eh-cc-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; border-radius: 12px;
  border: 1px solid rgba(10, 17, 31, .14); background: #fff;
  color: var(--eh-c-navy); font-size: 13px; font-weight: 700; text-decoration: none;
  transition: background-color .2s, transform .2s, border-color .2s;
}
.eh-cc-btn svg { width: 15px; height: 15px; }
.eh-cc-btn:hover { border-color: var(--eh-c-gold); transform: translateY(-1px); }
.eh-cc-btn--gold { background: linear-gradient(135deg, var(--eh-c-gold-2), var(--eh-c-gold)); border-color: transparent; color: var(--eh-c-navy); }
.eh-vc { text-decoration: none; color: inherit; }
.eh-vc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.eh-vc-body strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 700; color: var(--eh-c-navy); line-height: 1.15; }
.eh-vc-body small { font-size: 12px; color: #6b7280; }
.eh-vc-body em { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--eh-c-gold-d); }
.eh-vc-body em svg { width: 13px; height: 13px; }

/* ---------------- Contact box & action buttons ---------------- */
.eh-cbox {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(10, 17, 31, .07);
  box-shadow: 0 10px 24px -16px rgba(10, 17, 31, .4);
}
.eh-cbox-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; text-decoration: none; color: var(--eh-c-navy);
  transition: background-color .2s;
}
.eh-cbox-row + .eh-cbox-row { border-top: 1px solid rgba(10, 17, 31, .06); }
.eh-cbox-row:hover { background: #fbf8f2; }
.eh-cbox-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eh-cbox-row strong { font-size: 14px; font-weight: 700; }
.eh-cbox-row small { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-cbox-row > svg { width: 15px; height: 15px; color: #9ca3af; }
.eh-cbox-ico {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eh-c-cream); color: var(--eh-c-gold-d);
}
.eh-cbox-row--wa .eh-cbox-ico { background: #dcfce7; color: #16a34a; }
.eh-acts { display: flex; flex-direction: column; gap: 8px; }
.eh-act {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 16px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(10, 17, 31, .12);
  color: var(--eh-c-navy); font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.eh-act:hover { transform: translateY(-1px); border-color: var(--eh-c-gold); box-shadow: 0 10px 20px -14px rgba(10, 17, 31, .4); }
.eh-act--primary { background: linear-gradient(135deg, var(--eh-c-navy-2), var(--eh-c-navy)); color: #fff; border-color: transparent; }
.eh-act--primary svg { color: var(--eh-c-gold-2); }
.eh-act--wa { background: #1faf55; color: #fff; border-color: transparent; }

/* ---------------- Date picker ---------------- */
.eh-dp { background: #fff; border-radius: 18px; padding: 12px; border: 1px solid rgba(10, 17, 31, .07); box-shadow: 0 10px 24px -16px rgba(10, 17, 31, .4); }
.eh-dp-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eh-dp-quick button {
  height: 40px; border-radius: 12px; border: 1px solid rgba(10, 17, 31, .12); background: var(--eh-c-cream);
  font-size: 13.5px; font-weight: 700; color: var(--eh-c-navy); transition: border-color .2s, background-color .2s;
}
.eh-dp-quick button:hover { border-color: var(--eh-c-gold); background: #fff; }
.eh-dp-pick {
  position: relative; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--eh-c-gold-2), var(--eh-c-gold));
  color: var(--eh-c-navy); font-size: 14px; font-weight: 800; cursor: pointer; overflow: hidden;
}
.eh-dp-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.eh-dp-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---------------- Quick replies, input, footer ---------------- */
.eh-chat-quick {
  flex: none; display: flex; gap: 8px;
  padding: 8px 14px 4px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--eh-c-cream);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.eh-chat-quick::-webkit-scrollbar { display: none; }
.eh-chat-quick[hidden] { display: none; }
.eh-chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(158, 122, 59, .45); background: #fff;
  color: var(--eh-c-navy); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.eh-chip:hover { background: var(--eh-c-navy); color: var(--eh-c-gold-2); border-color: var(--eh-c-navy); transform: translateY(-1px); }
.eh-chip:last-child { margin-right: 24px; }
.eh-chat-form {
  flex: none; display: flex; align-items: flex-end; gap: 8px;
  margin: 6px 12px 0; padding: 6px 6px 6px 16px;
  background: #fff; border-radius: 24px;
  border: 1px solid rgba(10, 17, 31, .12);
  box-shadow: 0 8px 20px -14px rgba(10, 17, 31, .35);
  transition: border-color .2s, box-shadow .2s;
}
.eh-chat-form:focus-within { border-color: var(--eh-c-gold); box-shadow: 0 0 0 4px rgba(201, 163, 94, .15); }
.eh-chat-input {
  flex: 1; min-width: 0; resize: none; border: 0 !important; outline: none !important; box-shadow: none !important;
  background: transparent !important; padding: 9px 0 !important; margin: 0;
  font: 500 15px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--eh-c-navy);
  max-height: 112px; min-height: 22px;
}
.eh-chat-input::placeholder { color: #9ca3af; }
.eh-chat-send {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--eh-c-gold-2), var(--eh-c-gold));
  color: var(--eh-c-navy); transition: transform .2s, opacity .2s;
}
.eh-chat-send:disabled { opacity: .4; cursor: default; }
.eh-chat-send:not(:disabled):hover { transform: scale(1.06); }
.eh-chat-send svg { width: 17px; height: 17px; margin-left: 2px; }
.eh-chat-foot {
  flex: none; margin: 0; padding: 8px 14px 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; color: #8a8f98; letter-spacing: .02em;
}
.eh-chat-foot svg { width: 12px; height: 12px; color: var(--eh-c-gold); }

/* ---------------- Coexistence with other floating UI ---------------- */
body.eh-chat-open .eh-wa-fab,
body.eh-chat-open .eh-scroll-top,
body.eh-chat-open .eh-shortlist-bar { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
body.eh-menu-open .eh-chat-launcher,
body.eh-qv-open .eh-chat-launcher,
body.eh-lb-open .eh-chat-launcher,
body.eh-fsheet-open .eh-chat-launcher,
body.eh-cx-open .eh-chat-launcher,
body.eh-menu-open .eh-chat-nudge,
body.eh-qv-open .eh-chat-nudge,
body.eh-lb-open .eh-chat-nudge { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* ---------------- Tablet ---------------- */
@media (max-width: 1024px) and (min-width: 768px) {
  .eh-chat-launcher { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 16px; }
  .eh-chat-nudge { bottom: calc(154px + env(safe-area-inset-bottom, 0px)); left: 16px; }
  .eh-chat-panel { left: 16px; bottom: calc(154px + env(safe-area-inset-bottom, 0px)); height: min(640px, calc(100vh - 240px)); }
}

/* ---------------- Phones: compact launcher + full-screen sheet ---------------- */
@media (max-width: 767px) {
  .eh-chat-launcher {
    left: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    height: 54px; width: 54px; padding: 0; justify-content: center; gap: 0;
  }
  .eh-chat-launcher-ico { width: 54px; height: 54px; background: linear-gradient(135deg, #16243b, var(--eh-c-navy)); color: var(--eh-c-gold-2); box-shadow: none; }
  .eh-chat-launcher-ico svg { width: 24px; height: 24px; }
  .eh-chat-ico-close { left: 0; }
  .eh-chat-launcher-txt { display: none; }
  .eh-chat-dot { left: auto; right: 2px; top: 2px; }
  body.eh-scroll-down .eh-chat-launcher { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
  body.eh-has-saved .eh-chat-launcher { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  body.eh-chat-open .eh-chat-launcher { opacity: 0; visibility: hidden; pointer-events: none; }

  .eh-chat-nudge { left: 14px; bottom: calc(148px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 92px); }
  body.eh-scroll-down .eh-chat-nudge { opacity: 0; pointer-events: none; }

  .eh-chat-scrim { display: block; position: fixed; inset: 0; z-index: 9989; background: rgba(10, 17, 31, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .eh-chat.is-open .eh-chat-scrim { opacity: 1; pointer-events: auto; }
  .eh-chat-panel {
    left: 0; right: 0; bottom: auto; top: var(--eh-chat-top);
    width: 100%; height: var(--eh-chat-vh); max-height: none;
    border-radius: 0; border: 0;
    transform: translateY(24px); transform-origin: bottom center;
  }
  .eh-chat-head { padding: calc(12px + env(safe-area-inset-top, 0px)) 10px 12px 14px; }
  .eh-chat-id-txt strong { font-size: 19px; }
  .eh-chat-av, .eh-chat-av img { width: 40px; height: 40px; }
  .eh-chat-hbtn { width: 36px; height: 36px; }
  .eh-chat-log { padding: 14px 12px 6px; }
  .eh-bubble { max-width: 90%; font-size: 15px; }
  .eh-cc, .eh-vc { flex-basis: 78%; }
  .eh-cc-rail { margin: 0 -12px; padding: 2px 12px 8px; }
  .eh-chat-form { margin: 6px 10px 0; }
  .eh-chat-input { font-size: 16px; } /* 16px stops iOS from zooming in */
  .eh-chat-foot { padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  .eh-chat-hbtn[href^="tel"] { display: none; }
}
html.eh-chat-lock, html.eh-chat-lock body { overflow: hidden !important; overscroll-behavior: none; }

/* ---------------- Motion & print ---------------- */
@media (prefers-reduced-motion: reduce) {
  .eh-chat *, .eh-chat-launcher { animation: none !important; transition-duration: .01ms !important; }
}
@media print { .eh-chat { display: none !important; } }

