/** Shopify CDN: Minification failed

Line 525:14 Unexpected "@keyframes"

**/
/* ─── BUNDLE BUILDER — Papills ─────────────────────────────────────────────
   Layout fidèle au screenshot Flocon Rebel, adapté branding Papills.
   Mobile-first. Variables CSS modifiables sans toucher au reste.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bb-text:          #1a1a1a;
  --bb-text-muted:    #6b7280;
  --bb-border:        #e5e7eb;
  --bb-border-active: #1a1a1a;
  --bb-bg:            #ffffff;
  --bb-bg-soft:       #f9fafb;
  --bb-green:         #1a5c38;
  --bb-green-light:   #e8f5ee;
  --bb-badge-orange:  #f59e0b;
  --bb-radius:        14px;
  --bb-radius-sm:     8px;
}

/* ─── WRAPPER ─────────────────────────────────────────────────────────── */

.bb-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  font-family: inherit;
  color: var(--bb-text);
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 10;
}

/* ─── STEP HEADER ─────────────────────────────────────────────────────── */

.bb-step {
  margin-bottom: 22px;
}

.bb-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bb-text);
  color: #fff;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bb-step-label {
  font-weight: 700;
  font-size: 1rem;
}

/* ─── OFFER BAR (remises per-SKU) ─────────────────────────────────────── */

/* ─── PRODUCT CARDS ───────────────────────────────────────────────────── */

.bb-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Relégation automatique : les produits en rupture passent en bas de liste,
   quel que soit l'ordre du DOM. Les produits actifs gardent l'ordre configuré. */
.bb-products .bb-card       { order: 0; }
.bb-products .bb-card--oos  { order: 1; }

.bb-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bb-bg);
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 12px 14px;
  transition: border-color .2s;
  overflow: hidden;
}

.bb-card:not(.bb-card--oos):has(.bb-qty:not(:empty)):not([data-qty="0"]) {
  border-color: var(--bb-border-active);
}

.bb-card--oos {
  opacity: .55;
}

.bb-bestseller-badge {
  display: inline-block;
  background: var(--bb-badge-orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .06em;
  white-space: nowrap;
  margin-bottom: 4px;
}

.bb-oos-badge {
  display: inline-block;
  background: var(--bb-bg-soft);
  color: var(--bb-text-muted);
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--bb-border);
  letter-spacing: .04em;
  margin-bottom: 4px;
}

/* ─── IMAGE PRODUIT ───────────────────────────────────────────────────── */

.bb-card-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-card-img img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.bb-card-body {
  flex: 1;
  min-width: 0;
}

.bb-card-name {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 3px;
}

.bb-card-tagline {
  font-size: .75rem;
  color: var(--bb-text-muted);
  line-height: 1.3;
}

/* ─── COUNTER ─────────────────────────────────────────────────────────── */

.bb-counter {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.bb-counter--disabled {
  pointer-events: none;
}

.bb-btn-minus,
.bb-btn-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 50%;
  transition: background .15s, opacity .15s;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.bb-btn-minus {
  background: var(--bb-bg-soft);
  color: var(--bb-text);
  border: 1.5px solid var(--bb-border);
}

.bb-btn-minus:not(:disabled):hover {
  background: #ebebeb;
}

.bb-btn-plus {
  background: var(--bb-text);
  color: #fff;
}

.bb-btn-plus:not(:disabled):hover {
  background: #333;
}

.bb-btn-minus:disabled,
.bb-btn-plus:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.bb-qty {
  display: inline-block;
  width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}

/* ─── FREQUENCY ───────────────────────────────────────────────────────── */

.bb-frequency {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bb-freq-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bb-bg);
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.bb-freq-card--active {
  border-color: var(--bb-border-active);
}

.bb-freq-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bb-border);
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s;
}

.bb-freq-card--active .bb-freq-radio-dot,
.bb-freq-radio-dot--active {
  border-color: var(--bb-text);
}

