/* Daiane Chat Widget - v5 unified container */
.chat-preview {
  position: fixed;
  right: 24px;
  bottom: 140px;
  z-index: 9999;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 16px;
}

.chat-avatar-wrap {
  flex-shrink: 0;
  width: 115px;
  height: auto;
  z-index: 2;
    overflow: visible;
}

.chat-avatar-wrap img {
  width: 100%;
  height: auto;
  display: block;
    object-fit: contain;
    object-position: center bottom;
}

.chat-bubble {
  position: relative;
  max-width: 260px;
  margin-bottom: 8px;
  background: #eaf6ff;
  color: #0f2d46;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15,45,70,.18);
  border: 2px solid #2f86d9;
  line-height: 1.4;
  text-align: center;
  z-index: 1;
}

.chat-bubble::after {
  content: "";
  position: absolute;
  bottom: 18px;
  right: -9px;
  width: 14px;
  height: 14px;
  background: #eaf6ff;
  transform: rotate(45deg);
  border-top: 2px solid #2f86d9;
  border-right: 2px solid #2f86d9;
  border-bottom: none;
  border-left: none;
  pointer-events: none;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
}

.chat-launcher button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f80c5 0%, #56c7a0 100%);
  color: #fff;
  border: 2px solid rgba(255,255,255,.65);
  box-shadow: 0 18px 42px rgba(47,128,197,.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
  padding: 0;
}

.chat-launcher button:hover {
  transform: translateY(-2px) scale(1.02);
}

.chat-launcher svg {
  width: 28px;
  height: 28px;
}

@keyframes bragaFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.chat-avatar-wrap {
  animation: bragaFloat 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .chat-preview {
    right: 12px;
    bottom: 120px;
    gap: 10px;
  }
  .chat-avatar-wrap { width: 85px; }
  .chat-bubble {
    max-width: 190px;
    font-size: 13px;
    padding: 10px 14px;
  }
  .chat-launcher { right: 18px; bottom: 18px; }
  .chat-launcher button { width: 56px; height: 56px; }
}

@media (max-width: 480px) {
  .chat-preview {
    right: 10px;
    bottom: 100px;
    gap: 8px;
  }
  .chat-avatar-wrap { width: 70px; }
  .chat-bubble {
    max-width: 150px;
    font-size: 12px;
    padding: 8px 12px;
    display: none;
  }
  .chat-launcher { right: 14px; bottom: 14px; }
  .chat-launcher button { width: 48px; height: 48px; }
  .chat-launcher svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-avatar-wrap { animation: none; }
}

.old-botao { display: none !important; }

.chat-avatar-wrap { height: 140px !important; }
.chat-avatar-wrap img { height: 100% !important; }

/* braga-chat-btn - restored for portfolio compatibility */
.braga-chat-btn {
 position: fixed !important;
 right: 24px;
 bottom: 200px;
 z-index: 9999;
 width: 115px;
 height: auto;
 border: none;
 cursor: pointer;
 background: transparent;
 padding: 0;
 display: block;
}

.braga-chat-btn .braga-chat-avatar {
 width: 100%;
 height: auto;
 display: block;
}

.braga-chat-btn-text {
 display: block;
 text-align: center;
 color: #fff;
 font-size: 13px;
 font-weight: 700;
 margin-top: 4px;
 text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

@media (max-width: 768px) {
 .braga-chat-btn {
 right: 12px;
 bottom: 160px;
 width: 85px;
 }
}

@media (max-width: 480px) {
 .braga-chat-btn {
 right: 10px;
 bottom: 140px;
 width: 70px;
 }
}

/* dai-bub-braga - bubble for portfolio compatibility */
.dai-bub-braga {
 position: fixed;
 right: 24px;
 bottom: 420px;
 z-index: 9998;
 background: #eaf6ff;
 color: #0f2d46;
 padding: 12px 16px;
 border-radius: 16px 16px 16px 4px;
 font-size: 14px;
 font-weight: 800;
 box-shadow: 0 10px 26px rgba(15,45,70,.18);
 border: 2px solid #2f86d9;
 max-width: 260px;
 line-height: 1.4;
 text-align: center;
 animation: bragaFloat 4s ease-in-out infinite;
}

.dai-bub-braga::after {
 content: \;
 position: absolute;
 bottom: 18px;
 right: -9px;
 width: 14px;
 height: 14px;
 background: #eaf6ff;
 transform: rotate(45deg);
 border-top: 2px solid #2f86d9;
 border-right: 2px solid #2f86d9;
 border-bottom: none;
 border-left: none;
 pointer-events: none;
}

@media (max-width: 768px) {
 .dai-bub-braga {
 right: 12px;
 bottom: 350px;
 max-width: 190px;
 font-size: 13px;
 padding: 10px 14px;
 }
}

@media (max-width: 480px) {
 .dai-bub-braga {
 right: 10px;
 bottom: 300px;
 max-width: 150px;
 font-size: 12px;
 padding: 8px 12px;
 display: none;
 }
}
.braga-chat-window {
  position: fixed;
  right: 24px;
  bottom: 104px;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 132px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 46px rgba(0,0,0,.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.braga-chat-header {
  background: linear-gradient(135deg, #0f2d46, #1e5b8f);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}
.braga-chat-close { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; opacity: .8; }
.braga-chat-close:hover { opacity: 1; }
.braga-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f6f9fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.braga-chat-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 86%;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.braga-chat-msg-bot { background: #fff; color: #1b2a3a; align-self: flex-start; box-shadow: 0 3px 12px rgba(15,45,70,.06); }
.braga-chat-msg-user { background: #0f2d46; color: #fff; align-self: flex-end; }
.braga-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid rgba(15,45,70,.08);
}
.braga-chat-qr, .braga-chat-qr-other {
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 13px;
  transition: transform .2s ease, background .2s ease;
}
.braga-chat-qr { background: #0f2d46; color: #fff; }
.braga-chat-qr:hover { background: #2f86d9; transform: translateY(-1px); }
.braga-chat-qr-other { background: #eaf6ff; color: #0f2d46; border: 1px dashed #2f86d9; }
.braga-chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: #fff;
  border-top: 1px solid rgba(15,45,70,.08);
}
.braga-chat-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.braga-chat-input:focus { border-color: #2f86d9; }
.braga-chat-send {
  background: #2f86d9;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  .braga-chat-window { right: 12px; bottom: 90px; width: calc(100vw - 24px); max-height: calc(100vh - 110px); }
  .dai-bub-braga { right: 12px; bottom: 350px; max-width: calc(100vw - 48px); font-size: 13px; padding: 10px 14px; }
}
@media (max-width: 480px) {
  
  
  .braga-chat-window { right: 10px; bottom: 80px; max-height: calc(100vh - 95px); }
  .dai-bub-braga { right: 10px; bottom: 300px; max-width: calc(100vw - 36px); font-size: 12px; padding: 8px 12px; }

/* Unified widget container */
.dai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* CTAs below avatar */
.dai-ctas {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.dai-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease;
  cursor: pointer;
}

.dai-cta:hover { transform: translateY(-2px); }

.dai-cta-sms {
  background: #34b7f1;
  color: #fff;
}

.dai-cta-email {
  background: #0f2d46;
  color: #fff;
}

@media (max-width: 768px) {
  .dai-widget { right: 12px; bottom: 18px; }
  .dai-cta { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .dai-widget { right: 10px; bottom: 14px; }
  .dai-cta { font-size: 11px; padding: 5px 8px; }
}
.dai-bub-braga { display: none !important; }
