.ppv-ask-mo {
  --ppv-green: #115c47;
  --ppv-green-dark: #0a3d30;
  --ppv-cream: #f7f4ed;
  --ppv-ink: #17211e;
  position: fixed;
  z-index: 999980;
  right: 22px;
  bottom: 22px;
  font-family: inherit;
  color: var(--ppv-ink);
}

.ppv-ask-mo.offer-is-open {
  opacity: 0;
  pointer-events: none;
}

.ppv-ask-mo__launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--ppv-green);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ppv-ask-mo__launcher:hover,
.ppv-ask-mo__launcher:focus-visible {
  background: var(--ppv-green-dark);
  transform: translateY(-1px);
}

.ppv-ask-mo__launcher-icon,
.ppv-ask-mo__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: var(--ppv-green);
  font-weight: 800;
}

.ppv-ask-mo__panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(380px, calc(100vw - 28px));
  height: min(600px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid rgba(17, 92, 71, .18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.ppv-ask-mo__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  animation: ppvAskMoIn .2s ease-out;
}

.ppv-ask-mo__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  background: var(--ppv-green);
  color: #fff;
}

.ppv-ask-mo__header strong,
.ppv-ask-mo__header span {
  display: block;
}

.ppv-ask-mo__status {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #7ff0bd;
  box-shadow: 0 0 0 3px rgba(127, 240, 189, .16);
  animation: ppvPixelPulse 2s ease-in-out infinite;
}

.ppv-ask-mo__header strong {
  font-size: 17px;
  line-height: 1.2;
}

.ppv-ask-mo__header span {
  margin-top: 2px;
  font-size: 12px;
  opacity: .86;
}

.ppv-ask-mo__close {
  margin-left: auto;
  padding: 5px 7px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ppv-ask-mo__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--ppv-cream);
}

.ppv-ask-mo__message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 11px;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  animation: ppvPixelMessageIn .18s ease-out;
}

.ppv-ask-mo__message--bot {
  margin-right: auto;
  border-bottom-left-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .06);
}

.ppv-ask-mo__message--user {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: var(--ppv-green);
  color: #fff;
}

.ppv-ask-mo__message.is-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 48px;
  padding: 14px 15px;
}

.ppv-ask-mo__message.is-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #71807b;
  animation: ppvPixelTyping 1s ease-in-out infinite;
}

.ppv-ask-mo__message.is-typing i:nth-of-type(2) {
  animation-delay: .14s;
}

.ppv-ask-mo__message.is-typing i:nth-of-type(3) {
  animation-delay: .28s;
}

.ppv-ask-mo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.ppv-ask-mo__actions a {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid var(--ppv-green);
  border-radius: 999px;
  color: var(--ppv-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ppv-ask-mo__quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid #e6e8e6;
  background: #fff;
  scrollbar-width: thin;
}

.ppv-ask-mo__quick button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #cbd5d1;
  border-radius: 999px;
  background: #fff;
  color: var(--ppv-green-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.ppv-ask-mo__form {
  display: flex;
  gap: 8px;
  padding: 11px 12px 5px;
  border-top: 1px solid #e6e8e6;
  background: #fff;
}

.ppv-ask-mo__form input[type="text"]:not(.ppv-ask-mo__website) {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cbd5d1;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
}

.ppv-ask-mo__form button {
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  background: var(--ppv-green);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ppv-ask-mo__form.is-waiting button {
  opacity: .55;
  pointer-events: none;
}

.ppv-ask-mo__website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}

.ppv-ask-mo__privacy {
  margin: 0;
  padding: 2px 12px 9px;
  background: #fff;
  color: #6c7571;
  font-size: 10px;
  text-align: center;
}

@keyframes ppvAskMoIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ppvPixelMessageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ppvPixelTyping {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes ppvPixelPulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@media (max-width: 600px) {
  .ppv-ask-mo {
    right: 14px;
    bottom: 14px;
  }

  .ppv-ask-mo__panel {
    position: fixed;
    right: 10px;
    bottom: 78px;
    left: 10px;
    width: auto;
    height: min(620px, calc(100dvh - 96px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppv-ask-mo__panel:not([hidden]) {
    animation: none;
  }

  .ppv-ask-mo__message,
  .ppv-ask-mo__message.is-typing i,
  .ppv-ask-mo__status {
    animation: none;
  }

  .ppv-ask-mo__launcher:hover {
    transform: none;
  }
}

/* Keep the new customer offer fully inside every mobile viewport. */
.ppv-new-client-offer {
  box-sizing: border-box;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 600px) {
  .ppv-new-client-offer {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 19px 17px 16px;
  }

  .ppv-new-client-offer h2 {
    margin-right: 30px;
    font-size: clamp(19px, 5.5vw, 22px);
  }

  .ppv-new-client-offer .ppv-offer-gift,
  .ppv-new-client-offer .ppv-offer-fine,
  .ppv-new-client-offer .ppv-offer-code {
    overflow-wrap: anywhere;
  }
}
