/* RufDiamond "Chat with us". Uses the site variables, with fallbacks for pages that lack them. */
.rdc{display:flex;flex-direction:column;gap:.6rem;margin:.4rem 0 .8rem;font-family:var(--font-b,system-ui,sans-serif)}
.rdc-list{max-height:min(52vh,420px);min-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem;padding:.6rem;
  background:var(--in-bg,#0f1012);border:1px solid var(--in-bd,#4a4f57);border-radius:var(--rad,3px)}
.rdc-msg{max-width:88%;padding:.55rem .7rem;border-radius:var(--rad,3px);line-height:1.45;font-size:.95rem;overflow-wrap:anywhere;white-space:normal}
.rdc-team{align-self:flex-start;background:var(--pan-hl,#2a2d33);color:var(--pan-fg,#f2f1ec)}
.rdc-me{align-self:flex-end;background:var(--acc,#f5c400);color:var(--acc-fg,#111)}
.rdc-note{align-self:stretch;font-size:.85rem;color:var(--pan-fg,#f2f1ec);opacity:.8;margin:0}
.rdc-msg a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.rdc-team a{color:var(--acc,#f5c400)}
.rdc-wait{display:flex;gap:4px;padding:.7rem}
.rdc-wait span{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.4;animation:rdc-b 1s infinite}
.rdc-wait span:nth-child(2){animation-delay:.15s}.rdc-wait span:nth-child(3){animation-delay:.3s}
@keyframes rdc-b{50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.rdc-wait span{animation:none}}
.rdc-bar{display:flex;gap:.5rem;align-items:stretch}
.rdc-in{flex:1;resize:none;font:inherit;font-size:1rem;padding:.55rem .65rem;background:var(--in-bg,#0f1012);color:var(--in-fg,#f2f1ec);
  border:1px solid var(--in-bd,#4a4f57);border-radius:var(--rad,3px)}
.rdc-in:focus,.rdc-lead input:focus{outline:2px solid var(--acc,#f5c400);outline-offset:1px}
.rdc-send{white-space:nowrap}
.rdc-more{align-self:flex-start;background:none;border:0;padding:0;color:var(--acc,#f5c400);text-decoration:underline;cursor:pointer;font:inherit;font-size:.9rem}
.rdc-lead{align-self:stretch;display:grid;gap:.45rem;padding:.7rem;background:var(--pan-bg,#1b1d21);border:1px solid var(--acc,#f5c400);border-radius:var(--rad,3px);color:var(--pan-fg,#f2f1ec)}
.rdc-ft{margin:0 0 .2rem;font-weight:600}
.rdc-f{display:grid;gap:.2rem}.rdc-f label{font-size:.85rem}.rdc-f small{opacity:.7}
.rdc-lead input{font:inherit;padding:.45rem .55rem;background:var(--in-bg,#0f1012);color:var(--in-fg,#f2f1ec);border:1px solid var(--in-bd,#4a4f57);border-radius:var(--rad,3px)}
.rdc-priv{font-size:.8rem;margin:.1rem 0;opacity:.85}.rdc-priv a{color:var(--acc,#f5c400)}
.rdc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.rdc-lead .rdc-note:empty{display:none}
.rdc-dlg{max-width:min(480px,94vw);background:var(--pan-bg,#1b1d21);color:var(--pan-fg,#f2f1ec);border:0;border-radius:var(--rad,3px)}
/* floating bubble: bottom right on every page. Desktop: 1rem from the corner (Back to top sits above it at 5.5rem).
   Under 900px: sits above the mobile bottom bar (61px), and Back to top moves up above the bubble. Preview Feedback stays bottom left. */
.has-rdc .ask-fab{display:none!important}
.rdc-bubble{position:fixed;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:88;display:inline-flex;align-items:center;gap:.5rem;
  min-height:56px;padding:.7rem 1.15rem .7rem .95rem;border:0;border-radius:28px 28px 6px 28px;background:var(--acc,#f5c400);color:var(--acc-fg,#111);
  font:700 1rem var(--font-b,system-ui,sans-serif);box-shadow:0 8px 24px rgba(0,0,0,.35);cursor:pointer}
.rdc-bubble svg{width:24px;height:24px;flex:none}
.rdc-bubble:hover{filter:brightness(1.05)}
.rdc-bubble:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media (max-width:899px){
  .rdc-bubble{right:.75rem;bottom:calc(61px + .75rem + env(safe-area-inset-bottom));min-height:50px;padding:.6rem 1rem .6rem .85rem;font-size:.95rem}
  .has-rdc .to-top{bottom:calc(61px + .75rem + 50px + .75rem + env(safe-area-inset-bottom))!important}
}
@media (max-width:380px){.rdc-bubble span{display:none}.rdc-bubble{padding:.75rem;border-radius:50% 50% 6px 50%}}
@media print{.rdc-bubble{display:none!important}}
.rdc-dlg{padding:0}.rdc-dlg .ask-in{padding:1rem}.rdc-dlg::backdrop{background:rgba(0,0,0,.6)}
.rdc-x{float:right;background:none;border:0;color:inherit;font-size:1.6rem;line-height:1;cursor:pointer}
/* Quick actions under the input (Nov 18 2026): forms first, email as a small secondary link, compact on phones */
.rdc-on > .ask-soon,.rdc-on > p.btns,.rdc-on > p:has(> a[href^="mailto:"]){display:none!important}
.rdc-acts{display:flex;gap:.5rem}
.rdc-acts .btn{flex:1 1 0;min-height:42px;padding:.5rem .6rem;font-size:.8rem;line-height:1.15;text-align:center;justify-content:center;display:inline-flex;align-items:center;margin:0}
.rdc-sub{display:flex;flex-wrap:wrap;gap:.35rem 1.2rem;align-items:center;margin:0;font-size:.9rem}
.rdc-sub .rdc-more{align-self:auto}
.rdc-mail{color:var(--pan-fg,#f2f1ec);opacity:.85;text-decoration:underline;text-underline-offset:2px}
@media (max-width:899px){
  .rdc-on{padding:1rem .9rem .9rem}
  .rdc-on h2{font-size:1.2rem;margin-bottom:.4rem}
  .rdc{gap:.45rem;margin:.2rem 0 0}
  .rdc-list{max-height:min(48vh,400px)}
  .rdc-in{padding:.45rem .55rem}
  .rdc-acts .btn{min-height:40px;font-size:.75rem;letter-spacing:.03em}
}
