.pagination {
  --bs-pagination-color: var(--bs-success);
  --bs-pagination-hover-color: var(--bs-success);
  --bs-pagination-focus-color: var(--bs-success);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
  --bs-pagination-active-bg: var(--bs-success);
  --bs-pagination-active-border-color: var(--bs-success);
}

.question-answer {
  white-space: pre-wrap;
}

.question-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--bs-success);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.question-share-btn i {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.question-share-btn:hover,
.question-share-btn:focus-visible {
  color: #146c43;
}

.chatbot-widget {
  position: fixed;
  left: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 1050;
  pointer-events: none;
}

.chatbot-toggle,
.chatbot-panel {
  pointer-events: auto;
}

.chatbot-toggle {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #fff;
  border-color: var(--bs-success);
  color: var(--bs-success);
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.2);
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
  background: #f5f7f5;
  border-color: var(--bs-success);
  color: var(--bs-success);
}

.chatbot-toggle i {
  font-size: 1.5rem;
  line-height: 1;
}

.chatbot-panel {
  position: absolute;
  left: 0;
  bottom: 4.75rem;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 7rem));
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  position: relative;
  background: var(--bs-success);
  color: #fff;
  text-align: center;
}

.chatbot-logo {
  display: block;
  width: 6.25rem;
  height: auto;
  margin: 0 auto 0.375rem;
}

.chatbot-close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.chatbot-messages {
  min-height: 16rem;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-message {
  max-width: 86%;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  overflow-wrap: anywhere;
}

.chatbot-message p {
  margin: 0;
  white-space: pre-wrap;
}

.chatbot-message-user {
  align-self: flex-end;
  background: var(--bs-success);
  color: #fff;
  border-bottom-right-radius: 0.125rem;
}

.chatbot-message-assistant {
  align-self: flex-start;
  background: #f5f7f5;
  border: 1px solid rgba(25, 135, 84, 0.25);
  color: #000;
  border-bottom-left-radius: 0.125rem;
}

.chatbot-error {
  margin: 0 0.75rem 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.chatbot-form {
  border-top: 1px solid rgba(25, 135, 84, 0.25);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  min-height: 2.75rem;
  height: 2.75rem;
  max-height: 6rem;
  padding-top: 0.5625rem;
  padding-bottom: 0.5625rem;
  resize: none;
  line-height: 1.5;
}

.chatbot-send {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.chatbot-meta {
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 0 0.75rem 0.75rem;
}

@media (max-width: 575.98px) {
  .chatbot-widget {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .chatbot-panel {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 6.25rem);
  }

  .chatbot-toggle {
    width: 3.5rem;
    height: 3.5rem;
  }
}
