.qa-bot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  font-family: "Nunito", Arial, sans-serif;
  color: #17382e;
  max-width: calc(100vw - 24px);
}

.qa-bot-toggle {
  border: 1px solid rgba(23, 56, 46, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  color: #17382e;
  box-shadow: 0 10px 28px rgba(9, 26, 20, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 40px;
  max-width: 100%;
  padding: 10px 14px;
  text-transform: uppercase;
}

.qa-bot-toggle::before {
  align-items: center;
  background: #d89a2b;
  border-radius: 50%;
  color: #17382e;
  content: "?";
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  letter-spacing: 0;
  width: 22px;
}

.qa-bot-toggle:hover,
.qa-bot-toggle:focus-visible {
  background: #ffffff;
  border-color: rgba(216, 154, 43, 0.8);
  outline: none;
}

.qa-bot-panel {
  background: #fffaf0;
  border: 1px solid rgba(23, 56, 46, 0.16);
  border-radius: 12px;
  bottom: 62px;
  box-shadow: 0 24px 70px rgba(9, 26, 20, 0.28);
  display: none;
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(360px, calc(100vw - 36px));
  max-width: 100%;
}

.qa-bot.is-open .qa-bot-panel {
  display: block;
}

.qa-bot-header {
  align-items: flex-start;
  background: #17382e;
  color: white;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 18px;
}

.qa-bot-title {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.qa-bot-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin-top: 4px;
}

.qa-bot-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 20px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.qa-bot-close:hover,
.qa-bot-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.qa-bot-messages {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
}

.qa-bot-message {
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  padding: 11px 13px;
}

.qa-bot-message.bot {
  background: white;
  border: 1px solid rgba(23, 56, 46, 0.1);
}

.qa-bot-message.user {
  background: #17382e;
  color: white;
  justify-self: end;
  max-width: 88%;
}

.qa-bot-message a {
  color: #17382e;
  font-weight: 800;
}

.qa-bot-message.user a {
  color: white;
}

.qa-bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.qa-bot-chip {
  background: white;
  border: 1px solid rgba(23, 56, 46, 0.18);
  border-radius: 999px;
  color: #17382e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.qa-bot-chip:hover,
.qa-bot-chip:focus-visible {
  border-color: #d89a2b;
  outline: none;
}

.qa-bot-form {
  border-top: 1px solid rgba(23, 56, 46, 0.1);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.qa-bot-input {
  border: 1px solid rgba(23, 56, 46, 0.22);
  border-radius: 8px;
  color: #17382e;
  flex: 1;
  font-size: 14px;
  min-width: 0;
  padding: 11px 12px;
}

.qa-bot-input:focus {
  border-color: #d89a2b;
  outline: none;
}

.qa-bot-submit {
  background: #17382e;
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-family: "Oswald", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 14px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .qa-bot {
    bottom: 14px;
    left: auto;
    right: 14px;
    max-width: calc(100vw - 28px);
  }

  .qa-bot-toggle {
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    width: auto;
  }

  .qa-bot-panel {
    bottom: 56px;
    left: auto;
    right: 0;
    max-height: calc(100vh - 92px);
    width: min(340px, calc(100vw - 28px));
  }

  .qa-bot-messages {
    max-height: min(300px, calc(100vh - 330px));
  }
}

@media (max-width: 360px) {
  .qa-bot {
    bottom: 10px;
    right: 10px;
    max-width: calc(100vw - 20px);
  }

  .qa-bot-toggle {
    font-size: 0;
    gap: 0;
    min-height: 38px;
    padding: 8px 10px;
  }

  .qa-bot-toggle::before {
    height: 21px;
    width: 21px;
  }

  .qa-bot-toggle::after {
    content: "Q&A";
    font-size: 10px;
    margin-left: 6px;
  }

  .qa-bot-panel {
    width: calc(100vw - 20px);
  }
}
