
.skb-kibi-chat{
  --kibi-purple:#5a10c9;
  --kibi-purple-2:#7b23ff;
  --kibi-blue:#2488ff;
  --kibi-ink:#241a38;
  --kibi-soft:#f7f2ff;
  font-family:inherit;
  color:var(--kibi-ink);
  box-sizing:border-box;
}
.skb-kibi-chat *{box-sizing:border-box}

.skb-kibi-chat--floating{
  position:fixed;
  left:22px;
  bottom:22px;
  z-index:999999;
}

.skb-kibi-launcher{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:8px 15px 8px 8px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,var(--kibi-purple),var(--kibi-purple-2) 60%,var(--kibi-blue));
  box-shadow:0 15px 35px rgba(75,26,157,.28);
  transition:transform .18s ease, box-shadow .18s ease;
}
.skb-kibi-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(75,26,157,.34)}
.skb-kibi-launcher-avatar,
.skb-kibi-avatar{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:42px;height:42px;
  border-radius:14px;
  background:linear-gradient(145deg,#24d5e8,#4f78ff 55%,#7a24ef);
  color:#fff;
  font-weight:900;
  font-size:20px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}
.skb-kibi-online-dot{
  position:absolute;
  left:42px;
  bottom:8px;
  width:12px;height:12px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid #fff;
}
.skb-kibi-launcher-label{font-weight:800;font-size:14px;white-space:nowrap}

.skb-kibi-panel{
  display:none;
  position:absolute;
  left:0;
  bottom:72px;
  width:370px;
  max-height:min(620px,calc(100vh - 105px));
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  border:1px solid #e7ddf6;
  box-shadow:0 24px 60px rgba(41,18,75,.25);
}
.skb-kibi-chat.is-open .skb-kibi-panel{display:flex;flex-direction:column}
.skb-kibi-chat.is-open .skb-kibi-launcher{display:none}

.skb-kibi-header{
  display:flex;
  align-items:center;
  gap:11px;
  padding:14px 15px;
  color:#fff;
  background:linear-gradient(135deg,#431093,#6817d5 62%,#6e25ee);
}
.skb-kibi-avatar{width:40px;height:40px;border-radius:13px}
.skb-kibi-header-copy{display:flex;flex-direction:column;line-height:1.15}
.skb-kibi-header-copy strong{font-size:17px}
.skb-kibi-header-copy span{margin-top:4px;font-size:12px;color:#eadfff}
.skb-kibi-header-copy i{
  display:inline-block;
  width:8px;height:8px;
  border-radius:50%;
  margin-right:4px;
  background:#27d567;
}
.skb-kibi-close{
  margin-left:auto;
  width:36px;height:36px;
  border:0;
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.12);
  font-size:25px;
  cursor:pointer;
}

.skb-kibi-body{
  min-height:285px;
  overflow:auto;
  padding:15px;
  background:linear-gradient(180deg,#fbf9ff,#fff);
}
.skb-kibi-messages{display:flex;flex-direction:column;gap:10px}
.skb-kibi-row{display:flex}
.skb-kibi-row--bot{justify-content:flex-start}
.skb-kibi-row--user{justify-content:flex-end}
.skb-kibi-bubble{
  max-width:88%;
  padding:11px 13px;
  border-radius:15px 15px 15px 5px;
  background:#f2edfb;
  color:#302841;
  font-size:14px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.skb-kibi-row--user .skb-kibi-bubble{
  border-radius:15px 15px 5px 15px;
  color:#fff;
  background:linear-gradient(135deg,#6430e8,#357fff);
}
.skb-kibi-bubble a{
  display:inline-block;
  margin-top:8px;
  color:#5a18cd;
  font-weight:800;
  text-decoration:none;
}
.skb-kibi-row--user .skb-kibi-bubble a{color:#fff}

.skb-kibi-quick{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:13px;
}
.skb-kibi-quick button{
  border:1px solid #d9c9fa;
  border-radius:999px;
  padding:7px 10px;
  background:#fff;
  color:#5b21c9;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.skb-kibi-quick button:hover{background:#f4eeff}

.skb-kibi-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  gap:8px;
  padding:10px 12px;
  border-top:1px solid #eee7f5;
  background:#fff;
}
.skb-kibi-input{
  width:100%;
  min-width:0;
  height:42px;
  border:1px solid #dcd4e7!important;
  border-radius:13px!important;
  padding:0 12px!important;
  outline:0!important;
  box-shadow:none!important;
  font-size:14px!important;
  background:#fff!important;
  color:#2b2437!important;
}
.skb-kibi-input:focus{border-color:#8c63ee!important}
.skb-kibi-send{
  width:44px;height:42px;
  border:0;
  border-radius:13px;
  color:#fff;
  background:linear-gradient(135deg,#6620d5,#7b23ff);
  font-size:20px;
  cursor:pointer;
}
.skb-kibi-note{
  padding:0 13px 12px;
  background:#fff;
  color:#8a8391;
  font-size:10.5px;
  line-height:1.35;
}

@media(max-width:600px){
  .skb-kibi-chat--floating{left:14px;bottom:16px}
  .skb-kibi-launcher{min-height:52px;padding:6px}
  .skb-kibi-launcher-avatar{width:40px;height:40px}
  .skb-kibi-launcher-label{display:none}
  .skb-kibi-online-dot{left:37px;bottom:4px}

  .skb-kibi-panel{
    position:fixed;
    left:10px;
    right:10px;
    bottom:12px;
    width:auto;
    max-height:min(650px,calc(100vh - 24px));
    border-radius:20px;
  }
  .skb-kibi-body{min-height:250px}
  .skb-kibi-quick{display:grid;grid-template-columns:1fr 1fr}
  .skb-kibi-quick button{white-space:normal;min-height:42px}
}

@media(max-width:380px){
  .skb-kibi-panel{left:6px;right:6px;bottom:6px}
  .skb-kibi-quick{grid-template-columns:1fr}
}
/* v1.0.1 - pulido visual */
.skb-kibi-panel{width:355px;border-radius:24px;box-shadow:0 22px 55px rgba(49,18,92,.22)}
.skb-kibi-header{padding:13px 14px;background:linear-gradient(135deg,#4b0ca8,#6d18df 62%,#7d35f5)}
.skb-kibi-close{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.16);font-size:22px;line-height:1}
.skb-kibi-close:hover{background:rgba(255,255,255,.25)}
.skb-kibi-body{min-height:0;max-height:340px;padding:14px}
.skb-kibi-quick{margin-top:11px}.skb-kibi-quick.is-used{display:none}
.skb-kibi-bubble{box-shadow:0 3px 10px rgba(61,31,104,.04)}
.skb-kibi-typing{align-self:flex-start;color:#8a7c9f;font-size:11px;padding:2px 7px 6px}
.skb-kibi-launcher{min-height:54px;padding:6px 14px 6px 7px;box-shadow:0 12px 30px rgba(75,26,157,.25)}
.skb-kibi-launcher-avatar{width:40px;height:40px;border-radius:13px}.skb-kibi-launcher-label{font-size:13px}
@media(max-width:600px){.skb-kibi-panel{left:8px;right:8px;bottom:10px;max-height:calc(100vh - 20px)}.skb-kibi-body{max-height:48vh}.skb-kibi-launcher{padding:6px}.skb-kibi-launcher-label{display:none}}
