/* AWC AI Assistance Widget - Screenshot-style */

/* Root widget container */
#awcai-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Launcher pill */
#awcai-bubble {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2d7ff9;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  font-size: 13px;
  font-weight: 600;
}

#awcai-bubble-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

#awcai-bubble-text {
  white-space: nowrap;
}

/* Chat panel container */
#awcai-panel {
  width: 370px;
  max-width: calc(100vw - 36px);
  height: 560px;
  max-height: calc(100vh - 80px);
  border-radius: 26px;
  overflow: hidden;
  background: #f5f7fb;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
  display: none;
  margin-bottom: 12px;
  display: none;
  display: none;
  display: none;
}

/* HEADER – pill-style bar like screenshot */
#awcai-header {
  margin: 10px 10px 6px;
  padding: 8px 10px;
  background: #2d7ff9;
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* left side: avatar + title + subtitle */
.awcai-head-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.awcai-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #1c5be5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.awcai-head-texts {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#awcai-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
#awcai-subtitle {
  font-size: 11px;
  opacity: 0.9;
}

/* right side: End + X */
.awcai-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* End pill */
#awcai-end {
  border-radius: 999px;
  padding: 4px 11px;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  color: #2d7ff9;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,0.35);
}
#awcai-end:hover {
  background: #f5f7ff;
}

/* Minimize button */
#awcai-close {
  background: rgba(5, 38, 92, 0.25);
  border: 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#awcai-close:hover {
  background: rgba(5, 38, 92, 0.4);
}

/* CHAT BODY */
#awcai-body {
  padding: 6px 12px 4px;
  height: calc(100% - 150px);
  overflow-y: auto;
}

/* messages */
.awcai-msg {
  margin: 8px 0;
  display: flex;
}
.awcai-msg.user { justify-content: flex-end; }
.awcai-msg.ai { justify-content: flex-start; }

.awcai-bubble {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
}

/* user = blue bubble */
.awcai-msg.user .awcai-bubble {
  background: #2d7ff9;
  color: #fff;
  border-bottom-right-radius: 8px;
}

/* ai = white rounded card */
.awcai-msg.ai .awcai-bubble {
  background: #ffffff;
  color: #1b2430;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  border-bottom-left-radius: 8px;
}

/* FOOTER FIELD – rounded bar like screenshot */
#awcai-footer {
  padding: 12px 14px 8px;
  display: flex;
  gap: 8px;
  border-top: 0;
}

/* wrapper for input + send could be just flex */
#awcai-input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
#awcai-input:disabled {
  background: #f1f1f1;
}

/* round send button with icon */
#awcai-send {
  border: 0;
  background: #2d7ff9;
  color: #fff;
  border-radius: 999px;
  padding: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
#awcai-send:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* small note under footer */
#awcai-note {
  font-size: 10px;
  opacity: .6;
  padding: 0 16px 10px 16px;
}

/* Service list helpers (unchanged) */
.awcai-btn{
  display:inline-block;
  padding:6px 10px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  font-size:12px;
  border:1px solid rgba(0,0,0,.12);
}
.awcai-btn-primary{
  background:#2d7ff9;
  color:#fff !important;
  border-color: rgba(0,0,0,.0);
}
.awcai-btn-secondary{
  background:#ffffff;
  color:#1b2430;
}
.awcai-badge{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  border:1px solid rgba(0,0,0,.12);
  vertical-align:middle;
}
.awcai-badge-active{ background:#e8f5e9; color:#1b5e20; }
.awcai-badge-pending{ background:#fff8e1; color:#8d6e00; }
.awcai-badge-suspended{ background:#fff3e0; color:#b26a00; }
.awcai-badge-terminated{ background:#ffebee; color:#b71c1c; }
.awcai-badge-cancelled{ background:#f3e5f5; color:#6a1b9a; }
.awcai-badge-unknown{ background:#eceff1; color:#37474f; }
.awcai-muted{
  color: rgba(0,0,0,.65);
  font-size: 12px;
}
