.ciaiv619-root{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:999999;
  font-family:Arial,sans-serif;
}
.ciaiv619-badge{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:12px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#b88411,#f1cf73);
  border:2px solid #ffffff;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  cursor:pointer;
  transition:transform .2s ease, opacity .2s ease;
}
.ciaiv619-badge:hover{ transform:translateY(-2px); }
.ciaiv619-badge-text{
  color:#ffffff;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
}
.ciaiv619-root.is-open .ciaiv619-badge{
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.ciaiv619-chat{
  display:none;
  position:absolute;
  right:0;
  bottom:0;
  width:calc(360px - 1cm);
  max-width:90vw;
  height:560px;
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
  overflow:hidden;
}
.ciaiv619-chat.open{
  display:flex;
  flex-direction:column;
}
.ciaiv619-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  background:linear-gradient(135deg,#9d7210,#f0cb67);
  color:#ffffff;
}
.ciaiv619-header-title{
  font-size:18px;
  font-weight:700;
}
.ciaiv619-close{
  border:0;
  background:transparent;
  color:#ffffff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.ciaiv619-messages{
  flex:1;
  overflow:auto;
  padding:14px;
  background:#faf7ef;
}
.ciaiv619-msg{
  display:flex;
  margin-bottom:10px;
}
.ciaiv619-msg.bot{ justify-content:flex-start; }
.ciaiv619-msg.user{ justify-content:flex-end; }
.ciaiv619-bubble{
  max-width:84%;
  padding:11px 13px;
  border-radius:14px;
  font-size:17px;
  line-height:1.5;
  font-weight:500;
}
.ciaiv619-msg.bot .ciaiv619-bubble{
  background:#ffffff;
  color:#333333;
  border:1px solid #ead7a1;
}
.ciaiv619-msg.user .ciaiv619-bubble{
  background:#d7ae49;
  color:#ffffff;
}
.ciaiv619-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 14px;
}
.ciaiv619-option{
  border:1px solid #d2b15a;
  background:#ffffff;
  color:#7a5908;
  border-radius:12px;
  padding:10px 12px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}
.ciaiv619-option:hover{
  background:#fff6de;
}
.ciaiv619-inputbar{
  display:flex;
  gap:8px;
  padding:12px;
  background:#ffffff;
  border-top:1px solid #ececec;
}
#ciaiv619-input{
  flex:1;
  padding:12px 13px;
  border:1px solid #dddddd;
  border-radius:12px;
  font-size:16px;
}
#ciaiv619-send{
  min-width:108px;
  padding:0 18px;
  border:0;
  border-radius:12px;
  background:#c79d29;
  color:#ffffff;
  font-size:19px;
  font-weight:700;
  cursor:pointer;
}
@media (max-width:600px){
  .ciaiv619-root{ right:14px; bottom:14px; }
  .ciaiv619-chat{ width:86vw; height:72vh; }
  .ciaiv619-badge-text{ font-size:17px; }
  .ciaiv619-bubble{ font-size:16px; }
}


.ciaiv619-property-cta{
  background:#f28c00 !important;
  border:2px solid #f28c00 !important;
  color:#ffffff !important;
  text-transform:uppercase;
  font-weight:400;
  letter-spacing:.3px;
  text-align:center;
  width:100%;
}
.ciaiv619-property-cta:hover{
  background:#df7f00 !important;
  border-color:#df7f00 !important;
  color:#ffffff !important;
}

