/* Front Desk chat widget — owned build */
#fd-bubble {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #f5a623; color: #16283c; font-size: 27px;
  box-shadow: 0 6px 24px rgba(10, 25, 40, .35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
#fd-bubble:hover { transform: scale(1.06); }
#fd-bubble .fd-dot {
  position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #2ecc71; border: 2px solid #fff;
}
#fd-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 9999;
  width: 384px; max-width: calc(100vw - 24px); height: 560px;
  max-height: calc(100dvh - 120px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(10, 25, 40, .35);
  display: none; flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
#fd-panel.fd-open { display: flex; }
.fd-head {
  background: #12355b; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.fd-head .fd-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #f5a623;
  color: #16283c; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 17px; flex: none;
}
.fd-head .fd-title { font-size: 15.5px; font-weight: 700; line-height: 1.15; }
.fd-head .fd-sub { font-size: 12px; opacity: .85; display: flex; gap: 5px; align-items: center; }
.fd-head .fd-sub::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ecc71;
}
.fd-head .fd-close {
  margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 4px;
}
.fd-msgs {
  flex: 1; overflow-y: auto; padding: 14px 12px; background: #f4f6f8;
  display: flex; flex-direction: column; gap: 8px;
}
.fd-msg {
  max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px;
  line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.fd-msg.bot { background: #fff; color: #1c2733; border: 1px solid #e1e8ee; border-bottom-left-radius: 4px; align-self: flex-start; }
.fd-msg.user { background: #12355b; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.fd-msg.sys {
  align-self: center; background: #e8f7ee; color: #1e7a46; border: 1px solid #bfe8d2;
  font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 5px 12px;
}
.fd-typing { align-self: flex-start; background: #fff; border: 1px solid #e1e8ee; border-radius: 14px; padding: 11px 14px; display: none; gap: 4px; }
.fd-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9db4c8; animation: fd-blink 1.2s infinite; }
.fd-typing span:nth-child(2) { animation-delay: .2s; }
.fd-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes fd-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 2px; background: #f4f6f8; }
.fd-chip {
  border: 1px solid #12355b; color: #12355b; background: #fff; border-radius: 999px;
  padding: 6px 11px; font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.fd-chip:hover { background: #12355b; color: #fff; }
.fd-inputbar { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid #e1e8ee; }
.fd-inputbar input {
  flex: 1; border: 1px solid #ccd8e2; border-radius: 999px; padding: 10px 14px;
  font-size: 14.5px; outline: none; min-width: 0;
}
.fd-inputbar input:focus { border-color: #12355b; }
.fd-inputbar button {
  border: 0; border-radius: 999px; background: #f5a623; color: #16283c;
  font-weight: 800; padding: 0 18px; cursor: pointer; font-size: 14.5px;
}
.fd-inputbar button:disabled { opacity: .5; cursor: default; }
.fd-foot { text-align: center; font-size: 11px; color: #8aa0b4; padding: 6px 0 8px; background: #fff; }
@media (max-width: 560px) {
  #fd-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  #fd-bubble { right: 16px; bottom: 16px; }
}
