.fabotia-chat-launcher {
  position: fixed;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--fabotia-secondary, #1887bc),
    var(--fabotia-primary, #0e4e6a)
  );
  color: #fff;
  box-shadow: 0 18px 38px rgba(14, 78, 106, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s ease;
}

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

.fabotia-chat-launcher:focus-visible {
  outline: 3px solid rgba(24, 135, 188, 0.4);
  outline-offset: 3px;
}

.fabotia-chat-launcher svg {
  width: 30px;
  height: 30px;
}

.fabotia-chatbox {
  position: fixed;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--fabotia-background, #ffffff);
  color: var(--fabotia-text, #0b1220);
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(11, 18, 32, 0.32);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
  font-family: "BarlowSemiCondensed", system-ui, sans-serif;
}

.fabotia-chatbox.is-visible {
  display: flex;
}

.fabotia-chatbox__header {
  background: linear-gradient(
    135deg,
    var(--fabotia-primary, #0e4e6a),
    var(--fabotia-secondary, #1887bc)
  );
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fabotia-chatbox__header h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.fabotia-chatbox__header .fabotia-chat-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.fabotia-chatbox__body {
  padding: 20px;
  background: var(--fabotia-surface, #f5f9fb);
  height: 320px;
  overflow-y: auto;
}

.fabotia-message {
  margin-bottom: 14px;
  display: flex;
}

.fabotia-message.is-assistant {
  justify-content: flex-start;
}

.fabotia-message.is-user {
  justify-content: flex-end;
}

.fabotia-message__bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(14, 78, 106, 0.18);
  background: var(--fabotia-background, #ffffff);
  color: var(--fabotia-text, #0b1220);
}

.fabotia-message.is-user .fabotia-message__bubble {
  background: var(--fabotia-secondary, #1887bc);
  color: #fff;
}

.fabotia-chatbox__footer {
  padding: 16px 20px;
  background: var(--fabotia-background, #ffffff);
  border-top: 1px solid rgba(14, 78, 106, 0.1);
  display: flex;
  gap: 10px;
}

.fabotia-chatbox__footer input {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(14, 78, 106, 0.2);
  padding: 0 12px;
  background: #fff;
  color: inherit;
}

.fabotia-chatbox__footer button {
  height: 40px;
  border-radius: 12px;
  border: none;
  padding: 0 18px;
  background: var(--fabotia-primary, #0e4e6a);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fabotia-chatbox__footer button:hover {
  background: var(--fabotia-secondary, #1887bc);
}

.fabotia-chatbox[data-theme="dark"] {
  --fabotia-background: #0b1220;
  --fabotia-surface: #121d32;
  --fabotia-text: #f2f6fa;
}

.fabotia-chatbox[data-theme="dark"] .fabotia-message__bubble {
  box-shadow: 0 8px 24px rgba(4, 9, 18, 0.4);
}

.fabotia-chatbox[data-theme="dark"] .fabotia-message.is-user .fabotia-message__bubble {
  background: var(--fabotia-tertiary, #d4905f);
  color: #0b1220;
}

.fabotia-chatbox[data-theme="dark"] .fabotia-chatbox__footer input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.fabotia-chatbox[data-theme="dark"] .fabotia-chatbox__footer button {
  background: var(--fabotia-tertiary, #d4905f);
  color: #0b1220;
}

.fabotia-chatbox[data-theme="dark"] .fabotia-chatbox__footer button:hover {
  background: #f0a878;
}

.fabotia-message__bubble .fabotia-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.fabotia-message__bubble .fabotia-list li {
  list-style: disc;
}

.fabotia-message__bubble p {
  margin: 0 0 12px;
}

.fabotia-message__bubble p:last-child {
  margin-bottom: 0;
}

.fabotia-contact-actions,
.fabotia-register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.fabotia-message__bubble .fa25-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: var(--fabotia-primary, #0e4e6a);
  border: 2px solid transparent;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fabotia-message__bubble .fa25-btn:hover,
.fabotia-message__bubble .fa25-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.fabotia-message__bubble .fa25-btn.secondary {
  background: var(--fabotia-secondary, #1887bc);
}

.fabotia-message__bubble .fabotia-icon {
  font-size: 18px;
  line-height: 1;
}
