/* Standalone replicas for Shopify dynamic checkout / installment web components */

.sp-installments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body-family);
  font-size: 1.35rem;
  line-height: 1.45;
  color: #121212;
  margin: 1.4rem 0 1.8rem;
  letter-spacing: 0.01rem;
}

.sp-installments__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: #f0ebfe;
  color: #5a31f4;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
}

.sp-installments__badge svg {
  width: 11px;
  height: 11px;
  fill: #5a31f4;
  flex-shrink: 0;
}

.sp-installments__shop-logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: #5a31f4;
  height: 16px;
}

.sp-installments__shop-logo svg {
  height: 15px;
  width: auto;
  display: block;
}

.sp-installments__info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: 2px;
  cursor: pointer;
  color: #555;
  vertical-align: middle;
  line-height: 1;
}

.sp-installments__info-btn:hover {
  color: #121212;
}

.sp-installments__info-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Accelerated checkout ("Comprar con shop" + "Más opciones de pago") */
.sp-accelerated-checkout {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

.sp-shop-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 4.5rem;
  padding: 0 2rem;
  border: 0;
  border-radius: var(--buttons-radius, 8px);
  background-color: #5a31f4;
  color: #ffffff;
  font-family: var(--font-body-family);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
}

.sp-shop-pay-btn:hover {
  background-color: #4920e0;
}

.sp-shop-pay-btn:active {
  transform: scale(0.995);
}

.sp-shop-pay-btn svg {
  height: 18px;
  width: auto;
  display: block;
  margin-top: 1px;
}

.sp-more-options-btn {
  display: block;
  width: fit-content;
  margin: 1.2rem auto 0.4rem;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-body-family);
  font-size: 1.35rem;
  color: #121212;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  letter-spacing: 0.02rem;
}

.sp-more-options-btn:hover {
  opacity: 0.75;
}

/* Installment info modal */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sp-modal-overlay.is-open {
  display: flex;
}

.sp-modal-dialog {
  background: #ffffff;
  color: #121212;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 24px 24px 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  font-family: var(--font-body-family);
}

.sp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f4f4f6;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-modal-close:hover {
  background: #e8e8ec;
}

.sp-modal-dialog h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #121212;
}

.sp-modal-dialog p {
  font-size: 1.45rem;
  line-height: 1.5;
  color: #444;
  margin: 0 0 12px;
}

/* Standalone Cart Drawer item styling when populated */
.drawer.active {
  visibility: visible;
}

.cart-drawer-populated .drawer__inner-empty {
  display: none !important;
}

.cart-drawer-populated cart-drawer-items.is-empty {
  display: block !important;
}

.standalone-cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  align-items: flex-start;
}

.standalone-cart-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.standalone-cart-item__info {
  flex: 1;
  min-width: 0;
}

.standalone-cart-item__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #121212;
  margin: 0 0 4px;
  line-height: 1.3;
}

.standalone-cart-item__price {
  font-size: 1.4rem;
  color: #121212;
  margin: 0 0 10px;
}

.standalone-cart-item__price s {
  color: #888;
  margin-right: 6px;
}

.standalone-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 18, 18, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.standalone-cart-qty button {
  background: #fff;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #121212;
}

.standalone-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
}

.standalone-cart-remove {
  background: none;
  border: none;
  color: #888;
  font-size: 1.25rem;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px;
}

.standalone-cart-footer {
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  padding: 16px 0 8px;
  margin-top: auto;
}

.standalone-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #121212;
}

.standalone-cart-note {
  font-size: 1.25rem;
  color: #666;
  margin: 0 0 14px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* High-conversion pulse + shine effect on main Buy Now CTA */
.product-form__buttons {
  max-width: 100% !important;
}

.button.cta-pulse-shine {
  position: relative;
  min-height: 5.2rem;
  padding: 1.2rem 2rem;
  line-height: 1.25;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.03rem;
  animation: ctaPulseGlow 2.1s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
  will-change: transform, box-shadow;
}

.button.cta-pulse-shine:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.025);
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(255, 127, 195, 0.55);
}

.button.cta-pulse-shine:active {
  transform: scale(0.985);
}

.cta-btn-label {
  position: relative;
  z-index: 2;
}

.cta-shine-wrap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cta-shine-bar {
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-22deg);
  animation: ctaShineSweep 3.2s ease-in-out infinite;
}

