.lcp-chat,
.lcp-chat * {
  box-sizing: border-box;
}

html.lcp-has-fullscreen-chat,
body.lcp-has-fullscreen-chat {
  overflow: hidden !important;
  height: 100% !important;
}

.lcp-chat {
  --lcp-theme: #25d366;
  --lcp-header: #075e54;
  --lcp-chat-bg: #efe7dd;
  --lcp-page-bg: radial-gradient(circle at top, rgba(37, 211, 102, 0.16), transparent 30%), #101827;
  --lcp-image-ratio: 4 / 5;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lcp-chat.lcp-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100svh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch;
  justify-content: center;
  background: var(--lcp-page-bg);
  isolation: isolate;
}

body.admin-bar .lcp-chat.lcp-fullscreen {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
  height: calc(100svh - 32px) !important;
  height: calc(100dvh - 32px) !important;
}

.lcp-chat.lcp-embedded {
  width: 100%;
  min-height: 680px;
  display: flex;
  justify-content: center;
  margin: 24px auto;
}

.lcp-stage {
  width: min(100%, 540px);
  height: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  isolation: isolate;
}

.lcp-embedded .lcp-stage {
  height: min(780px, 88vh);
  min-height: 620px;
}

.lcp-phone {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--lcp-chat-bg);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
}

.lcp-embedded .lcp-phone {
  border-radius: 28px;
}

.lcp-header {
  flex: 0 0 auto;
  min-height: 68px;
  background: linear-gradient(135deg, var(--lcp-header), color-mix(in srgb, var(--lcp-header) 82%, #000 18%));
  color: #fff;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.lcp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.78);
  flex: 0 0 auto;
}

.lcp-header-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lcp-name {
  font-size: 16px;
  font-weight: 780;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcp-status {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 3px;
}

.lcp-reset {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lcp-reset:hover,
.lcp-reset:focus {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.lcp-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 14px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  scroll-behavior: auto;
  scroll-padding-bottom: 28px;
  background-color: var(--lcp-chat-bg);
  background-image:
    radial-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  background-size: 18px 18px, 100% 100%;
}

.lcp-messages::-webkit-scrollbar {
  width: 7px;
}

.lcp-messages::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.18);
  border-radius: 999px;
}

.lcp-bubble {
  max-width: min(84%, 390px);
  padding: 10px 12px;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgba(17, 24, 39, 0.08);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  flex: 0 0 auto;
  position: relative;
}

.lcp-bot {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 5px;
}

.lcp-user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--lcp-theme) 24%, #ffffff 76%);
  border-top-right-radius: 5px;
}

.lcp-image-bubble,
.lcp-card-bubble {
  width: min(92%, 430px);
  max-width: min(92%, 430px);
  padding: 6px;
  overflow: hidden;
}

.lcp-photo-frame {
  width: 100%;
  height: clamp(240px, 52dvh, 440px);
  min-height: 0;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(243,244,246,0.96)),
    #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lcp-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

.lcp-photo-frame-error::after {
  content: "No se pudo cargar la imagen";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.lcp-photo-frame-error img {
  display: none;
}

.lcp-caption {
  display: block;
  padding: 8px 6px 3px;
  font-size: 14px;
  color: #374151;
}

.lcp-card-title {
  display: block;
  padding: 10px 8px 4px;
  font-size: 16px;
  line-height: 1.25;
  color: #111827;
}

.lcp-card-text {
  display: block;
  padding: 0 8px 10px;
  font-size: 14px;
  color: #374151;
}

.lcp-card-button {
  display: block;
  margin: 9px 6px 6px;
  border-radius: 999px;
  padding: 13px 14px;
  background: var(--lcp-theme);
  color: #06281a !important;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
}

.lcp-card-button:hover,
.lcp-card-button:focus {
  filter: brightness(0.96);
  outline: none;
}

.lcp-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 12px 14px;
}

