/* First-purchase coupon UX — brand primary (cyan/teal), not lime */

.kb-fp-status {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  box-sizing: border-box;
}
body.kb-fp-eligible .kb-fp-status:not([hidden]) {
  display: flex;
}

.kb-fp-status__apply,
.kb-fp-status__reapply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.55);
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.22), hsl(var(--primary) / 0.08) 55%, rgba(8, 14, 24, 0.72));
  color: hsl(var(--primary));
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.kb-fp-status__apply:hover,
.kb-fp-status__reapply:hover {
  border-color: hsl(var(--primary) / 0.85);
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.32), hsl(var(--primary) / 0.12) 55%, rgba(8, 14, 24, 0.78));
  box-shadow: 0 0 0 1px hsl(var(--primary) / 0.12), 0 8px 22px -16px hsl(var(--primary) / 0.55);
}
.kb-fp-status__apply:active,
.kb-fp-status__reapply:active {
  transform: translateY(1px);
}
.kb-fp-status__apply:disabled,
.kb-fp-status__reapply:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.kb-fp-status__apply[hidden],
.kb-fp-status__reapply[hidden] {
  display: none !important;
}

.kb-fp-status__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.kb-fp-status__applied {
  display: none;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.1);
  box-sizing: border-box;
}
.kb-fp-status__applied.is-on,
.kb-fp-status__applied:not([hidden]) {
  display: flex;
}
.kb-fp-status__applied[hidden] {
  display: none !important;
}
.kb-fp-status__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.kb-fp-status__copy strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: hsl(var(--primary));
}
.kb-fp-status__copy span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
.kb-fp-status__remove {
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
  touch-action: manipulation;
}
.kb-fp-status__remove:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.4);
}

/* Package price flash when FP discount applies/removes */
#package-price.is-kb-fp-flash,
[data-kb-sticky-price].is-kb-fp-flash {
  animation: kb-fp-price-flash 0.55s ease;
}
#package-price.is-kb-fp-discounted {
  color: hsl(var(--primary));
}
@keyframes kb-fp-price-flash {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.07);
    filter: brightness(1.18);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* Home banner (kept for optional use; not rendered on home) */
.kb-fp-banner {
  display: none;
  width: 100%;
  margin: 0.65rem 0 0.85rem;
  padding: 0 0.85rem;
  box-sizing: border-box;
}
body.kb-fp-eligible .kb-fp-banner:not([hidden]) {
  display: block;
}
.kb-fp-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  background:
    linear-gradient(105deg, hsl(var(--primary) / 0.16), rgba(8, 14, 24, 0.92) 42%, rgba(8, 14, 24, 0.96));
}
.kb-fp-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  background: hsl(var(--primary));
  color: #041018;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kb-fp-banner__text {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}
.kb-fp-banner__text strong {
  color: hsl(var(--primary));
}
.kb-fp-banner__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.55rem;
  background: hsl(var(--primary));
  color: #041018;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* Checkout first-purchase coupon — entre telefone e termos */
.kb-fp-slot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.35rem;
}
.kb-fp-slot[hidden] {
  display: none !important;
}
.kb-fp-checkout {
  display: none;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.08);
  box-sizing: border-box;
}
.kb-fp-checkout.is-on {
  display: flex;
}
.kb-fp-checkout__copy {
  flex: 1 1 auto;
  min-width: 0;
}
.kb-fp-checkout__copy strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: hsl(var(--primary));
}
.kb-fp-checkout__copy span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}
.kb-fp-checkout__remove {
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}
.kb-fp-apply,
.kb-fp-reapply {
  display: none;
  width: 100%;
  margin: 0;
  min-height: 2.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px dashed hsl(var(--primary) / 0.55);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.kb-fp-apply.is-on,
.kb-fp-reapply.is-on {
  display: block;
}
.kb-fp-apply[hidden],
.kb-fp-reapply[hidden] {
  display: none !important;
}
.kb-fp-blocked {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.35;
}
.kb-fp-blocked[hidden] {
  display: none !important;
}
#coupon.is-kb-fp-mode .kb-checkout__coupon,
#coupon.is-kb-fp-mode .kb-checkout__label {
  display: none !important;
}

/* Cart drawer hint */
.kb-fp-cart {
  display: none;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid hsl(var(--primary) / 0.28);
  background: hsl(var(--primary) / 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
}
body.kb-fp-eligible .kb-fp-cart {
  display: block;
}
.kb-fp-cart strong {
  color: hsl(var(--primary));
}
