/* Rubriva — chat do website */
.rchat { --c-b: #6D1A2C; --c-b9: #4A0E1C; --c-b3: #C98A97; --c-b1: #F5E6E9; --c-ink: #1E1215; --c-muted: #6B5A5E; --c-line: rgba(109, 26, 44, .14);
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 790; font-family: "Inter", system-ui, sans-serif; }
.rchat__launcher { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--c-b); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(46, 8, 18, .32); transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .2s; position: relative; margin-left: auto; }
.rchat__launcher:hover { transform: translateY(-2px) scale(1.04); background: var(--c-b9); }
.rchat__launcher:focus-visible { outline: 3px solid var(--c-b3); outline-offset: 3px; }
.rchat__launcher svg { width: 28px; height: 28px; }
.rchat.is-open .rchat__launcher svg { display: none; }
.rchat.is-open .rchat__launcher::before { content: "×"; font-size: 34px; line-height: 1; }
.rchat__badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--c-b);
  font: 700 12px/22px "Inter", sans-serif; box-shadow: 0 0 0 2px var(--c-b); }
.rchat__panel { position: absolute; right: 0; bottom: 76px; width: min(380px, calc(100vw - 36px)); height: min(600px, calc(100vh - 120px)); background: #fff;
  border-radius: 20px; box-shadow: 0 24px 60px rgba(46, 8, 18, .28); display: flex; flex-direction: column; overflow: hidden; animation: rchat-in .35s cubic-bezier(.22, 1, .36, 1); }
.rchat__panel[hidden] { display: none; }
@keyframes rchat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.rchat__head { background: var(--c-b); color: #fff; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; }
.rchat__mark { width: 34px; height: 34px; flex: none; }
.rchat__title { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rchat__title strong { font: 600 18px/1.1 "Fraunces", Georgia, serif; }
.rchat__status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-b1); }
.rchat__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-b3); }
.rchat.is-online .rchat__status i { background: #6EE7A1; box-shadow: 0 0 0 3px rgba(110, 231, 161, .25); }
.rchat__close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.rchat__close:hover { background: rgba(255, 255, 255, .12); }
.rchat__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FBF7F8; overscroll-behavior: contain; }
.rchat__msg { display: grid; gap: 3px; max-width: 86%; justify-items: start; }
.rchat__bubble { padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; color: var(--c-ink); overflow-wrap: anywhere; }
.rchat__bubble a { color: inherit; text-decoration: underline; }
.rchat__msg--bot .rchat__bubble { background: var(--c-b1); border-bottom-left-radius: 4px; }
.rchat__msg--agent .rchat__bubble { background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 4px; }
.rchat__msg--visitor { align-self: flex-end; justify-items: end; }
.rchat__msg--visitor .rchat__bubble { background: var(--c-b); color: #fff; border-bottom-right-radius: 4px; }
.rchat__msg--error .rchat__bubble { background: #FCE8EC; color: #7A1023; }
.rchat__who { font-size: 12px; font-weight: 600; color: var(--c-b); padding-left: 4px; }
.rchat__time { font-size: 11px; color: var(--c-muted); padding: 0 4px; }
.rchat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: #fff; border-top: 1px solid var(--c-line); max-height: 40%; overflow-y: auto; }
.rchat__quick[hidden] { display: none; }
.rchat__quick button { border: 1.5px solid var(--c-b); background: #fff; color: var(--c-b); border-radius: 999px; padding: 8px 13px; font: 600 13px/1.2 "Inter", sans-serif; cursor: pointer; }
.rchat__quick button:hover:not(:disabled) { background: var(--c-b); color: #fff; }
.rchat__quick button:disabled { opacity: .5; cursor: progress; }
.rchat__quick:not([hidden]) + .rchat__form[hidden] + .rchat__foot { padding-top: 10px; }
.rchat__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 6px; background: #fff; border-top: 1px solid var(--c-line); }
.rchat__quick:not([hidden]) + .rchat__form { border-top: 0; }
.rchat__form[hidden] { display: none; }
.rchat__form textarea { flex: 1; resize: none; border: 1px solid var(--c-line); border-radius: 14px; padding: 10px 12px; font: 15px/1.4 "Inter", sans-serif; color: var(--c-ink); background: #fff; min-height: 42px; max-height: 120px; }
.rchat__form textarea:focus { outline: 2px solid var(--c-b3); outline-offset: 1px; }
.rchat__form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--c-b); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.rchat__form button svg { width: 20px; height: 20px; }
.rchat__form.is-sending button { opacity: .5; }
.rchat__foot { margin: 0; padding: 4px 14px 12px; font-size: 11.5px; color: var(--c-muted); background: #fff; text-align: center; }
.rchat__restart { background: none; border: 0; padding: 0; font: inherit; color: var(--c-b); text-decoration: underline; cursor: pointer; }
.rchat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 520px) {
  .rchat__panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; }
  .rchat.is-open .rchat__launcher { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rchat__panel { animation: none; } .rchat__launcher { transition: none; } }
.has-cursor .rchat textarea { cursor: text; }