@keyframes ctaPulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(255, 127, 195, 0.4), 0 0 0 0 rgba(255, 151, 198, 0.75);
  }
  40% {
    transform: scale(1.035);
    box-shadow: 0 10px 26px rgba(255, 127, 195, 0.55), 0 0 0 14px rgba(255, 151, 198, 0);
  }
  52% {
    transform: scale(1.015) rotate(-0.8deg);
  }
  60% {
    transform: scale(1.025) rotate(0.8deg);
  }
  68% {
    transform: scale(1.01) rotate(0deg);
  }
}

@keyframes ctaShineSweep {
  0%, 55% {
    left: -65%;
  }
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.cta-pulse-shine,
  .cta-shine-bar {
    animation: none;
  }
}

/* BDV Pago Móvil trust note under Buy Now button */
.bdv-payment-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 1.2rem 0 0.6rem;
  text-align: center;
}

.bdv-payment-note__text {
  margin: 0;
  font-family: var(--font-body-family);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 600;
  color: #3a2f45;
  letter-spacing: 0.01rem;
}

.bdv-payment-note__logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 115px;
  object-fit: contain;
}

.kf-bdv-strip {
  background: #ffffff;
  padding: 18px 20px;
  text-align: center;
}

.kf-bdv-strip .bdv-payment-note {
  margin: 0;
}

.kf-bdv-strip .bdv-payment-note__logo {
  height: 34px;
  width: auto;
}

/* Redesigned High-Impact Price Card (adapted to Kit Fiesta Mágica palette) */
.kf-price-card {
  background: #fdf6fa;
  border: 1.5px solid #f3d3e3;
  border-radius: 16px;
  padding: 20px 16px 16px;
  margin: 1.6rem 0 1.8rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(108, 56, 138, 0.08);
  font-family: var(--font-body-family);
}

.kf-price-card__badge {
  display: inline-block;
  background: linear-gradient(90deg, #d1588f 0%, #f27fb2 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.02rem;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(209, 88, 143, 0.28);
}

.kf-price-card__compare {
  font-size: 2.1rem;
  font-weight: 700;
  color: #8a7f93;
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: 0.01rem;
}

.kf-price-card__compare s {
  text-decoration-thickness: 2.5px;
  text-decoration-color: #8a7f93;
}

.kf-price-card__sale {
  font-size: 4.5rem;
  font-weight: 800;
  color: #25a9a2;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
}

.kf-price-card__bcv {
  font-size: 1.55rem;
  font-weight: 700;
  color: #6c388a;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Urgency banner inside price card */
.kf-urgency-box {
  background: #ffffff;
  border: 1.5px solid #f27fb2;
  border-radius: 12px;
  padding: 10px 10px;
  margin: 0 auto 12px;
  box-shadow: 0 3px 12px rgba(209, 88, 143, 0.14);
}

.kf-urgency-box__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
  font-size: clamp(1.02rem, 2.75vw, 1.32rem);
  line-height: 1.25;
  color: #b52465;
  font-weight: 700;
}

.kf-urgency-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e11d48;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: kfUrgencyPing 1.5s infinite;
}

.kf-urgency-bar {
  width: 100%;
  height: 7px;
  background: #fde3ef;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.kf-urgency-bar__fill {
  display: block;
  width: 88%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d1588f 0%, #e11d48 100%);
  animation: kfBarPulse 2.2s ease-in-out infinite;
}

@keyframes kfUrgencyPing {
  0% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

@keyframes kfBarPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

.kf-price-card__viewers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 5px;
  font-size: clamp(1.02rem, 2.7vw, 1.3rem);
  line-height: 1.3;
  color: #3a2f45;
  padding-top: 10px;
  border-top: 1px dashed rgba(108, 56, 138, 0.18);
  width: 100%;
}

.kf-price-card__viewers-icon {
  width: 18px;
  height: 18px;
  fill: #25a9a2;
  flex-shrink: 0;
}

.kf-price-card__viewers-num {
  color: #d1588f;
  font-weight: 800;
}

@media screen and (max-width: 749px) {
  .kf-price-card__sale {
    font-size: 3.9rem;
  }
  .kf-price-card__compare {
    font-size: 1.9rem;
  }
}
