:root{
  --ldcb-shadow: 0 12px 30px rgba(0,0,0,.18);
  --ldcb-border: rgba(0,0,0,.08);
  --ldcb-bg: #ffffff;
  --ldcb-muted: rgba(0,0,0,.55);
  --ldcb-text: rgba(0,0,0,.92);
  --ldcb-radius: 18px;
  --ldcb-gap: 10px;
  --ldcb-accent: #EAB54F;
}

/* ROOT */
#ldcb-root{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* FAB BUTTON */
#ldcb-root .ldcb-fab{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: none;
  background: var(--ldcb-accent);
  box-shadow: var(--ldcb-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}

#ldcb-root .ldcb-fab:hover{
  transform: translateY(-3px);
  background: #d9a63f;
}

/* PANEL */
#ldcb-root .ldcb-panel{
  position: absolute;
  right: 0;
  bottom: 75px;
  width: 350px;
  max-width: calc(100vw - 40px);
  background: var(--ldcb-bg);
  border-radius: var(--ldcb-radius);
  box-shadow: var(--ldcb-shadow);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

#ldcb-root .ldcb-panel--open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* HEADER */
#ldcb-root .ldcb-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #111;
}

#ldcb-root .ldcb-title{
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

#ldcb-root .ldcb-subtitle{
  margin-top: 3px;
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* CLOSE BUTTON */
#ldcb-root .ldcb-close{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: var(--ldcb-accent);
  color: #000;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

#ldcb-root .ldcb-close:hover{
  background: #d9a63f;
}

/* BODY */
#ldcb-root .ldcb-body{
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
  background: #fafafa;
}

/* MESSAGE BUBBLE */
#ldcb-root .ldcb-bubble{
  padding: 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ldcb-text);
  background: #ffffff;
  border: 1px solid var(--ldcb-border);
}

#ldcb-root .ldcb-bubble a{
  color: var(--ldcb-accent);
  font-weight: 600;
  text-decoration: none;
}

#ldcb-root .ldcb-bubble a:hover{
  text-decoration: underline;
}

/* ACTION BUTTONS */
#ldcb-root .ldcb-actions{
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fafafa;
}

#ldcb-root .ldcb-btn{
  border-radius: 14px;
  padding: 12px 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: transform .05s ease, background .2s ease, box-shadow .2s ease;
  color: #111 !important;
}

#ldcb-root .ldcb-btn:active{
  transform: translateY(1px);
}

/* PRIMARY */
#ldcb-root .ldcb-btn--primary{
  background: linear-gradient(135deg,#EAB54F,#d9a63f) !important;
  color: #000 !important;
  box-shadow: 0 4px 10px rgba(234,181,79,.3);
}

#ldcb-root .ldcb-btn--primary:hover{
  background: #d9a63f !important;
}

/* SECONDARY */
#ldcb-root .ldcb-btn--secondary{
  background: #111 !important;
  color: #fff !important;
}

#ldcb-root .ldcb-btn--secondary:hover{
  background: #000 !important;
}

/* GHOST */
#ldcb-root .ldcb-btn--ghost{
  background: transparent;
  color: #333 !important;
}

#ldcb-root .ldcb-btn--ghost:hover{
  background: rgba(0,0,0,.05);
}

/* FOOTER */
#ldcb-root .ldcb-footer{
  padding: 12px 16px 16px 16px;
  font-size: 11px;
  color: rgba(0,0,0,.4);
}

/* MOBILE */
@media (max-width: 420px){
  #ldcb-root{ right: 14px; bottom: 14px; }
  #ldcb-root .ldcb-panel{ width: 320px; bottom: 70px; }
}

/* FORÇAR COMPATIBILIDADE COM TEMA + SVG */

body #ldcb-root{
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2147483647 !important;
}

body #ldcb-root .ldcb-fab{
  width: 64px !important;
  height: 64px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #EAB54F !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2147483647 !important;
  font-size: 0 !important; /* impede herança de texto */
}

body #ldcb-root .ldcb-fab__icon{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #000 !important;
}

body #ldcb-root .ldcb-fab__icon svg{
  width: 28px;
  height: 28px;
}

/* EFEITO HOVER NO ÍCONE */
#ldcb-root .ldcb-fab:hover svg{
  transform: scale(1.1);
  transition: transform .2s ease;
}