/* Desktop-only floating chat launcher. Hidden by default (mobile keeps no
   floating bubble at all — the always-visible nav bar covers that role there);
   shown only above the same breakpoint the nav bar switches at. */

.chat-launcher,
.chat-launcher-panel {
  display: none;
}

@media (min-width: 701px) {
  .chat-launcher {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #5b7fe8;
    color: #fff;
    font-size: 21px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(23, 28, 43, 0.22), 0 2px 8px rgba(23, 28, 43, 0.12);
    z-index: 60;
    transition: transform 0.15s ease;
  }

  .chat-launcher:hover {
    transform: scale(1.06);
  }

  .chat-launcher:focus-visible {
    outline: 2px solid #4a6dd4;
    outline-offset: 3px;
  }

  .chat-launcher-panel {
    flex-direction: column;
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: 340px;
    max-height: 70vh;
    background: #fff;
    border: 1px solid #dde1ea;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(23, 28, 43, 0.22), 0 6px 16px rgba(23, 28, 43, 0.12);
    z-index: 61;
    overflow: hidden;
  }

  .chat-launcher-panel:not([hidden]) {
    display: flex;
  }
}

.chat-launcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #dde1ea;
  background: #f7f8fa;
  flex-shrink: 0;
}

.chat-launcher-title {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1d23;
}

.chat-launcher-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #8492a6;
  cursor: pointer;
  padding: 2px 6px;
}

.chat-launcher-close:hover {
  color: #1a1d23;
}

.chat-launcher-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Inter", sans-serif;
}

.chat-launcher-messages .lm-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
}

.chat-launcher-messages .lm-bubble.bot {
  background: #eef1f8;
  color: #4a5568;
  align-self: flex-start;
}

.chat-launcher-messages .lm-bubble.user {
  background: #f7f8fa;
  color: #1a1d23;
  align-self: flex-end;
}

.chat-launcher-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #dde1ea;
  flex-shrink: 0;
}

.chat-launcher-input-row input {
  flex: 1;
  border: 1px solid #dde1ea;
  border-radius: 8px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
}

.chat-launcher-input-row input:focus {
  outline: none;
  border-color: #5b7fe8;
}

.chat-launcher-input-row button {
  border: none;
  background: #5b7fe8;
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.chat-launcher-input-row button:hover {
  background: #4a6dd4;
}

.chat-launcher-input-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