.lcp-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  display: inline-block;
  animation: lcpTyping 1s infinite ease-in-out;
}

.lcp-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.lcp-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes lcpTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.lcp-options {
  flex: 0 0 auto;
  padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
  background: rgba(248, 250, 252, 0.98);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 8px;
  max-height: 38dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lcp-options:empty {
  display: none;
}

.lcp-option {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--lcp-theme) 52%, #ffffff 48%);
  border-radius: 999px;
  background: #fff;
  color: #075e54;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 720;
  text-align: center;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

.lcp-option-primary {
  background: var(--lcp-theme);
  color: #06281a;
  border-color: transparent;
}

.lcp-option:hover,
.lcp-option:focus {
  filter: brightness(0.97);
  outline: none;
}

.lcp-ended,
.lcp-error {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  text-align: center;
  font-size: 14px;
}

body.lcp-hide-page-ads {
  padding-bottom: 0 !important;
}

body.lcp-hide-page-ads .adsbygoogle,
body.lcp-hide-page-ads .google-auto-placed,
body.lcp-hide-page-ads .advertisement,
body.lcp-hide-page-ads .banner-ad,
body.lcp-hide-page-ads .ad-container,
body.lcp-hide-page-ads .ad-wrapper,
body.lcp-hide-page-ads .ad-slot,
body.lcp-hide-page-ads .adthrive-ad,
body.lcp-hide-page-ads .ezoic-ad,
body.lcp-hide-page-ads .ezoic-sticky,
body.lcp-hide-page-ads .ezmob-footer,
body.lcp-hide-page-ads .mediavine-ad,
body.lcp-hide-page-ads iframe[id^="aswift_"],
body.lcp-hide-page-ads iframe[id^="google_ads_iframe_"],
body.lcp-hide-page-ads iframe[name^="google_ads_iframe_"],
body.lcp-hide-page-ads iframe[src*="googlesyndication"],
body.lcp-hide-page-ads iframe[src*="doubleclick"],
body.lcp-hide-page-ads iframe[src*="googleads"],
body.lcp-hide-page-ads iframe[src*="googleadservices"],
body.lcp-hide-page-ads ins.adsbygoogle[data-anchor-status],
body.lcp-hide-page-ads [id*="google_anchor"],
body.lcp-hide-page-ads [id*="anchor_ad"],
body.lcp-hide-page-ads [class*="anchor-ad"],
body.lcp-hide-page-ads [class*="sticky-ad"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  max-height: 0 !important;
}

@supports not (background: color-mix(in srgb, red 12%, white)) {
  .lcp-user {
    background: #dcf8c6;
  }

  .lcp-option {
    border-color: rgba(37, 211, 102, 0.45);
  }

  .lcp-header {
    background: var(--lcp-header);
  }
}

@media (max-width: 782px) {
  body.admin-bar .lcp-chat.lcp-fullscreen {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
    height: calc(100svh - 46px) !important;
    height: calc(100dvh - 46px) !important;
  }
}

@media (max-width: 560px) {
  .lcp-stage {
    width: 100%;
  }

  .lcp-phone {
    border-left: 0;
    border-right: 0;
  }

  .lcp-header {
    min-height: 64px;
  }

  .lcp-messages {
    padding: 14px 10px 20px;
    gap: 8px;
  }

  .lcp-bubble {
    max-width: 88%;
    font-size: 14.5px;
  }

  .lcp-image-bubble,
  .lcp-card-bubble {
    width: min(94%, 430px);
    max-width: min(94%, 430px);
  }

  .lcp-photo-frame {
    height: clamp(220px, 49dvh, 380px);
  }

  .lcp-option {
    font-size: 14.5px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

@media (max-height: 640px) {
  .lcp-photo-frame {
    height: clamp(190px, 44dvh, 310px);
  }

  .lcp-options {
    max-height: 42dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lcp-typing span {
    animation: none;
  }
}
