@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

.lc-guided-chat {
  --lc-chat-ink: #111936;
  --lc-chat-muted: #687392;
  --lc-chat-primary: #3f5199;
  --lc-chat-accent: #ff5062;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.lc-chat-launcher {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(31, 42, 94, 0.28);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lc-chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 42, 94, 0.34);
}

.lc-chat-launcher img,
.lc-chat-avatar-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.lc-chat-launcher i { font-size: 23px; }

#backToTop.lc-chat-launcher {
  background: transparent !important;
  display: block !important;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 17px;
  overflow: hidden;
  z-index: 9998;
}

.lc-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 32px));
  height: min(590px, calc(100dvh - 112px));
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(63, 81, 153, .16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(17, 25, 54, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.lc-chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lc-chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 14px 15px;
  color: #fff;
  background: linear-gradient(120deg, #303f7f, #3f5199 58%, #7652a5);
}

.lc-chat-logo {
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.lc-chat-brand { display: grid; gap: 3px; min-width: 0; }
.lc-chat-brand strong { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #fff; font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif); font-size: 16px; font-weight: 800; letter-spacing: -.35px; line-height: 1.1; text-shadow: 0 1px 8px rgba(10, 18, 55, .2); }
.lc-chat-brand span { color: rgba(255,255,255,.86); font-size: 10px; font-weight: 500; line-height: 1.3; }

.lc-chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  cursor: pointer;
}

.lc-chat-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px 14px 10px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  overscroll-behavior: contain;
}

.lc-chat-message {
  max-width: 91%;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 4px;
  color: #33405f;
  background: #edf1fa;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.lc-chat-message.user {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  color: #fff;
  background: var(--lc-chat-primary);
}

.lc-chat-contact-card {
  display: grid;
  gap: 6px;
  align-self: flex-start;
  width: 91%;
  padding: 11px 12px;
  border: 1px solid rgba(63,81,153,.13);
  border-radius: 14px;
  color: #33405f;
  background: #fff;
  font-size: 12px;
}

.lc-chat-contact-card strong { color: var(--lc-chat-ink); font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif); font-size: 13px; font-weight: 800; }
.lc-chat-contact-card a { color: var(--lc-chat-primary); text-decoration: none; }
.lc-chat-contact-card a:hover { text-decoration: underline; }
.lc-chat-contact-card .lc-chat-wa-link { color: #07855b; font-weight: 800; }

.lc-chat-options {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 9px;
  max-height: 190px;
  padding: 12px 13px 14px;
  overflow-y: auto;
  border-top: 1px solid #edf0f8;
  background: #fff;
}

.lc-chat-options.has-many {
  max-height: 250px;
  scrollbar-width: thin;
  scrollbar-color: rgba(63,81,153,.42) #f1f3fa;
}

.lc-chat-options.has-many::-webkit-scrollbar { width: 6px; }
.lc-chat-options.has-many::-webkit-scrollbar-track { background: #f1f3fa; border-radius: 6px; }
.lc-chat-options.has-many::-webkit-scrollbar-thumb { background: rgba(63,81,153,.42); border-radius: 6px; }

.lc-chat-option {
  flex: 1 1 calc(50% - 9px);
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(63,81,153,.16);
  border-radius: 13px;
  color: #26365f;
  background: linear-gradient(145deg, #fff 0%, #f7f9ff 100%);
  box-shadow: 0 2px 7px rgba(31,42,94,.045);
  font: inherit;
  font-family: var(--font-head, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.lc-chat-option:hover {
  transform: translateY(-2px);
  border-color: rgba(63,81,153,.42);
  background: #eef2ff;
  box-shadow: 0 7px 16px rgba(31,42,94,.1);
}

.lc-chat-option.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(110deg, #3f5199, #7652a5);
  box-shadow: 0 5px 13px rgba(63,81,153,.2);
}

.lc-chat-option.primary:hover { background: linear-gradient(110deg, #334581, #68458f); }
.lc-guided-chat button:focus-visible { outline: 3px solid rgba(255,80,98,.45); outline-offset: 2px; }

@media (max-width: 575.98px) {
  .lc-guided-chat { right: 16px; bottom: 16px; }
  .lc-chat-launcher {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(31, 42, 94, 0.28);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lc-chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31, 42, 94, 0.34);
}

.lc-chat-launcher img,
.lc-chat-avatar-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.lc-chat-launcher i { font-size: 23px; }

#backToTop.lc-chat-launcher {
  background: transparent !important;
  display: block !important;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 17px;
  overflow: hidden;
  z-index: 9998;
}
  .lc-chat-panel {
    position: fixed;
    right: 10px;
    bottom: 76px;
    width: calc(100vw - 20px);
    height: min(620px, calc(100dvh - 96px));
    max-height: calc(100dvh - 96px);
  }
  .lc-chat-options { max-height: 205px; }
  .lc-chat-options.has-many { max-height: 225px; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-chat-launcher, .lc-chat-panel, .lc-chat-option { transition: none; }
}

/* Larger portrait launcher */
.lc-guided-chat .lc-chat-launcher,
#backToTop.lc-chat-launcher {
  background: transparent !important;
  width: 88px !important;
  height: 88px !important;
}

.lc-guided-chat .lc-chat-panel { bottom: 84px; }

@media (max-width: 575.98px) {
  .lc-guided-chat .lc-chat-panel { bottom: 92px; }
}
@keyframes lc-chat-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.lc-guided-chat .lc-chat-launcher,
#backToTop.lc-chat-launcher {
  animation: lc-chat-float 1.8s ease-in-out infinite;
}

