.nbbf-promo {
  position: fixed;
  z-index: 10049;
  inset-inline: 20px;
  bottom: calc(89px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: 32rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #d8c99d;
  border-radius: 24px;
  background: #faf7eb;
  color: #2b2821;
  box-shadow: 0 4px 0 #eadfbc, 0 8px 16px rgba(77, 61, 27, .12);
  pointer-events: auto;
}

.mobile-bottom-nav .nbbf-promo {
  position: absolute;
  z-index: auto;
  inset-inline: 0;
  bottom: calc(100% + 9px);
  width: 100%;
}

.nbbf-promo[hidden] { display: none; }

.nbbf-promo__badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #716753;
  border-radius: 10px 8px 11px 9px;
  background: #ffdf6a;
  font-size: 17px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.nbbf-promo__label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}

.nbbf-promo__label strong {
  background: linear-gradient(177deg, transparent 63%, #ffe687 64% 93%, transparent 94%);
}

.nbbf-promo__label small {
  display: block;
  color: #675634;
  font-size: 11px;
}

.nbbf-promo .nbbf-promo__close,
.nbbf-promo .nbbf-promo__link {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-height: 36px;
  color: #2b2821;
  font-family: inherit;
}

.nbbf-promo .nbbf-promo__close {
  width: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 19px;
  cursor: pointer;
}

.nbbf-promo .nbbf-promo__link {
  padding-inline: 12px;
  border: 1px solid #c4a43a;
  border-radius: 999px;
  background: #ffda52;
  box-shadow: 0 2px 0 #e6c44c;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.nbbf-promo :is(button, a):focus-visible {
  outline: 2px solid #2b2821;
  outline-offset: 2px;
}

@media (min-width: 769px) {
  .nbbf-promo { display: none; }
}

.nbbf-product-offer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 10px;
  border: 1px solid #716753;
  border-radius: 12px 7px 14px 9px / 7px 13px 8px 12px;
  background: #faf7eb;
  color: #2b2821;
  box-shadow: 3px 4px 0 rgba(63, 52, 30, .16);
}

.nbbf-product-offer[hidden] { display: none; }
.nbbf-product-offer__badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #2b2821;
  border-radius: 11px 8px 12px 7px;
  background: #ffda52;
  font-size: 19px;
  font-weight: 900;
  transform: rotate(-5deg);
}
.nbbf-product-offer__text { flex: 1; min-width: 0; font-size: 13px; }
.nbbf-product-offer__text span { display: block; font-size: 12px; }
.nbbf-product-offer .nbbf-promo__link {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-height: 36px;
  padding-inline: 9px;
  border: 1px solid #2b2821;
  border-radius: 5px 9px 5px 8px;
  background: #ffda52;
  color: #2b2821;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 768px) {
  body.nbbf-promo-open {
    --nbbf-overlay-lift: calc(var(--nbbf-promo-height, 54px) + 14px);
  }
  body.nb-sticky-atc-open .nbbf-promo {
    bottom: calc(89px + env(safe-area-inset-bottom, 0px) + var(--nbbf-sticky-cart-lift, 82px));
  }
  body.nb-sticky-atc-open .mobile-bottom-nav .nbbf-promo {
    bottom: calc(100% + 9px + var(--nbbf-sticky-cart-lift, 82px));
  }
  body.nb-sticky-atc-open.nbbf-promo-open :is(.nbtgc,.nb-scroll-top) {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px) + var(--nbbf-overlay-lift) + var(--nbbf-sticky-cart-lift, 82px));
  }
  body.nbbf-promo-open:not(.nb-sticky-atc-open) .nbtgc,
  body.nbbf-promo-open:not(.nb-sticky-atc-open) .nb-scroll-top {
    bottom: calc(96px + var(--nbbf-overlay-lift) + env(safe-area-inset-bottom, 0px));
  }
  body.nbbf-promo-open.nb-sticky-coupon-open:not(.nb-sticky-atc-open) .nb-scroll-top {
    bottom: calc(168px + var(--nbbf-overlay-lift) + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 350px) {
  .nbbf-promo { gap: 5px; }
  .nbbf-promo__badge { display: none; }
  .nbbf-promo .nbbf-promo__link { padding-inline: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
  .nbbf-promo:not([hidden]) { animation: nbbf-promo-in .48s cubic-bezier(.21,.7,.37,1) both; }
  .nbbf-promo__label strong {
    background-repeat: no-repeat;
    animation: nbbf-marker-in .65s .2s ease-out both;
  }
}
@keyframes nbbf-promo-in {
  from { opacity: 0; transform: translateY(10px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes nbbf-marker-in {
  from { background-size: 0 100%; }
  to { background-size: 100% 100%; }
}
