dialog{border:1px solid #dfd2e3;border-radius:18px;padding:0;width:min(470px,calc(100% - 24px));max-height:90dvh;color:var(--ink);box-shadow:0 25px 90px #29123640}dialog::backdrop{background:#1f102a80}.chathead{background:#291236;color:white;display:flex;justify-content:space-between;align-items:center;padding:20px 24px}.chathead small{display:block;color:#d8c9df;font-size:12px}.chathead button{background:none;color:white;border:0;font-size:28px;cursor:pointer}#chat-messages{padding:22px;max-height:48dvh;overflow:auto;background:#faf8fb;min-height:180px}.bubble{padding:13px 16px;border-radius:13px;background:#eee3f1;margin:0 24px 12px 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{background:#fff1ba;margin:0 0 12px 24px}.bubble b{display:block;font-size:11px;margin-bottom:5px}.choices{display:grid;gap:8px;margin:10px 0 18px}.choices button,.choices a{font:inherit;text-align:left;border:1px solid #cdb8d6;background:white;color:#713080;padding:12px 14px;border-radius:10px;cursor:pointer;font-size:13px}.choices button:disabled{opacity:.5;cursor:default}#chat-form{padding:16px 22px;background:white}#chat-form label{font-size:12px;display:block;margin-bottom:6px}.chat-entry{display:flex;gap:8px}.chat-entry input{min-width:0;flex:1;padding:12px;border-radius:8px;border:1px solid #cdb8d6;font:inherit}.chat-entry button{background:#713080;color:white;border:0;border-radius:8px;padding:12px;font-weight:700;cursor:pointer}.chatbottom{display:flex;justify-content:space-between;gap:12px;padding:0 22px 18px;font-size:10px;color:var(--muted)}.chatbottom button{background:none;border:0;color:#713080;text-decoration:underline;cursor:pointer;font-size:11px}dialog button:focus-visible,dialog input:focus-visible{outline:3px solid #ffc414;outline-offset:2px}

/* Acolhimento com tons claros da marca. */
dialog{border-color:#e9e0ed;box-shadow:0 22px 75px #40244c24;border-radius:22px;background:white}dialog::backdrop{background:#39254130;backdrop-filter:blur(3px)}.chathead{background:#f2ebf7;color:#553260;padding:18px 22px;gap:12px;border-bottom:1px solid #e8dfed}.chathead>div{flex:1}.chathead small{color:#7d6987;margin-top:3px}.chathead button{color:#80668b}.chathead strong{font-size:16px}#chat-messages{background:#fdfbfe}.bubble{background:#f1eaf6;border:1px solid #e9e1f0;border-radius:16px;padding-left:54px;position:relative;min-height:64px}.bubble.user{padding-left:16px;background:#fff8df;border-color:#f3e9c5}.message-avatar{position:absolute;left:12px;top:13px;width:32px;height:32px;border-radius:50%}.agent-avatar{border-radius:50%;object-fit:cover;flex-shrink:0}.button-avatar{width:34px;height:34px}.navcontact[data-chat-open],.secondary[data-chat-open]{display:inline-flex;align-items:center;gap:9px}.navcontact .button-avatar{width:27px;height:27px}.secondary .button-avatar{width:29px;height:29px}.header-avatar{border:2px solid white}.chat-entry button{background:#9065a3}.chat-entry input{border-color:#ded0e5;background:#fffeff}.choices button,.choices a{border-color:#e4d7eb;color:#704a80;background:#fff}.choices button:hover,.choices a:hover{background:#f7f1fa}dialog button:focus-visible,dialog input:focus-visible{outline:2px solid #af88bf;outline-offset:3px}.chatbottom{color:#84718c}@media(max-width:520px){.navcontact .button-avatar{width:24px;height:24px}.navcontact[data-chat-open]{gap:6px}.chathead{padding:16px}.chathead strong{font-size:14px}.header-avatar{width:43px;height:43px}}

.contact .button[data-chat-open] {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  margin: 0;
  gap: 12px;
  padding: 10px 19px 10px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 28px #29123630;
  border: 1px solid #a877b7;
}
.contact .button[data-chat-open] .button-avatar {
  width: 43px;
  height: 43px;
  border: 2px solid #f5eafa;
}
.contact .button[data-chat-open] > span { display: none; }
footer { padding-bottom: 105px; }

@media (max-width: 520px) {
  .contact .button[data-chat-open] {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 7px 14px 7px 7px;
    gap: 9px;
    font-size: 13px;
  }
  .contact .button[data-chat-open] .button-avatar {
    width: 38px;
    height: 38px;
  }
}
