:root{
  --peron-accent: #d9a04a; /* seu dourado */
  --peron-dark: #0e0e0e;
  --peron-bg: #ffffff;
  --peron-bubble: #f2f4f7;
  --peron-text: #1b1f23;
  --peron-muted: #6b7280;
  --peron-shadow: 0 12px 40px rgba(0,0,0,.18);
  --peron-radius: 18px;
}

#peron-chat-root{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: Montserrat, Arial, sans-serif;
}

.peron-chat-bubble{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: var(--peron-accent);
  box-shadow: var(--peron-shadow);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.peron-chat-bubble svg{
  width: 26px;
  height: 26px;
  fill: white;
}

.peron-chat-window{
  width: 340px;
  max-width: calc(100vw - 36px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: var(--peron-bg);
  border-radius: 20px;
  box-shadow: var(--peron-shadow);
  overflow: hidden;
  display: none;
  margin-bottom: 10px;
}

.peron-chat-window.open{ display:block; }

.peron-chat-header{
  background: var(--peron-accent);
  color: #fff;
  padding: 12px 12px;
  display:flex;
  align-items:center;
  gap: 10px;
}

.peron-chat-avatar{
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
}

.peron-chat-header h3{
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.peron-chat-header small{
  display:block;
  opacity: .9;
  font-size: 12px;
  margin-top: 2px;
}

.peron-chat-header-actions{
  margin-left:auto;
  display:flex;
  gap: 6px;
}

.peron-chat-icon-btn{
  border:0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.peron-chat-body{
  height: calc(100% - 54px - 56px);
  padding: 12px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 60%, #f7fbff 100%);
}

.peron-msg{
  display:flex;
  margin: 8px 0;
  gap: 8px;
}

.peron-msg.bot{ justify-content:flex-start; }
.peron-msg.user{ justify-content:flex-end; }

.peron-msg-bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: var(--peron-radius);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--peron-text);
}

.peron-msg.bot .peron-msg-bubble{
  background: var(--peron-bubble);
  border-top-left-radius: 10px;
}

.peron-msg.user .peron-msg-bubble{
  background: var(--peron-accent);
  color: white;
  border-top-right-radius: 10px;
}

.peron-chat-footer{
  height: 56px;
  padding: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}

.peron-input{
  flex:1;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}

.peron-send{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border:0;
  background: var(--peron-accent);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.peron-send svg{ width:18px; height:18px; fill:#fff; }

.peron-quick-actions{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.peron-action{
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  cursor:pointer;
  font-size: 12.5px;
}

.peron-note{
  font-size: 12px;
  color: var(--peron-muted);
  margin-top: 6px;
}

.peron-chat-brand{
  font-size: 11px;
  color: rgba(0,0,0,.55);
  padding: 8px 12px 10px;
  background: #7c1b1b;
  border-top: 1px solid rgba(0,0,0,.06);
}

.peron-chat-avatar{
  overflow: hidden;
  display: grid;
  place-items: center;
}

.peron-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.peron-avatar-letter{
  font-weight: 800;
  color: rgba(255,255,255,.95);
}
.peron-microcopy{
  font-size: 12px;
  opacity: .75;
  margin: 6px 12px 0;
}
.peron-last{
  font-size: 12px;
  opacity: .8;
  margin: 10px 12px 0;
}

