.apb-banner {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 16px;
  z-index: 9990;
  width: auto;
  max-width: var(--apb-width, 1040px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--apb-radius, 14px);
  background: var(--apb-bg, #103f30);
  box-shadow: 0 6px 30px rgb(0 0 0 / 14%);
  color: var(--apb-text, #fff);
  font-family: inherit;
  text-align: left;
  animation: apb-enter 240ms ease-out both;
}

.apb-banner *,
.apb-banner *::before,
.apb-banner *::after {
  box-sizing: border-box;
}

.apb-banner[hidden],
.apb-spacer[hidden] {
  display: none !important;
}

.apb-banner .apb-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 16px 56px 16px 24px;
}

.apb-banner .apb-copy {
  flex: 1;
  min-width: 0;
}

.apb-banner .apb-title {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.35px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.apb-banner .apb-text {
  display: block;
  margin-top: 5px;
  opacity: .8;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.apb-banner .apb-cta,
.apb-banner .apb-cta:visited {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  max-width: 36%;
  padding: 12px 19px;
  border: 0;
  border-radius: min(var(--apb-radius, 14px), 8px);
  background: var(--apb-button, #ffcf70);
  color: var(--apb-button-text, #173a2d);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: filter 140ms ease, transform 140ms ease;
}

.apb-banner .apb-cta:hover {
  background: var(--apb-button, #ffcf70);
  color: var(--apb-button-text, #173a2d);
  filter: brightness(1.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.apb-banner .apb-cta::before,
.apb-banner .apb-cta::after {
  content: none;
}

.apb-banner .apb-close {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity 140ms ease;
}

.apb-banner .apb-close:hover {
  background: rgb(255 255 255 / 8%);
  opacity: 1;
}

.apb-banner :is(.apb-cta, .apb-close):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.apb-banner .apb-countdown {
  flex: 0 0 auto;
  min-width: 156px;
  text-align: center;
}

.apb-banner .apb-timer-label {
  display: block;
  margin-bottom: 5px;
  opacity: .8;
  font-size: 10px;
  line-height: 1.2;
}

.apb-banner .apb-digits {
  display: flex;
  gap: 6px;
  align-items: baseline;
  justify-content: center;
}

.apb-banner .apb-unit {
  display: flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}

.apb-banner .apb-unit b {
  color: inherit;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.apb-banner .apb-unit small {
  opacity: .7;
  font-size: 10px;
  line-height: 1;
}

.apb-spacer {
  height: var(--apb-space, 120px);
}

body.apb-visible #go-to-top.show-top-button {
  bottom: var(--apb-space, 120px);
}

body.apb-visible.apb-replaces-countdown .product-sold-popup.show {
  bottom: var(--apb-space, 120px) !important;
}

@keyframes apb-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  body.apb-replaces-countdown:has(.apb-banner:not(.apb-mobile-only)) .am-sticky-countdown { display: none !important; }
  .apb-banner.apb-mobile-only,
  .apb-spacer.apb-mobile-only { display: none; }
}

@media (max-width: 767px) {
  body.apb-replaces-countdown:has(.apb-banner:not(.apb-desktop-only)) .am-sticky-countdown { display: none !important; }
  .apb-banner.apb-desktop-only,
  .apb-spacer.apb-desktop-only { display: none; }

  .apb-banner {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: 8px;
  }

  .apb-banner .apb-inner {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 76px;
    padding: 14px 36px 14px 14px;
  }

  .apb-banner .apb-title {
    font-size: 16px;
    letter-spacing: -.2px;
  }

  .apb-banner .apb-text {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  .apb-banner .apb-cta {
    gap: 7px;
    max-width: 44%;
    padding: 11px;
    font-size: 12px;
  }

  .apb-banner .apb-close {
    right: 0;
    width: 30px;
    font-size: 22px;
  }

  .apb-banner .apb-countdown {
    order: 3;
    flex-basis: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
  }

  .apb-banner .apb-timer-label { margin: 0; }
  .apb-banner .apb-unit b { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .apb-banner { animation: none; }
  .apb-banner .apb-cta,
  .apb-banner .apb-close { transition: none; }
}
