/* ============================================================
   Hangouts Chat — floating assistant
   ============================================================ */
.rh-chat,
.rh-chat *{box-sizing:border-box}

.rh-chat-launcher{
  position:fixed;right:24px;bottom:24px;z-index:99999;
  display:inline-flex;align-items:center;gap:10px;
  min-height:56px;padding:0 20px;border:2px solid transparent;border-radius:999px;
  background:var(--ink,#000000);color:var(--cream-2,#FFFFFF);
  font-family:var(--body,"DM Sans",system-ui,sans-serif);
  font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;
  box-shadow:0 18px 40px -18px rgba(0,0,0,.55);
  transition:background .18s ease,transform .18s ease;
}
.rh-chat-launcher:hover{background:var(--tangerine,#FF6A00);color:var(--ink,#000000);transform:translateY(-2px)}
.rh-chat-launcher svg{width:22px;height:22px;flex:0 0 22px}

.rh-chat-panel{
  position:fixed;right:24px;bottom:92px;z-index:99999;
  display:flex;flex-direction:column;
  width:min(390px,calc(100vw - 32px));
  height:min(620px,calc(100dvh - 120px));
  background:var(--cream-2,#FFFFFF);
  border:1px solid var(--line,#DEDEDE);border-radius:24px;
  box-shadow:0 30px 80px -24px rgba(0,0,0,.55);
  overflow:hidden;color:var(--ink,#000000);
  font-family:var(--body,"DM Sans",system-ui,sans-serif);
}
.rh-chat-panel[hidden]{display:none}

.rh-chat-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 18px;background:var(--ink,#000000);color:var(--cream-2,#FFFFFF);
  flex:0 0 auto;
}
.rh-chat-head-copy{display:flex;align-items:center;gap:10px;min-width:0}
.rh-chat-status{
  width:9px;height:9px;border-radius:50%;flex:0 0 9px;
  background:#22C55E;box-shadow:0 0 0 4px rgba(34,197,94,.18);
}
.rh-chat-head h2{
  margin:0;font-family:var(--rh-display,"Bricolage Grotesque",Georgia,serif);
  font-size:19px;font-weight:800;letter-spacing:-.01em;line-height:1.1;color:inherit;
}
.rh-chat-head p{margin:3px 0 0;font-size:11px;line-height:1.3;color:var(--on-dark-muted,#B8B8B8)}
.rh-chat-head-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.rh-chat-new{
  min-height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.35);
  border-radius:999px;background:transparent;color:inherit;
  font:600 11px var(--body,"DM Sans",system-ui,sans-serif);cursor:pointer;
}
.rh-chat-new:hover{background:rgba(255,255,255,.12)}
.rh-chat-close{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border:0;border-radius:50%;background:transparent;
  color:inherit;font-size:26px;line-height:1;cursor:pointer;
}
.rh-chat-close:hover{background:rgba(255,255,255,.12)}

.rh-chat-messages{
  flex:1 1 auto;overflow-y:auto;
  display:flex;flex-direction:column;gap:10px;
  padding:16px 16px 8px;background:var(--cream-2,#FFFFFF);
}
.rh-chat-msg{display:flex;width:100%}
.rh-chat-msg-user{justify-content:flex-end}
.rh-chat-msg-assistant{justify-content:flex-start}
.rh-chat-bubble{
  max-width:86%;padding:11px 14px;border-radius:16px;
  font-size:14.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;
}
.rh-chat-msg-user .rh-chat-bubble{
  background:var(--ink,#000000);color:var(--cream-2,#FFFFFF);border-bottom-right-radius:5px;
}
.rh-chat-msg-assistant .rh-chat-bubble{
  background:#fff;color:var(--ink-2,#262626);
  border:1px solid var(--line,#DEDEDE);border-bottom-left-radius:5px;
}
.rh-chat-typing{display:inline-flex;align-items:center;gap:5px;min-height:22px}
.rh-chat-typing span{
  width:6px;height:6px;border-radius:50%;background:var(--muted,#555555);
  animation:rh-chat-bounce 1.1s infinite ease-in-out;
}
.rh-chat-typing span:nth-child(2){animation-delay:.15s}
.rh-chat-typing span:nth-child(3){animation-delay:.3s}
@keyframes rh-chat-bounce{
  0%,80%,100%{transform:translateY(0);opacity:.45}
  40%{transform:translateY(-4px);opacity:1}
}

.rh-chat-suggestions{
  display:flex;flex-wrap:wrap;gap:8px;
  padding:4px 16px 10px;background:var(--cream-2,#FFFFFF);
}
.rh-chat-suggestions:empty{display:none}
.rh-chat-chip{
  padding:8px 12px;border:1px solid var(--line,#DEDEDE);border-radius:999px;
  background:#fff;color:var(--ink,#000000);
  font:600 12px var(--body,"DM Sans",system-ui,sans-serif);
  text-align:left;cursor:pointer;
}
.rh-chat-chip:hover{border-color:var(--ink,#000000)}

.rh-chat-form{
  display:flex;align-items:flex-end;gap:8px;flex:0 0 auto;
  padding:12px 14px;background:#fff;border-top:1px solid var(--line,#DEDEDE);
}
.rh-chat-form textarea{
  flex:1 1 auto;min-width:0;min-height:44px;max-height:120px;resize:none;
  padding:11px 13px;border:1px solid var(--line,#DEDEDE);border-radius:14px;
  background:var(--cream-2,#FFFFFF);color:var(--ink,#000000);
  font:400 14.5px/1.4 var(--body,"DM Sans",system-ui,sans-serif);outline:none;
}
.rh-chat-form textarea:focus{border-color:var(--tangerine,#FF6A00);box-shadow:0 0 0 3px rgba(255,106,0,.15)}
.rh-chat-form textarea:disabled{opacity:.6}
.rh-chat-send{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;
  background:var(--tangerine,#FF6A00);color:var(--ink,#000000);
  cursor:pointer;transition:background .18s ease,color .18s ease;
}
.rh-chat-send:hover{background:var(--ink,#000000);color:var(--cream-2,#FFFFFF)}
.rh-chat-send:disabled{opacity:.5;cursor:default}
.rh-chat-send svg{width:20px;height:20px}

.rh-chat-note{
  margin:0;padding:0 16px 12px;background:#fff;
  font-size:10.5px;line-height:1.4;color:var(--muted,#555555);text-align:center;
}
.rh-chat-note a{color:var(--muted,#555555);text-decoration:underline}

.rh-chat-sr-only{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}

@media (max-width:640px){
  body.rh-chat-open{overflow:hidden}
  .rh-chat-launcher{right:14px;bottom:14px;min-height:52px;padding:0 16px;font-size:14px}
  .rh-chat-panel{
    right:0;bottom:0;width:100%;height:100dvh;max-height:none;
    border-radius:0;border:0;
  }
  .rh-chat-head{padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top))}
  .rh-chat-form{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}

@media (prefers-reduced-motion:reduce){
  .rh-chat-launcher,.rh-chat-send{transition:none}
  .rh-chat-typing span{animation:none}
}

/* ---------- reset Elementor/theme button + link styles inside the widget ---------- */
.rh-chat button,
.rh-chat a{
  text-decoration:none;
  box-shadow:none;
  text-shadow:none;
  font-family:var(--body,"DM Sans",system-ui,sans-serif);
  -webkit-appearance:none;
  appearance:none;
}
.rh-chat .rh-chat-launcher{
  background:var(--ink,#000000);
  color:var(--cream-2,#FFFFFF);
  border:2px solid transparent;
}
.rh-chat .rh-chat-launcher:hover{background:var(--tangerine,#FF6A00);color:var(--ink,#000000)}
.rh-chat .rh-chat-new{
  background:transparent;
  border:1px solid rgba(255,255,255,.35);
  color:var(--cream-2,#FFFFFF);
}
.rh-chat .rh-chat-new:hover{background:rgba(255,255,255,.12);color:var(--cream-2,#FFFFFF)}
.rh-chat .rh-chat-close{
  background:transparent;
  border:0;
  color:var(--cream-2,#FFFFFF);
}
.rh-chat .rh-chat-close:hover{background:rgba(255,255,255,.12)}
.rh-chat .rh-chat-chip{
  background:#fff;
  border:1px solid var(--line,#DEDEDE);
  color:var(--ink,#000000);
}
.rh-chat .rh-chat-chip:hover{border-color:var(--ink,#000000);color:var(--ink,#000000);background:#fff}
.rh-chat .rh-chat-send{
  background:var(--tangerine,#FF6A00);
  color:var(--ink,#000000);
  border:0;
}
.rh-chat .rh-chat-send:hover{background:var(--ink,#000000);color:var(--cream-2,#FFFFFF)}
.rh-chat .rh-chat-note a{color:var(--muted,#555555)}
.rh-chat .rh-chat-note a:hover{color:var(--accent,#C2410C)}
.rh-chat .rh-chat-head h2{font-size:17px;white-space:nowrap}

/* links inside messages */
.rh-chat-bubble a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  word-break:break-word;
}
.rh-chat-msg-user .rh-chat-bubble a{color:var(--cream-2,#FFFFFF)}
.rh-chat-msg-assistant .rh-chat-bubble a{color:var(--accent,#C2410C)}
