.lpwp-widget {
  --lpwp-accent: #0f766e;
  color: #17201f;
  font-family: inherit;
  line-height: 1.45;
}

.lpwp-widget[hidden] {
  display: none !important;
}

.lpwp-widget--floating {
  bottom: 22px;
  position: fixed;
  z-index: 99999;
}

.lpwp-widget--right {
  right: 22px;
}

.lpwp-widget--left {
  left: 22px;
}

.lpwp-launcher,
.lpwp-submit,
.lpwp-whatsapp {
  align-items: center;
  background: var(--lpwp-accent);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration: none;
}

.lpwp-launcher {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.lpwp-launcher[hidden] {
  display: none !important;
}

.lpwp-launcher__dot {
  background: #d9fff8;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.lpwp-panel {
  background: #fff;
  border: 1px solid #d9e4e1;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.22);
  display: block;
  max-width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  width: 340px;
}

.lpwp-widget--floating .lpwp-panel {
  bottom: 58px;
  display: none;
  position: absolute;
}

.lpwp-widget--right .lpwp-panel {
  right: 0;
}

.lpwp-widget--left .lpwp-panel {
  left: 0;
}

.lpwp-widget--open .lpwp-panel,
.lpwp-widget--inline .lpwp-panel {
  display: block;
}

.lpwp-panel__head {
  align-items: flex-start;
  background: #f5faf8;
  border-bottom: 1px solid #dfeae7;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.lpwp-panel__head strong {
  display: block;
  font-size: 16px;
}

.lpwp-panel__head p {
  color: #52615e;
  font-size: 13px;
  margin: 4px 0 0;
}

.lpwp-close {
  background: transparent;
  border: 0;
  color: #52615e;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lpwp-form {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.lpwp-questions,
.lpwp-contact {
  display: grid;
  gap: 12px;
}

.lpwp-form label {
  color: #293937;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.lpwp-step[hidden],
.lpwp-contact[hidden],
.lpwp-submit[hidden],
.lpwp-next[hidden],
.lpwp-secondary[hidden] {
  display: none !important;
}

.lpwp-progress {
  display: block;
}

.lpwp-progress span {
  color: #52615e;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lpwp-progress i {
  background: #edf3f1;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
  position: relative;
  transition: width 0.2s ease;
  width: 100%;
}

.lpwp-progress i::before {
  background: var(--lpwp-accent);
  border-radius: 999px;
  content: "";
  display: block;
  height: 8px;
  transition: width 0.2s ease;
  width: var(--lpwp-progress, 0);
}

.lpwp-form input,
.lpwp-form textarea {
  background: #fff;
  border: 1px solid #ccd8d5;
  border-radius: 6px;
  box-sizing: border-box;
  color: #17201f;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.lpwp-form input:focus,
.lpwp-form textarea:focus {
  border-color: var(--lpwp-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lpwp-accent) 18%, transparent);
  outline: none;
}

.lpwp-submit,
.lpwp-whatsapp,
.lpwp-next,
.lpwp-secondary {
  justify-content: center;
  width: 100%;
}

.lpwp-step-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.lpwp-next,
.lpwp-secondary {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 14px;
}

.lpwp-next {
  background: var(--lpwp-accent);
  border: 0;
  color: #fff;
}

.lpwp-secondary {
  background: #fff;
  border: 1px solid #ccd8d5;
  color: #293937;
}

.lpwp-whatsapp {
  background: #1f9d62;
}

.lpwp-whatsapp[hidden] {
  display: none;
}

.lpwp-form--busy .lpwp-submit {
  opacity: 0.72;
  pointer-events: none;
}

.lpwp-form--sent {
  gap: 10px;
}

.lpwp-message {
  font-size: 14px;
  margin: 0;
}

.lpwp-message--success {
  color: #0f766e;
  background: #f1fbf8;
  border: 1px solid #cfe2dd;
  border-radius: 8px;
  padding: 12px;
}

.lpwp-message--error {
  color: #b42318;
}

.lpwp-hp {
  display: none !important;
}

@media (max-width: 520px) {
  .lpwp-widget--floating {
    bottom: max(14px, env(safe-area-inset-bottom));
    left: auto;
    right: 14px;
  }

  .lpwp-widget--floating .lpwp-panel {
    border-radius: 10px 10px 0 0;
    bottom: 0;
    box-shadow: 0 -14px 42px rgba(16, 24, 40, 0.24);
    left: 10px;
    max-height: calc(100dvh - 88px);
    max-width: none;
    overflow-y: auto;
    position: fixed;
    right: 10px;
    width: auto;
  }

  .lpwp-launcher {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    justify-content: center;
    max-width: calc(100vw - 28px);
    min-width: 132px;
    width: auto;
  }

  .lpwp-widget--open .lpwp-launcher {
    display: none;
  }

  .lpwp-panel__head {
    padding: 12px 14px;
  }

  .lpwp-panel__head strong {
    font-size: 15px;
  }

  .lpwp-panel__head p {
    font-size: 12px;
  }

  .lpwp-form {
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .lpwp-questions,
  .lpwp-contact {
    gap: 10px;
  }

  .lpwp-form textarea {
    min-height: 96px;
  }

  .lpwp-form input {
    min-height: 42px;
  }

  .lpwp-step-actions {
    gap: 8px;
  }

  .lpwp-next,
  .lpwp-secondary,
  .lpwp-submit,
  .lpwp-whatsapp {
    min-height: 42px;
    padding: 10px 12px;
  }
}
