/* Oase Görbitz Chatbot widget */
:root{
  --oase-chat-z: 2147483000;
}

.oase-chat-launcher{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:var(--oase-chat-z);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background:linear-gradient(135deg, rgba(37,99,235,0.95), rgba(15,82,186,0.9));
  box-shadow:0 18px 40px rgba(2,6,23,0.28);
  color:#fff;
  cursor:pointer;
  -webkit-user-select:none;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}

.oase-chat-launcher.oase-chat-unread::after{
  content:'';
  position:absolute;
  top:8px;
  right:8px;
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.95);
  box-shadow:0 0 0 2px rgba(15,82,186,0.65);
}

.oase-chat-launcher,
.oase-chat-panel,
.oase-chat-panel *{
  font-family: 'Lato', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.oase-chat-launcher .oase-chat-logo{
  width:32px;
  height:32px;
  border-radius:10px;
  background:rgba(255,255,255,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex:0 0 auto;
}
.oase-chat-launcher .oase-chat-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.oase-chat-launcher .oase-chat-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.oase-chat-launcher .oase-chat-title strong{ font-size:13px; letter-spacing:0.2px; }
.oase-chat-launcher .oase-chat-title span{ font-size:11px; opacity:0.92; }

.oase-chat-panel{
  position:fixed;
  right:18px;
  bottom:76px;
  z-index:var(--oase-chat-z);
  width:min(380px, calc(100vw - 36px));
  height:min(560px, calc(100vh - 120px));
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.16);
  background:
    radial-gradient(520px 320px at 14% 0%, rgba(96,165,250,0.28), transparent 60%),
    radial-gradient(520px 320px at 96% 14%, rgba(167,139,250,0.18), transparent 62%),
    radial-gradient(520px 320px at 86% 92%, rgba(45,212,191,0.12), transparent 64%),
    rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:0 24px 70px rgba(2,6,23,0.36);
  overflow:hidden;
  display:none;
}

.oase-chat-panel.open{ display:flex; flex-direction:column; }

.oase-chat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  background:linear-gradient(135deg, rgba(37,99,235,0.75), rgba(15,82,186,0.65));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,0.14);
}

.oase-chat-head .left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.oase-chat-head .left img{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  background:rgba(255,255,255,0.15);
}

.oase-chat-head .meta{ min-width:0; }
.oase-chat-head .meta .name{ font-weight:900; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.oase-chat-head .meta .sub{ font-size:11px; opacity:0.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.oase-chat-actions{ display:flex; align-items:center; gap:8px; }
.oase-chat-btn{
  border:none;
  border-radius:10px;
  padding:8px 10px;
  background:rgba(255,255,255,0.16);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.oase-chat-btn:hover{ background:rgba(255,255,255,0.22); }

.oase-chat-body{
  flex:1 1 auto;
  padding:12px;
  overflow:auto;
}

.oase-chat-typing{
  display:inline-flex;
  gap:6px;
  align-items:center;
}
.oase-chat-typing span{
  width:6px;
  height:6px;
  border-radius:999px;
  background:currentColor;
  opacity:0.55;
  animation:oaseChatDot 1.2s infinite ease-in-out;
}
.oase-chat-typing span:nth-child(2){ animation-delay: .12s; opacity:0.40; }
.oase-chat-typing span:nth-child(3){ animation-delay: .24s; opacity:0.28; }
@keyframes oaseChatDot{
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

.oase-chat-bubble{
  max-width:86%;
  border-radius:14px;
  padding:10px 12px;
  margin:8px 0;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow:0 8px 20px rgba(2,6,23,0.08);
  background:rgba(255,255,255,0.86);
  color:#0f172a;
  white-space:pre-wrap;
  word-break:break-word;
}

.oase-chat-bubble.me{
  margin-left:auto;
  background:linear-gradient(135deg, rgba(37,99,235,0.92), rgba(15,82,186,0.88));
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
}

.oase-chat-bubble .meta{
  font-size:11px;
  opacity:0.78;
  margin-bottom:6px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.oase-chat-links a{ color:inherit; text-decoration:underline; }
.oase-chat-links{ margin-top:8px; }

.oase-chat-attachments{ margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.oase-chat-attachments a{ color:inherit; text-decoration:underline; }
.oase-chat-attachments img{ max-width:220px; border-radius:12px; border:1px solid rgba(255,255,255,0.18); }

.oase-chat-quick{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 12px 10px;
}
.oase-chat-chip{
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.14);
  color:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:800;
  cursor:pointer;
}

.oase-chat-input{
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,0.14);
  background:rgba(15,23,42,0.22);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.oase-chat-pending{
  display:none;
  flex-wrap:wrap;
  gap:8px;
}

.oase-chat-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
  font-weight:800;
}

.oase-chat-pill button{
  border:none;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-weight:900;
  line-height:1;
}

.oase-chat-row{
  display:flex;
  gap:8px;
  align-items:center;
}

.oase-chat-row input[type="text"]{
  flex:1 1 auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.92);
  padding:10px 12px;
  outline:none;
}

.oase-chat-row .btn{
  border:none;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  color:#fff;
  background:rgba(37,99,235,0.92);
}

.oase-chat-row .btn.secondary{
  background:rgba(255,255,255,0.16);
}

@media (max-width: 520px){
  .oase-chat-launcher{ right:12px; bottom:12px; }
  .oase-chat-panel{ right:12px; bottom:72px; width:calc(100vw - 24px); }
}
