/* =====================================================================================================================
   DG-STOREFRONT-CSS-CONSOLIDATION-30 (Mark 30 Nov 2026) — the ONE owner of the storefront's shared component styles below. Each family
   has one base and only its named variants. The former copies in the page / component files are removed, so those files keep only
   placement and layout (grid cell, margin, alignment) of these parts. Add a variant here, never a second base elsewhere.
   ===================================================================================================================== */

/* ---- 1 money-saving pill: "You save" / "Ahorras" + amount (App\Ui\SavingPill, cart summary, payment, modal and upsell JS).
   The media sale badge (.d-pcard-badge) is another component. The same look during every campaign. ---- */
body.v3-storefront[data-storefront="unified"] .d-saving-pill {
  display: inline-flex;
  align-items: baseline;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2f8f27;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
}
body.v3-storefront[data-storefront="unified"] .d-saving-pill[hidden] {
  display: none;
}
body.v3-storefront[data-storefront="unified"] .d-saving-pill > .d-saving-label {
  margin-right: 0.35em;
  color: #fff;
  font-weight: 400;
}
body.v3-storefront[data-storefront="unified"] .d-saving-pill > .d-saving-amount {
  color: #fff;
  font-weight: 800;
}
/* placement: under a card price on its own line, under a detail price, and at the right edge under an order total */
body.v3-storefront[data-storefront="unified"] .d-price:has(> .d-saving-pill)::before {
  content: "";
  order: 1;
  flex: 0 0 100%;
  height: 0;
}
body.v3-storefront[data-storefront="unified"] .d-price > .d-saving-pill {
  order: 1;
  flex: 0 0 auto;
}
body.v3-storefront[data-storefront="unified"] .d-priceblock > .d-saving-pill {
  align-self: flex-start;
  justify-self: start;
  margin-top: 4px;
}
body.v3-storefront[data-storefront="unified"] :is(.d-csum, .d-cosum) .d-saving-pill:not([hidden]) {
  display: flex;
  margin: 6px 0 0 auto;
}
body.v3-storefront[data-storefront="unified"] .d-csum .d-saving-pill:not([hidden]) {
  margin-bottom: 14px;
}
body.v3-storefront[data-storefront="unified"] :is(.d-upo-meta, .d-upo-strip-price) > .d-saving-pill {
  align-self: center;
}

/* ---- 2 the list card's words (home store, Order again, Popular picks, search): product and pack name with the pack's family / type
   spans, description, variant line. The grid cards and the detail keep their own scale. ---- */
body.v3-storefront[data-storefront="unified"] .d-prow .d-prow-name {
  color: var(--ink, #171d18);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}
body.v3-storefront[data-storefront="unified"] .d-prow .d-prow-desc {
  color: #4d574f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}
body.v3-storefront[data-storefront="unified"] .d-prow .d-pcard-variant {
  color: #5e6862;
  font-size: 13px;
  font-weight: 400;
}
@media (max-width: 999px) {
  body.v3-storefront[data-storefront="unified"] .d-prow .d-prow-name {
    font-size: 18px;
  }
}

/* ---- 3 the product / pack role pill: card eyebrow slot and Quick View. Not the section eyebrow, not a sale or stock label. ---- */
body.v3-storefront[data-storefront="unified"] .d-pcard-cat.d-rolepill,
body.v3-storefront[data-storefront="unified"] .d-qv-role .d-rolepill {
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  width: auto;
  max-width: 100%;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: #eee1ee;
  color: var(--berry-dark, #6b0f4d);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal; /* DG-HOME-MEET-SUPPORT-DESC-30: a longer role wraps, its function is never cut off */
}

/* ---- 4 the guest's green "Unlock prices" action: list card and full detail (each keeps its own size) ---- */
body.v3-storefront[data-storefront="unified"] :is(.d-prow .c-card-buycol, .c-fdm .c-fdm-unlock) > .c-unlock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #2e8528;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
}
body.v3-storefront[data-storefront="unified"] :is(.d-prow .c-card-buycol, .c-fdm .c-fdm-unlock) > .c-unlock:hover {
  background: #26721f;
}
body.v3-storefront[data-storefront="unified"] :is(.d-prow .c-card-buycol, .c-fdm .c-fdm-unlock) > .c-unlock :is([data-ico], .ico) {
  color: #fff;
}
