.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;
}

.ltn-chatbot {
  position: fixed;
  right: env(safe-area-inset-right);
  top: calc(50% - 35px);
  transform: none;
  z-index: 260;
  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;
  border: 1px solid rgba(255, 255, 255, .24);
  border-right: 0;
  border-radius: 21px 0 0 21px;
  background: linear-gradient(135deg, #13263d 0%, #203b58 100%);
  color: #fff;
  min-height: 70px;
  width: 58px;
  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, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
  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: linear-gradient(135deg, #18304b 0%, #294765 100%);
  box-shadow: 0 14px 34px rgba(19, 38, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateX(-4px);
  width: min(500px, calc(100vw - 24px));
}

.ltn-chatbot-icon {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(19, 38, 61, .12);
}

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

.ltn-chatbot-icon img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  transform: scale(1.14);
  transform-origin: center;
  filter: saturate(.92) contrast(1.1) brightness(.98);
}

.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: #d4bc86;
  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, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
  }
  94% {
    box-shadow: 0 10px 24px rgba(19, 38, 61, .22), 0 0 0 0 rgba(184, 154, 79, .34), inset 0 1px 0 rgba(255, 255, 255, .14);
  }
  96% {
    box-shadow: 0 10px 24px rgba(19, 38, 61, .22), 0 0 0 10px rgba(184, 154, 79, 0), inset 0 1px 0 rgba(255, 255, 255, .14);
  }
}

.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-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;
  top: 96px;
  right: calc(70px + env(safe-area-inset-right));
  box-sizing: border-box;
  width: min(340px, calc(100vw - 96px));
  height: min(400px, calc(100vh - 118px));
  max-height: calc(100vh - 118px);
  display: grid;
  grid-template-rows: auto auto minmax(120px, 1fr) auto auto;
  background: #faf8f4;
  border: 1px solid #d6cfc1;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(19, 38, 61, .24);
  overflow: hidden;
}

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

.ltn-chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 13px;
  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: 20px;
  line-height: 1.18;
}

.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 {
  padding: 12px 16px;
  border-bottom: 1px solid #e3ded2;
  background: #fffdf8;
}

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

.ltn-chatbot-messages {
  display: grid;
  gap: 10px;
  align-content: start;
  overflow-y: auto;
  padding: 14px 16px;
}

.ltn-chatbot-message {
  border: 1px solid #e3ded2;
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: #2a2d33;
  font-size: 13px;
  line-height: 1.5;
  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 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 12px 16px 13px;
  border-top: 1px solid #e3ded2;
  background: #fff;
}

.ltn-chatbot-form textarea {
  resize: none;
  min-height: 42px;
  max-height: 96px;
  border: 1px solid #d6cfc1;
  border-radius: 8px;
  padding: 10px 11px;
  color: #2a2d33;
  font: inherit;
  line-height: 1.35;
}

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

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

.ltn-chatbot-footnote {
  padding: 0 16px 13px;
  background: #fff;
}

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

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

  .ltn-chatbot-toggle {
    width: 58px;
    min-height: 70px;
    justify-content: center;
  }

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

  .ltn-chatbot-panel {
    top: 86px;
    right: 12px;
    width: min(340px, calc(100vw - 24px));
    height: min(390px, calc(100vh - 112px));
    max-height: calc(100vh - 112px);
    margin-right: 0;
  }
}
