#yorkbot-widget { position: fixed; right: 18px; bottom: 18px; z-index: 99999; font-family: "Public Sans"; }
#yorkbot-toggle { 
    background-color: #8ecae6;
    font-size: 17px;
    border: 0; 
    padding: 14px 16px; 
    border-radius: 999px; 
    cursor: pointer; 
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    }

#yorkbot-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px; border-bottom: 1px solid #eee; }
#yorkbot-close { border: 0; background: transparent; font-size: 22px; cursor: pointer; }
#yorkbot-panel {
  width: 340px;
  height: 520px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

#yorkbot-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  background: #fafafa;
}


.yorkbot-msg { margin: 8px 0; display: flex; }
.yorkbot-msg.user { justify-content: flex-end; }
.yorkbot-bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px; border: 1px solid #eee; background: #fff; font-size: 14px; line-height: 1.35; }
.yorkbot-msg.user .yorkbot-bubble { background: #f2f2f2; }
#yorkbot-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; }
#yorkbot-text { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #ddd; }
#yorkbot-send { padding: 10px 12px; border-radius: 10px; border: 0; cursor: pointer; }
#yorkbot-lead { padding: 10px 10px 0; }
.yorkbot-lead-title { font-size: 12px; margin-bottom: 6px; color: #444; }
.yorkbot-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yorkbot-lead-grid input { padding: 9px; border-radius: 10px; border: 1px solid #ddd; font-size: 13px; }
.yorkbot-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 8px 0 10px; color: #444; }
#yorkbot-footer { padding: 10px 12px; border-top: 1px solid #eee; background: #fff; text-align: center !important; }
#yorkbot-panel, #yorkbot-input, #yorkbot-text {
  position: relative;
  z-index: 999999;
}
#yorkbot-panel[hidden] { display: none !important; }

#yorkbot-input {
  flex: 0 0 auto;
}

#yorkbot-lead {
  flex: 0 0 auto;
}

#yorkbot-footer {
  flex: 0 0 auto;
}
.yorkbot-secondary {
  margin: 10px 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

#yorkbot-lead {
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

#yorkbot-lead-send {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.yorkbot-privacy-note {
  font-size: 12px;
  color: #444;
  margin-top: 8px;
}
#yorkbot-cta {
    background: #023047;
    margin: 0;
    font-size: 15px;
    color: #ffb703;
    padding: 10px 16px;
}
#yorkbot-close { pointer-events: auto; position: relative; z-index: 1000000; }
#yorkbot-header { position: relative; z-index: 1000000; }

/* Asegurar que el panel y header reciban clicks */
#yorkbot-panel,
#yorkbot-header,
#yorkbot-close {
  pointer-events: auto !important;
}

/* Poner el header por encima de cualquier overlay interno */
#yorkbot-header {
  position: relative !important;
  z-index: 99999999 !important;
}

/* Asegurar que la X esté encima y clickeable */
#yorkbot-close {
  position: relative !important;
  z-index: 999999999 !important;
  cursor: pointer !important;
}

#yorkbot-lead-hide {
  margin-left: auto;
  display: block;
}
