* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #f4f7fb;
  font-family: Arial, Helvetica, sans-serif;
  color: #10233d;
}

body.wb-embed .wb-header {
  display: none !important;
}

body.wb-embed .wb-home-btn,
body.wb-embed .wb-badge,
body.wb-embed .wb-reset-btn {
  display: none !important;
}

body.wb-embed .wb-shell {
  min-height: 100dvh;
  padding: 0;
}

body.wb-embed .wb-card {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  height: 100dvh;
}

body.wb-embed .wb-chat {
  height: calc(100dvh - 64px - 46px);
}

.wb-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wb-card {
  width: 100%;
  max-width: 880px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(7, 28, 61, 0.12);
  overflow: hidden;
}

.wb-header {
  background: linear-gradient(135deg, #0b3a82, #0f58c9);
  color: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wb-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.wb-header p {
  margin: 0;
  opacity: 0.94;
  line-height: 1.4;
  font-size: 14px;
}

.wb-badge {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.wb-chat {
  height: 560px;
  overflow-y: auto;
  padding: 20px;
  background: #f8fbff;
  display: flex;
  flex-direction: column;
}

.wb-msg {
  max-width: 82%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 16px;
}

.wb-msg-html {
  white-space: normal;
  line-height: 1.3;
  max-width: 72%;
}

.wb-msg.user {
  align-self: flex-end;
  width: fit-content;
  max-width: 72%;
  background: #0f58c9;
  color: #fff;
  border-bottom-right-radius: 6px;
  padding: 10px 12px;
}

.wb-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb-msg.bot:not(.wb-msg-html) {
  align-self: flex-start;
  width: fit-content;
  max-width: 72%;
}

.wb-reset-btn,
.wb-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wb-msg.bot {
  margin-right: auto;
  background: #f4f6f8;
  color: #123150;
  border-radius: 12px;
  border: 1px solid #dbe7f5;
  border-bottom-left-radius: 6px;
  padding: 10px 12px;
  line-height: 1.35;
}

.wb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wb-msg.bot strong {
  font-weight: 700;
}

.wb-result-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wb-result-row {
  line-height: 1.35;
  font-size: 16px;
}

.wb-result-row-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wb-result-row-emphasis {
  font-size: 17px;
  font-weight: 700;
  color: #0b3a82;
}

.wb-result-row-emphasis strong {
  font-size: inherit;
}

.wb-result-row-total {
  font-size: 15px;
  font-weight: 700;
}

.wb-result-note {
  margin-top: 4px;
  font-size: 12px;
  color: #60758e;
}

.wb-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.wb-chip {
  border: 1px solid #d4e4fb;
  background: #eef5ff;
  color: #0b3a82;
  border-radius: 14px;
  padding: 9px 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.wb-chip:hover {
  background: #ebf3ff;
}

.wb-pagador-picker {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.wb-pagador-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: #123150;
  min-height: 56px;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wb-pagador-item:last-child {
  border-bottom: none;
}

.wb-pagador-item:hover {
  background: #f7fbff;
  border-color: #c7daf6;
  transform: translateY(-1px);
}

.wb-pagador-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
  border-radius: 6px;
  background: #fff;
}

.wb-pagador-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.wb-pagador-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: #123150;
  white-space: normal;
  word-break: break-word;
}

.wb-pagador-rate {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #60758e;
}

.wb-pagador-rate-empty {
  color: #8b9bb0;
  font-weight: 500;
}

.wb-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.wb-result-link {
  color: #0f58c9;
  font-weight: 700;
  text-decoration: none;
}

.wb-result-link:hover {
  text-decoration: underline;
}

.wb-inline-note {
  font-size: 12px;
  color: #60758e;
  margin-top: 8px;
}

.wb-form {
  display: flex;
  gap: 12px;
  padding: 16px 20px 18px;
  background: #fff;
  border-top: 1px solid #eef4fb;
}

.wb-form input {
  flex: 1;
  border: 1px solid #d4e4fb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.wb-form input:focus {
  border-color: #0f58c9;
  box-shadow: 0 0 0 3px rgba(15, 88, 201, 0.12);
}

.wb-form button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: #0f58c9;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.wb-footer-note {
  padding: 0 20px 18px;
  font-size: 12px;
  color: #6e7f93;
  background: #fff;
}

.wb-icon-btn {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-color: #d4e4fb;
  background: #eef5ff;
  color: #0b3a82;
}

.wb-icon-btn:hover {
  background: #e4efff;
  border-color: #c7daf6;
}

.wb-icon-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.wb-home-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.wb-home-btn:hover {
  background: rgba(255,255,255,0.18);
}

@media (max-width: 760px) {
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
  }

  .wb-shell {
    padding: 0;
    margin: 0;
    min-height: 100dvh;
    height: 100dvh;
    display: block;
  }

  .wb-card {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
  }

  .wb-header {
    flex: 0 0 auto;
    padding: 16px 16px 14px;
    gap: 12px;
    border-radius: 0;
  }

  .wb-header h1 {
    font-size: 18px;
    margin: 0 0 4px;
  }

  .wb-header p {
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
  }

  .wb-badge {
    padding: 6px 9px;
    font-size: 11px;
  }

  .wb-chat {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    padding: 14px 12px;
  }

  .wb-msg,
  .wb-msg.user,
  .wb-msg.bot,
  .wb-msg-html {
    max-width: 92%;
  }

  .wb-form {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eef4fb;
  }

  .wb-form input {
    min-width: 0;
    font-size: 16px;
    padding: 11px 12px;
  }

  .wb-form button {
    flex: 0 0 auto;
    padding: 11px 16px;
    white-space: nowrap;
  }

  .wb-footer-note {
    flex: 0 0 auto;
    padding: 0 12px 12px;
    font-size: 11px;
    line-height: 1.3;
    background: #fff;
  }

  .wb-pagador-picker {
    max-height: 240px;
    gap: 7px;
  }

  .wb-pagador-item {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
  }

  .wb-pagador-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .wb-pagador-name {
    font-size: 13px;
  }

  .wb-pagador-rate {
    font-size: 12px;
  }
}
