/* InnoPet first-visit free-shipping lead popup */
.innopet-lead-popup {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: var(--innopet-font, "Kanit", sans-serif);
}
.innopet-lead-popup[hidden] {
  display: none !important;
}
.innopet-lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
}
.innopet-lead-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 28px 64px rgba(0, 51, 153, 0.22);
  animation: innopetLeadIn 0.35s ease-out;
}
@keyframes innopetLeadIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.innopet-lead-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #7a8799;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.innopet-lead-popup__close svg {
  display: block;
}
.innopet-lead-popup__visual {
  display: flex;
  justify-content: center;
  margin: 8px 32px 16px 0;
  padding: 10px 6px 8px;
}
.innopet-lead-popup__ticket {
  display: grid;
  grid-template-columns: 1.25fr 14px 0.95fr;
  width: 100%;
  max-width: 292px;
  min-height: 92px;
  filter: drop-shadow(0 12px 18px rgba(0, 51, 153, 0.2));
  transform-origin: center center;
  animation: innopetTicketWiggle 1.85s ease-in-out infinite;
}
@keyframes innopetTicketWiggle {
  0%,
  42%,
  100% {
    transform: rotate(-1.4deg);
  }
  48% {
    transform: rotate(-7deg) translateX(-3px);
  }
  56% {
    transform: rotate(5deg) translateX(3px);
  }
  64% {
    transform: rotate(-5.5deg) translateX(-2px);
  }
  72% {
    transform: rotate(2.8deg) translateX(1px);
  }
  80% {
    transform: rotate(-1.4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .innopet-lead-popup__ticket {
    animation: none;
    transform: rotate(-1.4deg);
  }
}
.innopet-lead-popup__ticket-brand,
.innopet-lead-popup__ticket-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.innopet-lead-popup__ticket-brand {
  background: linear-gradient(160deg, #1a4db8 0%, var(--innopet-navy, #003399) 100%);
  color: #fff;
  border-radius: 14px 0 0 14px;
  padding: 10px 10px 10px 14px;
  gap: 1px;
}
.innopet-lead-popup__ticket-brand span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.innopet-lead-popup__logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.innopet-lead-popup__ticket-cut {
  position: relative;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.85) 0 5px,
      transparent 5px 10px
    ),
    linear-gradient(var(--innopet-navy, #003399), var(--innopet-navy, #003399)),
    linear-gradient(var(--innopet-orange, #ff6a00), var(--innopet-orange, #ff6a00));
  background-size: 2px 100%, 50% 100%, 50% 100%;
  background-position: center, left, right;
  background-repeat: no-repeat;
}
.innopet-lead-popup__ticket-cut::before,
.innopet-lead-popup__ticket-cut::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
}
.innopet-lead-popup__ticket-cut::before { top: -8px; }
.innopet-lead-popup__ticket-cut::after { bottom: -8px; }
.innopet-lead-popup__ticket-offer {
  background: linear-gradient(160deg, #ff8533 0%, var(--innopet-orange, #ff6a00) 100%);
  color: #fff;
  border-radius: 0 14px 14px 0;
  padding: 10px 14px 10px 8px;
}
.innopet-lead-popup__ticket-offer strong {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.innopet-lead-popup__ticket-offer small {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.92;
}
.innopet-lead-popup__ticket.is-claimed .innopet-lead-popup__ticket-offer {
  background: linear-gradient(160deg, #22c55e 0%, #15803d 100%);
}
.innopet-lead-popup__ticket.is-claimed .innopet-lead-popup__ticket-cut {
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.85) 0 5px,
      transparent 5px 10px
    ),
    linear-gradient(var(--innopet-navy, #003399), var(--innopet-navy, #003399)),
    linear-gradient(#15803d, #15803d);
}
.innopet-lead-popup__badge {
  display: inline-flex;
  align-items: center;
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.innopet-lead-popup__badge--ok {
  background: #e8f6ea;
  color: #1f9d4b;
  border-color: #86efac;
}
.innopet-lead-popup__title {
  margin: 0 0 6px;
  color: var(--innopet-navy, #003399);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  padding-right: 28px;
}
.innopet-lead-popup__sub {
  margin: 0 0 18px;
  color: var(--innopet-muted, #5b6b7c);
  font-size: 0.95rem;
  line-height: 1.45;
}
.innopet-lead-popup__form .kb-advanced-form,
.innopet-lead-popup__form .wp-block-kadence-advanced-form {
  margin: 0;
}
.innopet-lead-popup__form .kb-adv-form-field {
  margin-bottom: 12px;
}
.innopet-lead-popup__form label {
  font-weight: 600;
  color: #1e293b;
}
.innopet-lead-popup__form input[type="text"],
.innopet-lead-popup__form input[type="tel"] {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.innopet-lead-popup__form input:focus {
  outline: 2px solid rgba(0, 51, 153, 0.25);
  border-color: var(--innopet-navy, #003399);
}
.innopet-lead-popup__form .kb-button,
.innopet-lead-popup__form button[type="submit"] {
  width: 100% !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--innopet-orange, #ff6a00) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 14px 18px !important;
  cursor: pointer;
  margin-top: 6px;
}
.innopet-lead-popup__form .kb-adv-form-success,
.innopet-lead-popup__form .kadence-blocks-form-message {
  display: none !important;
}
.innopet-lead-popup__code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.18em;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--innopet-navy, #003399);
  background: #fff;
  border: 2px dashed rgba(0, 51, 153, 0.35);
  border-radius: 14px;
  padding: 18px 12px;
  margin: 0 0 14px;
  user-select: all;
}
.innopet-lead-popup__copy,
.innopet-lead-popup__done {
  width: 100%;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 16px;
  cursor: pointer;
}
.innopet-lead-popup__copy {
  background: var(--innopet-navy, #003399);
  color: #fff;
  margin-bottom: 8px;
}
.innopet-lead-popup__done {
  background: transparent;
  color: var(--innopet-navy, #003399);
  border: 1px solid #c9d4e5;
}
body.innopet-lead-popup-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .innopet-lead-popup__dialog {
    width: 100%;
    padding: 24px 18px 18px;
  }
  .innopet-lead-popup__title {
    font-size: 1.28rem;
  }
  .innopet-lead-popup__code-box {
    font-size: 1.55rem;
    letter-spacing: 0.14em;
  }
}
