.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.ltn-chatbot-fullscreen-open {
  overflow: hidden;
}

.ltn-chatbot {
  position: fixed;
  right: env(safe-area-inset-right);
  top: calc(50% - 41px);
  transform: none;
  z-index: 260;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ltn-chatbot-toggle {
  appearance: none;
  pointer-events: auto;
  border: 1px solid #13263d;
  border-right: 0;
  border-radius: 21px 0 0 21px;
  background: #eef8fd;
  color: #13263d;
  min-height: 82px;
  width: 70px;
  max-width: calc(100vw - 32px);
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(19, 38, 61, .18);
  overflow: hidden;
  animation: ltn-chatbot-pulse 60s ease-in-out infinite;
  transition: width .22s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ltn-chatbot-toggle:hover,
.ltn-chatbot-toggle:focus-visible {
  background: #eef8fd;
  box-shadow: 0 14px 34px rgba(19, 38, 61, .24);
  transform: translateX(-4px);
  width: min(500px, calc(100vw - 24px));
}

.ltn-chatbot-icon {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  background: #eef8fd;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: none;
}

.ltn-chatbot-icon::before,
.ltn-chatbot-icon::after {
  content: none;
}

.ltn-chatbot-icon img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  transform-origin: center;
  filter: saturate(.96) contrast(1.06) brightness(.99);
}

.ltn-chatbot-toggle-copy {
  display: block;
  min-width: 0;
  max-width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  white-space: nowrap;
  transition: max-width .2s ease, opacity .16s ease, visibility .16s ease;
}

.ltn-chatbot-toggle:hover .ltn-chatbot-toggle-copy,
.ltn-chatbot-toggle:focus-visible .ltn-chatbot-toggle-copy {
  max-width: 420px;
  height: auto;
  opacity: 1;
  visibility: visible;
}

.ltn-chatbot-toggle-main {
  font-size: 12.5px;
  line-height: 1.22;
  white-space: nowrap;
}

.ltn-chatbot-toggle-line {
  display: inline;
  color: #6d5517;
  font-size: 12.5px;
  line-height: 1.22;
  margin-left: 4px;
  white-space: nowrap;
}

@keyframes ltn-chatbot-pulse {
  0%,
  92%,
  100% {
    box-shadow: 0 10px 24px rgba(19, 38, 61, .18);
  }
  94% {
    box-shadow: 0 10px 24px rgba(19, 38, 61, .18), 0 0 0 0 rgba(74, 106, 138, .32);
  }
  96% {
    box-shadow: 0 10px 24px rgba(19, 38, 61, .18), 0 0 0 10px rgba(74, 106, 138, 0);
  }
}

.ltn-chatbot-toggle-sub {
  color: #d4bc86;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ltn-chatbot-toggle:focus-visible,
.ltn-chatbot-expand:focus-visible,
.ltn-chatbot-close:focus-visible,
.ltn-chatbot-form button:focus-visible,
.ltn-chatbot-form textarea:focus-visible {
  outline: 3px solid #b89a4f;
  outline-offset: 3px;
}

.ltn-chatbot-panel {
  position: fixed;
  pointer-events: auto;
  top: 92px;
  right: calc(86px + env(safe-area-inset-right));
  box-sizing: border-box;
  width: min(720px, calc(100vw - 132px));
  height: min(680px, calc(100vh - 124px));
  max-height: calc(100vh - 124px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #faf8f4;
  border: 1px solid #d6cfc1;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(19, 38, 61, .24);
  overflow: hidden;
  z-index: 261;
}

.ltn-chatbot-panel[hidden] {
  display: none;
}

.ltn-chatbot-head {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 20px 16px;
  background: #13263d;
  color: #fff;
}

.ltn-chatbot-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d4bc86;
  font-weight: 800;
  margin-bottom: 4px;
}

.ltn-chatbot-head h2 {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  line-height: 1.18;
}

.ltn-chatbot-actions {
  position: static;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ltn-chatbot-expand {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .09);
  color: #fffdf8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ltn-chatbot-expand:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .56);
}

.ltn-chatbot-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  background: #fffdf8;
  color: #13263d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.ltn-chatbot-close:hover {
  background: #f4ead5;
  color: #0f2237;
}

.ltn-chatbot-intro {
  flex: 0 0 auto;
  padding: 16px 20px;
  border-bottom: 1px solid #e3ded2;
  background: #fffdf8;
}

.ltn-chatbot-intro p,
.ltn-chatbot-footnote {
  margin: 0;
  color: #5f5f5f;
  font-size: 14px;
  line-height: 1.58;
}

.ltn-chatbot-messages {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  padding: 20px;
}

.ltn-chatbot-message {
  border: 1px solid #e3ded2;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  color: #2a2d33;
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.ltn-chatbot-message.user {
  justify-self: end;
  max-width: 88%;
  background: #eef4f5;
  border-color: #d8e5e8;
}

.ltn-chatbot-message.assistant {
  justify-self: start;
  max-width: 94%;
}

.ltn-chatbot-message.error {
  border-color: #d6b0a9;
  background: #fff7f4;
}

.ltn-chatbot-message .sources {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #ece6dc;
  color: #6a6258;
  font-size: 12px;
}

.ltn-chatbot-form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 20px 17px;
  border-top: 1px solid #e3ded2;
  background: #fff;
}

.ltn-chatbot-form textarea {
  resize: none;
  min-height: 58px;
  max-height: 148px;
  border: 1px solid #d6cfc1;
  border-radius: 8px;
  padding: 13px 14px;
  color: #2a2d33;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.ltn-chatbot-form button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #b89a4f;
  color: #fff;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
}

.ltn-chatbot-form button:disabled,
.ltn-chatbot-form textarea:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.ltn-chatbot-footnote {
  flex: 0 0 auto;
  padding: 0 20px 17px;
  background: #fff;
}

.ltn-chatbot-footnote a {
  color: #2a3d52;
  font-weight: 800;
}

.ltn-chatbot.is-fullscreen .ltn-chatbot-toggle {
  display: none;
}

.ltn-chatbot.is-fullscreen .ltn-chatbot-panel {
  inset: 22px;
  width: auto;
  height: auto;
  max-height: none;
  border-radius: 18px;
  box-shadow: 0 28px 86px rgba(19, 38, 61, .34);
}

.ltn-chatbot.is-fullscreen .ltn-chatbot-actions {
  position: static;
}

.ltn-chatbot.is-fullscreen .ltn-chatbot-message {
  font-size: 15.5px;
  line-height: 1.68;
}

@media (max-width: 560px) {
  .ltn-chatbot {
    right: 0;
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: auto;
    transform: none;
    width: 58px;
    height: 58px;
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .ltn-chatbot-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58px;
    min-height: 58px;
    border-radius: 17px 0 0 17px;
    padding: 6px;
    justify-content: center;
  }

  .ltn-chatbot-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 15px;
  }

  .ltn-chatbot-icon img {
    width: 42px;
    height: 42px;
  }

  .ltn-chatbot-toggle:hover,
  .ltn-chatbot-toggle:focus-visible {
    width: min(500px, calc(100vw - 18px));
  }

  .ltn-chatbot-panel {
    top: 86px;
    right: 18px;
    width: calc(100vw - 48px);
    height: min(560px, calc(100vh - 112px));
    max-height: calc(100vh - 112px);
    margin-right: 0;
  }

  .ltn-chatbot-head {
    gap: 12px;
    min-height: 68px;
    padding: 15px 14px 13px;
  }

  .ltn-chatbot-head h2 {
    font-size: 20px;
  }

  .ltn-chatbot-actions {
    position: static;
    gap: 6px;
  }

  .ltn-chatbot-expand {
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .ltn-chatbot.is-fullscreen .ltn-chatbot-panel {
    inset: 10px;
    width: auto;
    height: auto;
  }

  .ltn-chatbot.is-fullscreen .ltn-chatbot-actions {
    position: static;
  }
}
