.bb-chatbot {
  position: fixed;
  right: 24px;
  bottom: var(--bb-chatbot-bottom, 24px);
  z-index: 770;
  pointer-events: none;
}

.bb-chatbot__trigger {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #d4a020;
  color: #0f2318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(15, 35, 24, 0.26), 0 4px 18px rgba(212, 160, 32, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
}

.bb-chatbot__trigger,
.bb-chatbot__panel {
  pointer-events: auto;
}

.bb-chatbot.is-ready .bb-chatbot__trigger {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation:
    bb-chatbot-trigger-in 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    bb-chatbot-trigger-pulse 1.35s ease-out 1.2s 1;
}

.bb-chatbot__trigger svg {
  width: 26px;
  height: 26px;
}

.bb-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 32px));
  height: min(680px, 72vh);
  display: flex;
  flex-direction: column;
  background: #faf8f3;
  border: 1px solid rgba(92, 90, 82, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 35, 24, 0.26);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-chatbot.is-open .bb-chatbot__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.bb-chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #0f2318;
  color: #faf8f3;
}

.bb-chatbot__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bb-chatbot__brand img {
  width: 74px;
  height: auto;
  display: block;
}

.bb-chatbot__brand-text {
  display: grid;
  gap: 3px;
}

.bb-chatbot__brand-text strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bb-chatbot__brand-text span {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  color: rgba(240, 236, 227, 0.72);
}

.bb-chatbot__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #faf8f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bb-chatbot__close svg {
  width: 18px;
  height: 18px;
}

.bb-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 10px;
  background: #faf8f3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bb-chatbot__message {
  max-width: 88%;
  animation: bb-chatbot-message-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-chatbot__message--bot {
  align-self: flex-start;
}

.bb-chatbot__message--user {
  align-self: flex-end;
}

.bb-chatbot__bubble {
  padding: 12px 14px;
  border-radius: 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
}

.bb-chatbot__message--bot .bb-chatbot__bubble {
  background: rgba(41, 90, 60, 0.1);
  color: #1a1a17;
  border-bottom-left-radius: 6px;
}

.bb-chatbot__message--user .bb-chatbot__bubble {
  background: #d4a020;
  color: #0f2318;
  border-bottom-right-radius: 6px;
}

.bb-chatbot__typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bb-chatbot__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 35, 24, 0.45);
  animation: bb-chatbot-dot 1s ease-in-out infinite;
}

.bb-chatbot__typing span:nth-child(2) {
  animation-delay: 0.12s;
}

.bb-chatbot__typing span:nth-child(3) {
  animation-delay: 0.24s;
}

.bb-chatbot__action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bb-chatbot__quick-title {
  margin: 0 0 10px;
  font: 500 0.8rem/1.4 "DM Sans", sans-serif;
  color: #5c5a52;
}

.bb-chatbot__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bb-chatbot__quick-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(92, 90, 82, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1a1a17;
  cursor: pointer;
  text-align: left;
  font: 500 0.82rem/1.35 "DM Sans", sans-serif;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bb-chatbot__quick-button svg {
  width: 16px;
  height: 16px;
  color: #1b4332;
  flex: 0 0 auto;
}

.bb-chatbot__quick-button:hover,
.bb-chatbot__quick-button:focus-visible {
  background: #f6f1e6;
  border-color: rgba(212, 160, 32, 0.5);
  transform: translateY(-1px);
}

.bb-chatbot__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-chatbot__action-link--gold {
  background: #d4a020;
  color: #0f2318;
}

.bb-chatbot__lead-card {
  padding: 14px;
  border-radius: 18px;
  background: #f0ece3;
  border: 1px solid rgba(92, 90, 82, 0.16);
}

.bb-chatbot__lead-card h3 {
  margin: 0 0 10px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f2318;
}

.bb-chatbot__lead-grid {
  display: grid;
  gap: 10px;
}

.bb-chatbot__lead-grid input,
.bb-chatbot__lead-grid textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(92, 90, 82, 0.2);
  border-radius: 12px;
  background: #fff;
  color: #1a1a17;
  font: 400 0.95rem/1.5 "DM Sans", sans-serif;
}

.bb-chatbot__lead-grid textarea {
  min-height: 92px;
  resize: vertical;
}

.bb-chatbot__lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #d4a020;
  color: #0f2318;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.bb-chatbot__lead-note,
.bb-chatbot__lead-error {
  margin-top: 8px;
  font: 400 0.82rem/1.45 "DM Sans", sans-serif;
}

.bb-chatbot__lead-error {
  color: #a32318;
}

.bb-chatbot__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(92, 90, 82, 0.12);
  background: rgba(250, 248, 243, 0.98);
}

.bb-chatbot__input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(92, 90, 82, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #1a1a17;
  font: 400 0.95rem/1.5 "DM Sans", sans-serif;
}

.bb-chatbot__send {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #0f2318;
  color: #faf8f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bb-chatbot__send svg {
  width: 20px;
  height: 20px;
}

body.bb-mobile-nav-open .bb-chatbot,
body.bb-chatbot-open .bb-chatbot__trigger {
  pointer-events: none;
}

body.bb-mobile-nav-open .bb-chatbot {
  opacity: 0;
}

@media (max-width: 768px) {
  .bb-chatbot {
    right: 16px;
    bottom: var(--bb-chatbot-bottom, 88px);
  }

  .bb-chatbot__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 85vh;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }

  .bb-chatbot.is-open .bb-chatbot__panel {
    transform: translateY(0);
  }

  .bb-chatbot__messages {
    padding-bottom: 18px;
  }
}

@keyframes bb-chatbot-trigger-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bb-chatbot-trigger-pulse {
  0% {
    box-shadow: 0 14px 32px rgba(15, 35, 24, 0.26), 0 4px 18px rgba(212, 160, 32, 0.28), 0 0 0 0 rgba(212, 160, 32, 0.35);
  }

  100% {
    box-shadow: 0 14px 32px rgba(15, 35, 24, 0.26), 0 4px 18px rgba(212, 160, 32, 0.28), 0 0 0 18px rgba(212, 160, 32, 0);
  }
}

@keyframes bb-chatbot-message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bb-chatbot-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