.bb-freq-card--active .bb-freq-radio-dot::after,
.bb-freq-radio-dot--active::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bb-text);
}

.bb-freq-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bb-freq-name {
  font-weight: 600;
  font-size: .92rem;
}

.bb-freq-badge {
  background: var(--bb-text);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.bb-freq-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.bb-freq-orig {
  font-size: .8rem;
  color: var(--bb-text-muted);
  text-decoration: line-through;
}

.bb-freq-active-price {
  font-weight: 700;
  font-size: .95rem;
}

/* Subscription expand */
.bb-sub-expand {
  width: 100%;
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease;
}

.bb-freq-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1.5px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  background: var(--bb-bg);
  font-size: .88rem;
  color: var(--bb-text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  margin-top: 10px;
}

/* Perks */
.bb-sub-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 4px;
  text-align: center;
}

.bb-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  color: var(--bb-text);
  line-height: 1.3;
}

.bb-perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bb-bg-soft);
  flex-shrink: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--bb-text);
}

/* ─── ATC ─────────────────────────────────────────────────────────────── */

.bb-atc-zone {
  position: sticky;
  bottom: 0;
  background: var(--bb-bg);
  padding: 12px 0 8px;
  border-top: 1px solid var(--bb-border);
  margin-top: 8px;
}

.bb-atc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bb-text);
  color: #fff;
  border: none;
  border-radius: var(--bb-radius);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, opacity .2s;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.bb-atc-btn:not(:disabled):hover {
  background: #2a2a2a;
}

.bb-atc-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.bb-atc-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bb-atc-orig {
  font-size: .82rem;
  text-decoration: line-through;
  opacity: .6;
  font-weight: 400;
}

.bb-atc-main {
  font-weight: 700;
}

/* Trust bar */
/* ─── NUDGE ───────────────────────────────────────────────────────────── */

@keyframes bb-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.025); }
  70%  { transform: scale(.985); }
  100% { transform: scale(1); }
}

.bb-nudge {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  background: #fff8e6;
  border: 1px solid #f5d77a;
  border-radius: var(--bb-radius-sm);
  font-size: .8rem;
  font-weight: 500;
  color: #92670a;
  height: 38px;
  box-sizing: border-box;
  overflow: hidden;
  transform-origin: left center;
}

.bb-nudge--animate {
  animation: bb-pop .35s ease;
}

#bb-nudge-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-nudge--empty {
  color: var(--bb-text-muted);
  background: var(--bb-bg-soft);
  border-color: var(--bb-border);
}

.bb-nudge--success {
  background: var(--bb-green-light);
  border-color: var(--bb-primary-mid);
  color: var(--bb-green);
}

/* ─── Animation nudge (pop + slide-in) ───────────────────────────────── */
@keyframes bb-nudge-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.025); }
  60%  { transform: scale(0.99); }
  100% { transform: scale(1); }
}

@keyframes bb-nudge-slide {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.bb-nudge--animate {
  animation: bb-nudge-pop .35s ease;
}

#bb-nudge-text@keyframes bb-nudge-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CARD PRICE ─────────────────────────────────────────────────────── */

/* ─── SELECTED CARD ───────────────────────────────────────────────────── */

.bb-card--selected {
  border-color: var(--bb-text) !important;
}

/* ─── PRICE NOTE ──────────────────────────────────────────────────────── */

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */

/* Mobile : nudge réservé sur 2 lignes pour éviter tout scroll au changement de texte */
@media (max-width: 600px) {
  .bb-nudge {
    height: auto;
    min-height: 56px; /* 2 lignes réservées en permanence */
    align-items: center;
    flex-wrap: wrap;
  }
  #bb-nudge-text {
    white-space: normal; /* permet le retour à la ligne */
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .bb-atc-btn     { font-size: .85rem; padding: 14px 12px; }
  }

@media (min-width: 480px) {
  .bb-card        { padding: 14px 18px; }
  }