.lff-root[hidden],
.lff-prompt[hidden],
.lff-chat-start[hidden],
.lff-conversation[hidden],
.lff-feedback[hidden] {
  display: none !important;
}

.lff-root,
.lff-root *,
.lff-root *::before,
.lff-root *::after {
  box-sizing: border-box !important;
}

.lff-root {
  position: fixed;
  right: var(--lff-x, 22px);
  bottom: var(--lff-y, 22px);
  z-index: var(--lff-z, 999980);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--lff-prompt-text, #17342b);
  font-family: inherit;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s ease, transform .28s ease;
  -webkit-font-smoothing: antialiased;
}

.lff-root.is-left {
  right: auto;
  left: var(--lff-x, 22px);
  align-items: flex-start;
}

.lff-root.is-ready {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 681px) {
  .lff-root.is-hidden-desktop {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .lff-root.is-hidden-mobile {
    display: none !important;
  }
}

.lff-root.is-flow-open {
  opacity: 0;
  pointer-events: none;
}

#cfwOverlay.lff-price-checking {
  pointer-events: none !important;
  cursor: wait;
}

.lff-trigger {
  position: relative;
  min-width: var(--lff-size, 64px);
  height: var(--lff-size, 64px);
  margin: 0;
  padding: 0 24px 0 17px;
  border: 0;
  border-radius: 999px;
  background: var(--lff-button, #128c68);
  color: var(--lff-button-text, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  box-shadow: 0 12px 28px rgba(16, 66, 51, .18), 0 3px 9px rgba(16, 66, 51, .10);
  cursor: pointer;
  isolation: isolate;
  overflow: visible !important;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), box-shadow .36s ease, filter .36s ease;
}

.lff-trigger:hover {
  background: var(--lff-button, #128c68) !important;
  background-color: var(--lff-button, #128c68) !important;
  background-image: none !important;
  border-color: transparent !important;
  color: var(--lff-button-text, #fff) !important;
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(16, 66, 51, .22), 0 5px 12px rgba(16, 66, 51, .12);
  filter: brightness(1.025);
}

.lff-trigger:focus,
.lff-trigger:focus-visible,
.lff-trigger:active {
  background: var(--lff-button, #128c68) !important;
  background-color: var(--lff-button, #128c68) !important;
  background-image: none !important;
  border-color: transparent !important;
  color: var(--lff-button-text, #fff) !important;
}

.lff-trigger:active {
  transform: translateY(0) scale(.98);
}

/* Alguns temas criam uma camada colorida no hover de todo elemento button. */
.lff-trigger::after {
  content: none !important;
  display: none !important;
}

.lff-trigger:focus-visible,
.lff-prompt-action:focus-visible,
.lff-prompt-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lff-accent, #128c68) 45%, #fff);
  outline-offset: 3px;
}

.lff-trigger-icon {
  width: clamp(22px, calc(var(--lff-size, 64px) * .40), 28px);
  height: clamp(22px, calc(var(--lff-size, 64px) * .40), 28px);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.lff-trigger-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.lff-trigger-icon svg.lff-repo-icon path {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.lff-trigger-label {
  max-width: 220px;
  white-space: nowrap;
}

.lff-status-dot {
  position: absolute;
  right: 9px;
  top: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid color-mix(in srgb, var(--lff-button, #128c68) 28%, #fff);
  border-radius: 50%;
  background: #72d6a6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  pointer-events: none;
  animation: lff-status-breathe 4.8s ease-in-out infinite;
}

.lff-prompt {
  position: absolute;
  right: 0;
  bottom: calc(var(--lff-size, 64px) + 14px);
  width: min(376px, calc(100vw - 32px));
  margin: 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--lff-accent, #128c68) 12%, transparent);
  border-radius: 22px;
  background: var(--lff-prompt, #fff);
  color: var(--lff-prompt-text, #17342b);
  box-shadow: 0 24px 64px rgba(14, 45, 36, .14), 0 7px 20px rgba(14, 45, 36, .08);
  transform-origin: bottom right;
  animation: lff-prompt-in .42s cubic-bezier(.22, 1, .36, 1) both;
}

.lff-root.is-left .lff-prompt {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

.lff-prompt::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--lff-prompt, #fff);
  border-right: 1px solid color-mix(in srgb, var(--lff-accent, #128c68) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--lff-accent, #128c68) 12%, transparent);
  transform: rotate(45deg);
}

/* Isola os controles de regras globais de button usadas por temas WordPress. */
.lff-prompt button {
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  text-decoration: none !important;
  text-transform: none !important;
}

.lff-prompt button > span {
  color: inherit !important;
  font: inherit !important;
}

.lff-root.is-left .lff-prompt::after {
  right: auto;
  left: 24px;
}

.lff-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lff-prompt-text, #17342b) 5%, transparent);
  color: currentColor;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lff-prompt-close:hover {
  background: color-mix(in srgb, var(--lff-prompt-text, #17342b) 12%, transparent) !important;
  color: var(--lff-prompt-text, #17342b) !important;
}

.lff-prompt-close,
.lff-prompt-close:focus,
.lff-prompt-close:active {
  background: color-mix(in srgb, var(--lff-prompt-text, #17342b) 5%, transparent) !important;
  background-image: none !important;
  color: var(--lff-prompt-text, #17342b) !important;
}

.lff-prompt-close::before,
.lff-prompt-close::after {
  content: none !important;
  display: none !important;
}

.lff-prompt-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.lff-prompt-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 32px;
}

.lff-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--lff-accent, #128c68) 14%, #fff);
  box-shadow: 0 4px 12px rgba(10, 45, 35, .09);
}

.lff-photo-placeholder {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 13%, #fff);
  color: var(--lff-accent, #128c68);
}

.lff-photo-placeholder svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lff-eyebrow {
  margin: 0 0 3px !important;
  color: color-mix(in srgb, var(--lff-prompt-text, #17342b) 70%, transparent);
  font: inherit;
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.25;
}

.lff-prompt h2 {
  margin: 0 !important;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.015em;
}

.lff-prompt-text {
  margin: 15px 0 12px !important;
  color: color-mix(in srgb, var(--lff-prompt-text, #17342b) 78%, transparent);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.48;
}

.lff-question-list {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 7px;
  list-style: none !important;
}

.lff-question {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 11px 12px 11px 14px !important;
  border: 1px solid color-mix(in srgb, var(--lff-accent, #128c68) 16%, transparent) !important;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 4%, var(--lff-prompt, #fff)) !important;
  background-image: none !important;
  color: var(--lff-prompt-text, #17342b) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow: hidden !important;
  appearance: none;
  -webkit-appearance: none;
  transform: none !important;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.lff-question > span {
  flex: 1 1 auto;
  min-width: 0 !important;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
}

.lff-question:hover {
  border-color: color-mix(in srgb, var(--lff-accent, #128c68) 38%, transparent) !important;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 10%, var(--lff-prompt, #fff)) !important;
  background-image: none !important;
  color: var(--lff-prompt-text, #17342b) !important;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--lff-accent, #128c68) 8%, transparent) !important;
}

.lff-question:focus,
.lff-question:active {
  border-color: color-mix(in srgb, var(--lff-accent, #128c68) 24%, transparent) !important;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 4%, var(--lff-prompt, #fff)) !important;
  background-image: none !important;
  color: var(--lff-prompt-text, #17342b) !important;
}

.lff-question::before,
.lff-question::after {
  content: none !important;
  display: none !important;
}

.lff-question:focus-visible,
.lff-direct-action:focus-visible,
.lff-chat-back:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lff-accent, #128c68) 30%, transparent);
  outline-offset: 2px;
}

.lff-question svg {
  position: static !important;
  inset: auto !important;
  width: 17px;
  height: 17px;
  margin: 0 !important;
  flex: 0 0 auto;
  fill: none !important;
  stroke: var(--lff-accent, #128c68) !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.lff-question:hover svg {
  transform: translateX(2px) !important;
}

.lff-direct-action,
.lff-chat-back {
  margin: 0;
  border: 0;
  background: transparent !important;
  background-image: none !important;
  color: var(--lff-accent, #128c68) !important;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.lff-direct-action {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--lff-accent, #128c68) 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 4%, var(--lff-prompt, #fff)) !important;
  background-image: none !important;
}

.lff-direct-action::after {
  content: '›' !important;
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 0 8px !important;
  background: none !important;
  color: currentColor !important;
  opacity: 1 !important;
  transform: none !important;
  font-size: 17px !important;
  line-height: .8 !important;
  vertical-align: -1px !important;
}

.lff-direct-action::before {
  content: none !important;
  display: none !important;
}

.lff-direct-action:hover {
  border-color: color-mix(in srgb, var(--lff-accent, #128c68) 32%, transparent) !important;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 7%, var(--lff-prompt, #fff)) !important;
  background-image: none !important;
  color: var(--lff-accent, #128c68) !important;
}

.lff-direct-action:focus,
.lff-direct-action:active {
  border-color: color-mix(in srgb, var(--lff-accent, #128c68) 22%, transparent) !important;
  background: color-mix(in srgb, var(--lff-accent, #128c68) 4%, var(--lff-prompt, #fff)) !important;
  background-image: none !important;
  color: var(--lff-accent, #128c68) !important;
}

.lff-conversation {
  margin-top: 15px;
  animation: lff-conversation-in .34s cubic-bezier(.22, 1, .36, 1) both;
}

.lff-message {
  width: fit-content;
  max-width: 90%;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.lff-message p {
  margin: 0 !important;
  color: inherit;
  font: inherit;
  white-space: pre-line;
}

.lff-message-user {
  margin: 0 0 13px auto;
  border-bottom-right-radius: 4px;
  background: var(--lff-accent, #128c68);
  color: #fff;
  font-weight: 500;
}

.lff-answer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.lff-answer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--lff-accent, #128c68) 16%, #fff);
}

.lff-answer-avatar-placeholder {
  display: block;
  background: var(--lff-accent, #128c68);
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--lff-accent, #128c68) 28%, #fff);
}

.lff-message-answer {
  border-bottom-left-radius: 4px;
  background: color-mix(in srgb, var(--lff-prompt-text, #17342b) 7%, var(--lff-prompt, #fff));
  color: var(--lff-prompt-text, #17342b);
}

.lff-chat-actions {
  margin-top: 14px;
}

.lff-chat-back {
  width: auto;
  margin: 8px auto 0;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
}

.lff-chat-back:hover {
  background: color-mix(in srgb, var(--lff-accent, #128c68) 6%, transparent) !important;
  color: var(--lff-accent, #128c68) !important;
}

.lff-chat-back:focus,
.lff-chat-back:active {
  background: transparent !important;
  background-image: none !important;
  color: var(--lff-accent, #128c68) !important;
}

.lff-chat-back::before,
.lff-chat-back::after {
  content: none !important;
  display: none !important;
}

.lff-chat-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lff-prompt-action {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 48px;
  margin: 0;
  padding: 12px 15px 12px 17px;
  border: 0 !important;
  border-radius: 13px;
  background: var(--lff-accent, #128c68) !important;
  background-image: none !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--lff-accent, #128c68) 16%, transparent);
  transition: filter .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.lff-prompt-action:hover {
  background: var(--lff-accent, #128c68) !important;
  background-image: none !important;
  color: #fff !important;
  filter: brightness(.97);
  transform: translateY(-1px);
  box-shadow: 0 11px 24px color-mix(in srgb, var(--lff-accent, #128c68) 20%, transparent);
}

.lff-prompt-action:focus,
.lff-prompt-action:active {
  background: var(--lff-accent, #128c68) !important;
  background-image: none !important;
  color: #fff !important;
}

.lff-prompt-action::before,
.lff-prompt-action::after {
  content: none !important;
  display: none !important;
}

.lff-prompt-action svg {
  width: 20px;
  height: 20px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.lff-feedback {
  position: absolute;
  right: 0;
  bottom: calc(var(--lff-size, 64px) + 14px);
  width: min(320px, calc(100vw - 32px));
  padding: 13px 15px;
  border-radius: 12px;
  background: #2f3033;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  font-size: 13px;
  line-height: 1.4;
}

.lff-root.is-left .lff-feedback {
  right: auto;
  left: 0;
}

.lff-root.animation-soft_pulse .lff-trigger::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--lff-button, #128c68);
  opacity: 0;
  animation: lff-soft-pulse 6.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.lff-root.animation-float .lff-trigger {
  animation: lff-float 6.4s ease-in-out infinite;
}

@keyframes lff-prompt-in {
  from { opacity: 0; transform: translateY(10px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lff-conversation-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lff-soft-pulse {
  0%, 68%, 100% { opacity: 0; transform: scale(1); }
  78% { opacity: .14; transform: scale(1.015); }
  92% { opacity: 0; transform: scale(1.09); }
}

@keyframes lff-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes lff-status-breathe {
  0%, 58%, 100% { box-shadow: 0 1px 4px rgba(0, 0, 0, .12), 0 0 0 0 rgba(114, 214, 166, 0); }
  76% { box-shadow: 0 1px 4px rgba(0, 0, 0, .10), 0 0 0 5px rgba(114, 214, 166, .15); }
}

@media (max-width: 680px) {
  .lff-root {
    right: var(--lff-mobile-x, 16px);
    bottom: calc(var(--lff-mobile-y, 16px) + env(safe-area-inset-bottom));
  }

  .lff-root.is-left {
    right: auto;
    left: var(--lff-mobile-x, 16px);
  }

  .lff-trigger {
    width: var(--lff-mobile-size, 60px);
    min-width: var(--lff-mobile-size, 60px);
    height: var(--lff-mobile-size, 60px);
    padding: 0;
  }

  .lff-trigger-icon {
    width: calc(var(--lff-mobile-size, 60px) * .42);
    height: calc(var(--lff-mobile-size, 60px) * .42);
  }

  .lff-status-dot {
    top: 3px;
    right: 7px;
    width: 8px;
    height: 8px;
  }

  .lff-trigger-label {
    display: none;
  }

  .lff-prompt {
    position: fixed;
    right: var(--lff-mobile-x, 16px);
    left: auto;
    bottom: calc(var(--lff-mobile-y, 16px) + var(--lff-mobile-size, 60px) + 12px + env(safe-area-inset-bottom));
    width: min(352px, calc(100vw - (var(--lff-mobile-x, 16px) * 2)));
    padding: 16px;
    border-radius: 22px;
    max-height: calc(100dvh - var(--lff-mobile-size, 60px) - var(--lff-mobile-y, 16px) - 42px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .lff-root.is-left .lff-prompt {
    right: auto;
    left: var(--lff-mobile-x, 16px);
  }

  .lff-prompt h2 {
    font-size: 17.5px;
  }

  .lff-prompt-text {
    margin: 12px 0 !important;
    font-size: 13px;
  }

  .lff-question {
    min-height: 42px;
    padding: 9px 11px 9px 13px;
    font-size: 12.75px;
  }

  .lff-question-list {
    gap: 6px;
  }

  .lff-prompt-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    padding-right: 34px;
  }

  .lff-photo {
    width: 44px;
    height: 44px;
  }

  .lff-eyebrow {
    font-size: 11px;
  }

  .lff-direct-action {
    margin-top: 10px;
    padding: 9px 11px;
  }

  .lff-conversation {
    margin-top: 13px;
  }

  .lff-message {
    padding: 10px 12px;
    font-size: 12.75px;
  }

  .lff-answer-avatar {
    width: 27px;
    height: 27px;
  }

  .lff-prompt-action {
    min-height: 44px;
    font-size: 13px;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .lff-prompt {
    padding: 14px;
  }

  .lff-question {
    min-height: 39px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .lff-prompt-text {
    margin: 10px 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lff-root,
  .lff-trigger,
  .lff-prompt,
  .lff-trigger::before,
  .lff-status-dot {
    animation: none !important;
    transition: none !important;
  }
}
