/* Discount Messaging V1: scoped to the three isolated test pages. */
[data-discount-messaging] {
  --dm-yellow: #ffe99f;
  --dm-green: #209b28;
  --dm-ink: #291d17;
}
.dm-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: var(--dm-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dm-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  background: white;
  mask: url('../images/cyog-bb-check-on.svg') center / contain no-repeat;
}
.dm-icon--lock::before {
  mask-image: url('../images/6a9955476934e22ce6afbc1a_Icon-_-lock-01.svg');
}
.dm-home, .dm-cart, .dm-toast, .dm-cta-pill {
  color: var(--dm-ink);
  background: var(--dm-yellow);
  font-family: 'Sofia Pro', Arial, sans-serif;
}
.dm-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.25;
}
.dm-home-copy { display: flex; align-items: center; gap: 8px; }
.dm-home strong { font-weight: 700; white-space: nowrap; }
.dm-home-copy > span { white-space: nowrap; }
.dm-divider { opacity: .25; margin: 0 3px; }
[data-discount-messaging="pdp"] #section-single { position: relative; }
.dm-toast {
  background: rgba(255, 232, 159, 1);
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  box-sizing: border-box;
  width: 368px;
  height: 78px;
  max-width: calc(100% - 16px);
  border: 1px solid rgba(77, 28, 26, 0.08);
  border-radius: 999px;
  box-shadow: 0 2px 4px -2px var(--AlphasDarkAlpha5, rgba(0, 0, 0, 0.05)), 0 4px 8px -2px var(--AlphasDarkAlpha10, rgba(0, 0, 0, 0.1));
  line-height: 1.25;
  animation: dm-toast-in 420ms cubic-bezier(.22, 1, .36, 1) 120ms both;
}
.dm-toast .dm-icon { position: relative; width: 44px; height: 44px; flex-basis: 44px; }
.dm-toast .dm-icon::before { width: 18px; height: 18px; border-radius: 50%; background: #fff; mask: none; }
.dm-toast .dm-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--dm-green);
  mask: url('../images/cyog-bb-check-on.svg') center / contain no-repeat;
}
.dm-toast.is-leaving { animation: dm-toast-out 400ms ease-in both; pointer-events: none; }
@keyframes dm-toast-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes dm-toast-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, -4px); }
}
@media (prefers-reduced-motion: reduce) {
  .dm-toast, .dm-toast.is-leaving { animation: none; }
}
.dm-toast > div { min-width: 0; }
.dm-toast strong { display: block; font-size: 24px; font-weight: 700; }
.dm-toast span:not(.dm-icon) { font-size: 18px; color: rgba(77, 28, 26, 0.8); }
.dm-dismiss {
  position: absolute;
  right: 2px;
  top: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #795345;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dm-dismiss:focus-visible { outline: 2px solid var(--dm-ink); outline-offset: -6px; border-radius: 50%; }
.dm-toast[hidden] { display: none !important; }
[data-discount-messaging="pdp"] .sale-banner-callout .bfcm__wrapper,
[data-discount-messaging="pdp"] .sale-banner-callout .bfcm__container { background: transparent; padding: 0; }
[data-discount-messaging="pdp"] .sale-banner-callout .bfcm__wrapper { justify-content: center; }
.dm-cta-pill { display: inline-block; border-radius: 50px; padding: 5px 14px; font-size: 16px; line-height: 1.25; }
[data-discount-messaging="cart"] .headline-component.cc-bottom-sm.cc-cart.cc-new { margin-bottom: 8px; }
[data-discount-messaging="cart"] .cart__banner { background: transparent; padding: 0; margin-top: 0; margin-bottom: 8px; }
.dm-cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 50px; padding: 8px 16px; font-size: 16px; line-height: 1.2; max-width: 100%; }
.dm-cart .dm-icon { width: 24px; height: 24px; flex-basis: 24px; }
.dm-cart .dm-icon::before { width: 16px; height: 16px; background: var(--dm-yellow); }
@media (max-width: 767px) {
  .dm-home { padding: 10px 14px; border-radius: 12px; text-align: left; }
  .dm-home-copy { display: block; }
  .dm-home-copy > span { display: block; font-size: 14px; }
  .dm-toast {
    top: 6px;
    width: max-content;
    height: auto;
    gap: 6px;
    padding: 4px 26px 4px 6px;
    max-width: calc(100% - 16px);
  }
  .dm-toast > div { min-width: max-content; }
  .dm-toast .dm-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .dm-toast .dm-icon::before { width: 12px; height: 12px; }
  .dm-toast .dm-icon::after { width: 8px; height: 8px; }
  .dm-toast strong { font-size: 13px; line-height: 1.15; white-space: nowrap; }
  .dm-toast span:not(.dm-icon) { font-size: 12px; line-height: 1.15; white-space: nowrap; }
  .dm-dismiss { width: 24px; height: 24px; font-size: 16px; top: 50%; right: 2px; transform: translateY(-50%); }
  .dm-cta-pill { padding: 5px 12px; font-size: 14px; }
  .dm-cart { padding: 4px 10px; font-size: 13px; gap: 6px; }
  .dm-cart .dm-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .dm-cart .dm-icon::before { width: 10px; height: 10px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .dm-home-copy { display: block; text-align: left; }
  .dm-home-copy > span { display: block; font-size: 14px; }
}
