/* ==========================================================================
   Multipack Bundle Pricing — WayAcross
   Paleta: #87B13B (primary), #295441 (dark green), #FFA41C (accent)
   Primary/dark-green route through --color-primary / --color-secondary
   (defined by the Akira theme's :root, driven by its color customizer);
   the var() fallback keeps every other theme on the literal hex values.
   ========================================================================== */

/* ── Container principal ───────────────────────────────────────────────── */
.pv-mp {
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ── Heading ───────────────────────────────────────────────────────────── */
.pv-mp__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6a7a5a;
}

.pv-mp__heading-icon {
  color: var(--color-primary, #87B13B);
  flex-shrink: 0;
}

/* ── Grid de tiers ─────────────────────────────────────────────────────── */
.pv-mp__tiers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* -- Tier card / button -------------------------------------------------- */
.pv-mp__tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 90px;
  padding: 10px 14px 10px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  line-height: 1.3;
  font-family: inherit;
}

.pv-mp__tier:hover {
  border-color: var(--color-primary, #87B13B);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary, #87B13B) 15%, transparent);
}

/* Estado seleccionado */
.pv-mp__tier.is-selected {
  border-color: var(--color-primary, #87B13B);
  background: color-mix(in srgb, var(--color-primary, #87B13B) 6%, transparent);
  box-shadow: 0 0 0 1px var(--color-primary, #87B13B);
}

.pv-mp__tier.is-selected .pv-mp__tier-qty {
  color: var(--color-secondary, #295441);
}

/* ── Badge de desconto ─────────────────────────────────────────────────── */
.pv-mp__tier-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 2px 7px;
  background: var(--color-primary, #87B13B);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.pv-mp__tier.is-selected .pv-mp__tier-badge {
  background: var(--color-secondary, #295441);
}

/* ── Quantidade ────────────────────────────────────────────────────────── */
.pv-mp__tier-qty {
  font-size: 16px;
  font-weight: 700;
  color: #282828;
  margin-top: 4px; /* room for the badge */
}

/* Base tier (qty=1) with no badge - remove the gap */
.pv-mp__tier:first-child .pv-mp__tier-qty {
  margin-top: 0;
}

/* -- Price per unit ------------------------------------------------------ */
.pv-mp__tier-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-secondary, #295441);
}

.pv-mp__tier-unit {
  font-size: 10px;
  color: #888;
  margin-top: -2px;
}

/* -- Saving -------------------------------------------------------------- */
.pv-mp__tier-savings {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-primary, #87B13B);
  margin-top: 2px;
  white-space: nowrap;
}

/* ── Responsivo ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .pv-mp__tiers {
    gap: 6px;
  }

  .pv-mp__tier {
    min-width: 78px;
    padding: 9px 10px;
  }

  .pv-mp__tier-qty {
    font-size: 14px;
  }
}
