#azsa-root { position: fixed; right: 18px; bottom: 18px; z-index: 99999; font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
#azsa-toggle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(18,61,100,.26);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18,61,100,.28), inset 0 0 20px rgba(255,255,255,.36);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}
#azsa-toggle img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
#azsa-toggle:hover { transform: translateY(-1px); }

#azsa-nudge {
  position: absolute;
  right: 74px;
  bottom: 10px;
  max-width: 250px;
  background: #ffffff;
  color: #123d64;
  border: 1px solid rgba(18,61,100,.16);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(18,61,100,.20);
  font-size: 12px;
  line-height: 1.35;
  padding: 9px 11px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
#azsa-nudge.azsa-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#azsa-nudge button {
  all: unset;
  position: absolute;
  top: 4px;
  right: 6px;
  cursor: pointer;
  color: rgba(18,61,100,.65);
  font-size: 12px;
}

#azsa-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(420px, 92vw);
  height: min(620px, 78vh);
  border: 1px solid rgba(18,61,100,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 40px rgba(18,61,100,.22);
  display: none;
  overflow: hidden;
}
#azsa-panel.azsa-open { display: flex; flex-direction: column; }
#azsa-panel.azsa-with-booking {
  width: min(920px, 96vw);
}

.azsa-layout {
  display: flex;
  min-height: 0;
  flex: 1;
}
.azsa-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.azsa-booking {
  width: 0;
  border-right: 1px solid rgba(18,61,100,.12);
  background: #fff;
  overflow: hidden;
  transition: width .25s ease;
}
#azsa-panel.azsa-with-booking .azsa-booking {
  width: min(500px, 54vw);
}
.azsa-booking iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


.azsa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #123d64 0%, #1c6ea4 100%);
  color: #fff;
}
.azsa-head h4 { margin: 0; font-size: 15px; font-weight: 700; }
.azsa-head small { display: block; opacity: .9; font-size: 11px; }
.azsa-head-actions { display: flex; gap: 6px; align-items: center; }
#azsa-mode, #azsa-mic {
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.16);
  color: #fff;
  height: 30px;
  font-size: 11px;
  padding: 0 9px;
  cursor: pointer;
}
#azsa-mic { width: 34px; padding: 0; }
#azsa-mic.azsa-hidden { display: none; }
#azsa-close {
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.azsa-thread {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 45%);
}
.azsa-row { display: flex; }
.azsa-row-user { justify-content: flex-end; }
.azsa-row-bot { justify-content: flex-start; }
.azsa-bubble {
  max-width: 86%;
  border-radius: 14px;
  padding: 9px 11px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.azsa-row-user .azsa-bubble {
  background: #123d64;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.azsa-row-bot .azsa-bubble {
  background: #edf6ff;
  color: #123d64;
  border: 1px solid rgba(18,61,100,.14);
  border-bottom-left-radius: 6px;
}
.azsa-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.azsa-link {
  display: inline-block;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #0d4f80;
  background: #ffffff;
  border: 1px solid rgba(13,79,128,.24);
  border-radius: 999px;
  padding: 5px 9px;
}
.azsa-link:hover {
  background: #f1f8ff;
}

.azsa-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 12px 8px; }
.azsa-chip {
  border: 1px solid rgba(18,61,100,.18);
  background: #f4f9ff;
  color: #123d64;
  border-radius: 999px;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
}
.azsa-chip-rdv {
  background: #ffd84d;
  border-color: #e5a900;
  color: #4a2b00;
  font-weight: 800;
}

.azsa-input {
  padding: 10px;
  border-top: 1px solid rgba(18,61,100,.12);
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
}
.azsa-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(18,61,100,.22);
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 14px;
  color: #123d64;
}
.azsa-input button {
  border: 1px solid rgba(18,61,100,.24);
  border-radius: 12px;
  background: #123d64;
  color: #fff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.azsa-status { padding: 0 12px 8px; font-size: 11px; color: rgba(18,61,100,.75); }
.azsa-status.is-thinking { color: #1c6ea4; font-weight: 700; }

@media (max-width: 760px) {
  #azsa-root { right: 10px; bottom: 10px; }
  #azsa-toggle { width: 58px; height: 58px; }
  #azsa-nudge {
    right: 0;
    bottom: 68px;
    max-width: min(86vw, 280px);
  }
  #azsa-panel {
    right: -2px;
    width: min(96vw, 460px);
    height: min(82vh, 760px);
    border-radius: 16px;
  }
  #azsa-panel.azsa-with-booking {
    width: min(96vw, 460px);
  }
  .azsa-booking { display: none; }
}