/* Studio Imob Suite PRO Chatbot 6.1.36 - rolagem interna de últimos leads */
.ciaicrm619-admin-scroll-section{
  max-width:100%!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid #e5e7eb!important;
  border-radius:18px!important;
  padding:18px!important;
  margin-top:24px!important;
  box-shadow:0 12px 28px rgba(6,26,51,.08)!important;
  box-sizing:border-box!important;
}
.ciaicrm619-admin-scroll-section h2{
  margin:0 0 14px!important;
  font-size:20px!important;
  font-weight:900!important;
  color:#061a33!important;
}
.ciaicrm619-table-scroll{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:auto!important;
  max-height:620px!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:14px!important;
  scrollbar-width:thin!important;
}
.ciaicrm619-last-leads-table{
  min-width:980px!important;
  width:max-content!important;
  max-width:none!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.ciaicrm619-last-leads-table th,
.ciaicrm619-last-leads-table td{
  white-space:nowrap!important;
  vertical-align:top!important;
  padding:12px 14px!important;
}
.ciaicrm619-last-leads-table td:nth-child(4){
  white-space:normal!important;
  min-width:260px!important;
  max-width:340px!important;
}
body.wp-admin.settings_page_ciaicrm619-settings,
body.wp-admin[class*="ciaicrm619"]{
  overflow-x:hidden!important;
}


/* Studio Imob Suite PRO Chatbot 6.1.38 - correção reforçada: últimos leads com rolagem interna */
body.wp-admin.toplevel_page_ciaicrm619, body.wp-admin[class*="ciaicrm619"]{overflow-x:hidden!important;}
body.wp-admin.toplevel_page_ciaicrm619 .wrap{max-width:1540px!important;width:calc(100% - 20px)!important;overflow-x:hidden!important;}
.ciaicrm619-admin-scroll-section{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden!important;box-sizing:border-box!important;position:relative!important;}
.ciaicrm619-table-scroll{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;max-height:640px!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;scrollbar-gutter:stable both-edges!important;padding-bottom:8px!important;}
.ciaicrm619-last-leads-table{display:table!important;table-layout:auto!important;min-width:1180px!important;width:max-content!important;max-width:none!important;border-collapse:separate!important;border-spacing:0!important;}
.ciaicrm619-last-leads-table th,.ciaicrm619-last-leads-table td{white-space:nowrap!important;vertical-align:top!important;}
.ciaicrm619-last-leads-table td:nth-child(4){white-space:normal!important;min-width:300px!important;max-width:420px!important;}
.ciaicrm619-last-leads-table td:nth-child(1){min-width:160px!important;}
@media(max-width:782px){body.wp-admin.toplevel_page_ciaicrm619 .wrap{width:100%!important}.ciaicrm619-last-leads-table{min-width:1080px!important}}

/* Studio Imob Suite PRO Chatbot 6.1.39 - correção REAL somente para dispositivos móveis */
@media (max-width: 782px){
  html.wp-toolbar,
  body.wp-admin,
  body.wp-admin #wpwrap,
  body.wp-admin #wpcontent,
  body.wp-admin #wpbody,
  body.wp-admin #wpbody-content{
    max-width:100vw!important;
    overflow-x:hidden!important;
  }
  body.wp-admin #wpcontent{padding-left:0!important;}
  body.wp-admin .wrap{
    width:100%!important;
    max-width:100vw!important;
    min-width:0!important;
    margin:0!important;
    padding:10px!important;
    overflow-x:hidden!important;
    box-sizing:border-box!important;
  }
  .ciaicrm619-admin-scroll-section,
  body.wp-admin .ciaicrm619-admin-scroll-section{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    position:relative!important;
    box-sizing:border-box!important;
  }
  .ciaicrm619-table-scroll,
  body.wp-admin .ciaicrm619-table-scroll{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:scroll!important;
    overflow-y:auto!important;
    max-height:560px!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-x pan-y!important;
    border-radius:16px!important;
    padding-bottom:10px!important;
    background:#fff!important;
  }
  .ciaicrm619-table-scroll::-webkit-scrollbar{height:9px!important;width:9px!important;}
  .ciaicrm619-table-scroll::-webkit-scrollbar-thumb{background:#94a3b8!important;border-radius:999px!important;}
  .ciaicrm619-table-scroll::-webkit-scrollbar-track{background:#e2e8f0!important;border-radius:999px!important;}
  .ciaicrm619-last-leads-table,
  body.wp-admin .ciaicrm619-last-leads-table{
    display:table!important;
    table-layout:auto!important;
    min-width:1080px!important;
    width:max-content!important;
    max-width:none!important;
    margin:0!important;
    border-collapse:separate!important;
    border-spacing:0!important;
  }
  .ciaicrm619-last-leads-table th,
  .ciaicrm619-last-leads-table td{
    white-space:nowrap!important;
    vertical-align:top!important;
  }
  .ciaicrm619-last-leads-table td:nth-child(4){
    white-space:normal!important;
    min-width:260px!important;
    max-width:360px!important;
  }
}


/* Studio Imob Suite PRO 6.1.42 - cidade em caixas clicáveis João Pessoa/Cabedelo */
.ciaiv619-city-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  width:100%;
  margin:10px 0 14px;
}
.ciaiv619-city-options .ciaiv619-option{
  width:100%;
  min-height:46px;
  border-radius:14px;
  border:1px solid #d7ae49;
  background:linear-gradient(135deg,#fff9e8,#ffffff);
  color:#6a4b05;
  box-shadow:0 8px 18px rgba(6,26,51,.08);
}
.ciaiv619-inputbar input:disabled,
.ciaiv619-inputbar button:disabled{
  opacity:.72;
  cursor:not-allowed;
}
@media (max-width:480px){
  .ciaiv619-city-options{grid-template-columns:1fr;}
}
