/* Compact benefits strip under product CTAs */
.ptb-product-perks {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 14px;
  background: #f7f8f8;
  overflow: hidden;
}

.ptb-product-perks--desktop {
  display: flex;
}

.ptb-product-perks--mobile {
  display: none;
}

@media screen and (max-width: 767px) {
  .ptb-product-perks--desktop {
    display: none !important;
  }

  .ptb-product-perks--mobile {
    display: flex !important;
  }
}

.ptb-product-perks__cell {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  box-sizing: border-box;
  text-align: center;
}

.ptb-product-perks__cell + .ptb-product-perks__cell {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.ptb-product-perks__cell--delivery .ptb-product-perks__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

.ptb-product-perks__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.ptb-product-perks__row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.ptb-product-perks__value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #2f6f6c;
}

.ptb-product-perks__prefix {
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0;
  color: #7a8481;
  text-transform: lowercase;
}

.ptb-product-perks__num {
  font: inherit;
}

.ptb-product-perks__currency {
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0;
  color: #2f6f6c;
}

.ptb-product-perks__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #3a4240;
  white-space: nowrap;
}

.ptb-product-perks__cell--delivery .ptb-product-perks__label {
  color: #c11960;
}

.ptb-product-perks__cell--bonus .ptb-product-perks__label {
  font-size: 11px;
  font-weight: 500;
  color: #7a8481;
}

.ptb-product-perks__dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c11960;
  opacity: 0.85;
}

.ptb-product-perks__info {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 1px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9aa3a0;
  text-decoration: none;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ptb-product-perks__info:hover,
.ptb-product-perks__info:focus {
  color: #408C89;
  background: rgba(64, 140, 137, 0.1);
  outline: none;
}

.ptb-product-perks__info-icon {
  display: block;
  width: 14px;
  height: 14px;
}

.ptb-product-perks__cell--blocked .ptb-product-perks__label {
  color: #8a9190;
}

.ptb-product-perks__cell--blocked .ptb-product-perks__value {
  display: none;
}

/* Hide legacy free-delivery lines when strip is used */
.ptb-product-perks + .product-free-delivery-note,
.product-free-delivery-note.ptb-product-perks-hidden {
  display: none !important;
}

/* Rules-only modal on product card */
.ptb-bonus-rules-modal.ptb-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding: 20px;
  box-sizing: border-box;
}

.ptb-bonus-rules-modal[hidden] {
  display: none !important;
}

.ptb-bonus-rules-modal .ptb-checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 52, 52, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ptb-bonus-rules-modal .ptb-checkout-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 380px;
  width: 100%;
  max-height: min(88vh, 520px);
  overflow: auto;
  padding: 20px 20px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  animation: ptb-bonus-rules-modal-in 0.25s ease;
}

@keyframes ptb-bonus-rules-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ptb-bonus-rules-modal .ptb-checkout-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f1f3;
  cursor: pointer;
  color: #6b6b6b;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  font-size: 0;
  transition: background 0.2s, color 0.2s;
}

.ptb-bonus-rules-modal .ptb-checkout-modal__close:hover {
  background: #e4e5e8;
  color: #222;
}

.ptb-bonus-rules-modal .ptb-checkout-modal__close-glyph {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ptb-bonus-rules-modal .ptb-checkout-modal__close-glyph::before,
.ptb-bonus-rules-modal .ptb-checkout-modal__close-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: 0;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center center;
}

.ptb-bonus-rules-modal .ptb-checkout-modal__close-glyph::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ptb-bonus-rules-modal .ptb-checkout-modal__close-glyph::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ptb-bonus-rules-modal .ptb-checkout-modal__title {
  margin: 0 36px 14px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  text-transform: none;
}

.ptb-bonus-rules-modal__list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.ptb-bonus-rules-modal__list li {
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #3a4240;
}

.ptb-bonus-rules-modal__list li:last-child {
  margin-bottom: 0;
}

body.ptb-bonus-rules-open {
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .ptb-product-perks {
    margin-top: 12px;
    border-radius: 12px;
  }

  .ptb-product-perks__cell {
    padding: 9px 8px;
    gap: 6px;
  }

  .ptb-product-perks__value {
    font-size: 19px;
  }

  .ptb-product-perks__label {
    font-size: 11px;
  }

  .ptb-product-perks__cell--bonus .ptb-product-perks__label {
    font-size: 10px;
  }

  .ptb-product-perks__info {
    width: 16px;
    height: 16px;
  }

  .ptb-product-perks__info-icon {
    width: 13px;
    height: 13px;
  }
}
