/* Vanityform v0.78 — PDP pack badge polish
   Prevents the MOST POPULAR / BEST VALUE labels from feeling cramped or being clipped.
   This patch is shared by the reusable Beauty PDP master, not tied to one product. */

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp334-qty-card__badge{
  width:max-content!important;
  max-width:none!important;
  min-height:26px!important;
  box-sizing:border-box!important;
  padding:6px 12px!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  border-radius:7px!important;
  font:700 .60rem/1 "DM Sans",sans-serif!important;
  letter-spacing:.055em!important;
  line-height:1!important;
}

/* Reserve enough breathing room for the two approved merchandising labels. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card[data-pp327-qty-card="2"] .pp334-qty-card__badge{
  min-width:106px!important;
  justify-content:center!important;
  text-align:center!important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card[data-pp327-qty-card="3"] .pp334-qty-card__badge{
  min-width:88px!important;
  justify-content:center!important;
  text-align:center!important;
}

/* The badge intentionally sits above the card edge; every ancestor must allow it to breathe. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp327-quantity__cards,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-quantity__cards,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp327-qty-card,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card__top{
  overflow:visible!important;
}

/* Keep the pill comfortable on phones without reintroducing ellipsis/clipping. */
@media (max-width:430px){
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp334-qty-card__badge{
    min-height:24px!important;
    padding:5px 10px!important;
    font-size:.54rem!important;
    letter-spacing:.045em!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card[data-pp327-qty-card="2"] .pp334-qty-card__badge{
    min-width:98px!important;
  }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card[data-pp327-qty-card="3"] .pp334-qty-card__badge{
    min-width:82px!important;
  }
}

@media (max-width:360px){
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp334-qty-card__badge{
    padding-inline:8px!important;
    font-size:.50rem!important;
    letter-spacing:.035em!important;
  }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card[data-pp327-qty-card="2"] .pp334-qty-card__badge{
    min-width:92px!important;
  }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp329-qty-card[data-pp327-qty-card="3"] .pp334-qty-card__badge{
    min-width:78px!important;
  }
}
