
#chatpdf-widget {
  font-family: Arial, sans-serif;
  color: #19324d;
}

#chatpdf-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border: 0;
  border-radius: 32px;
  background: #1769e8;
  color: white;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 5px 22px #17385c40;
  cursor: pointer;
}

#chatpdf-launcher span:first-child {
  font-size: 24px;
}

#chatpdf-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 99999;
  width: 370px;
  height: min(570px, calc(100dvh - 125px));
  max-width: calc(100vw - 32px);
  background: white;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  box-shadow: 0 12px 45px #102b4933;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#chatpdf-panel[hidden] {
  display: none !important;
}

.chatpdf-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px;
  background: #1769e8;
  color: white;
}

.chatpdf-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff25;
  font-size: 25px;
}

.chatpdf-heading {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.chatpdf-heading strong {
  font-size: 15px;
}

.chatpdf-heading small {
  font-size: 12px;
  opacity: .9;
}

#chatpdf-close {
  border: 0;
  background: transparent;
  color: white;
  font-size: 29px;
  cursor: pointer;
}

.chatpdf-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 13px;
  background: #f6f8fb;
}

.chatpdf-bubble {
  max-width: 88%;
  width: fit-content;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chatpdf-bubble.bot {
  background: white;
  border: 1px solid #e0e7ef;
  border-bottom-left-radius: 4px;
}

.chatpdf-bubble.user {
  margin-left: auto;
  background: #1769e8;
  color: white;
  border-bottom-right-radius: 4px;
}

#chatpdf-status {
  padding: 0 14px;
  color: #66758a;
  font-size: 12px;
}

.chatpdf-form {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5eaf0;
}

#chatpdf-question {
  flex: 1;
  min-width: 0;
  max-height: 100px;
  resize: vertical;
  border: 1px solid #d5dfeb;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
}

#chatpdf-send {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #1769e8;
  color: white;
  font-size: 21px;
  cursor: pointer;
}

#chatpdf-send:disabled {
  opacity: .5;
  cursor: wait;
}

.chatpdf-footer {
  padding: 0 12px 12px;
  text-align: center;
  color: #77869a;
  font-size: 10px;
}

.chatpdf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 480px) {
  #chatpdf-launcher {
    right: 15px;
    bottom: 15px;
  }

  #chatpdf-panel {
    right: 8px;
    bottom: 78px;
    width: calc(100vw - 16px);
    max-width: none;
    height: min(600px, calc(100dvh - 95px));
  }
}
