.bbb-countdown-banner {
  --bbb-banner-bg: #0f172a;
  --bbb-banner-text: #f8fafc;
  --bbb-banner-cta-bg: #f8fafc;
  --bbb-banner-cta-text: #0f172a;
  --bbb-banner-cta-font-family: var(--bbb-banner-font-family);
  --bbb-banner-cta-font-size: 14px;
  --bbb-banner-cta-font-size-mobile: 12px;
  --bbb-banner-cta-font-weight: 800;
  --bbb-banner-cta-padding-y: 8px;
  --bbb-banner-cta-padding-x: 18px;
  --bbb-banner-cta-padding-y-mobile: 6px;
  --bbb-banner-cta-padding-x-mobile: 12px;
  --bbb-banner-font-size: 16px;
  --bbb-banner-font-size-mobile: 14px;
  --bbb-banner-font-size-effective: var(--bbb-banner-font-size);
  --bbb-banner-timer-font-size: 16px;
  --bbb-banner-timer-font-size-mobile: 13px;
  --bbb-banner-timer-font-size-effective: var(--bbb-banner-timer-font-size);
  --bbb-banner-timer-unit-scale: 46%;
  --bbb-banner-timer-padding-y: 8px;
  --bbb-banner-timer-padding-x: 12px;
  --bbb-banner-timer-padding-y-mobile: 5px;
  --bbb-banner-timer-padding-x-mobile: 8px;
  --bbb-banner-timer-padding-y-effective: var(--bbb-banner-timer-padding-y);
  --bbb-banner-timer-padding-x-effective: var(--bbb-banner-timer-padding-x);
  --bbb-banner-text-align-desktop: left;
  --bbb-banner-text-align-mobile: var(--bbb-banner-text-align-desktop);
  --bbb-banner-text-align-effective: var(--bbb-banner-text-align-desktop);
  --bbb-banner-content-justify-desktop: flex-start;
  --bbb-banner-content-justify-mobile: var(
    --bbb-banner-content-justify-desktop
  );
  --bbb-banner-content-justify-effective: var(
    --bbb-banner-content-justify-desktop
  );
  --bbb-banner-font-weight: 600;
  --bbb-banner-letter-spacing: 0em;
  --bbb-banner-line-height: 1.3;
  --bbb-banner-padding-y: 12px;
  --bbb-banner-padding-x: 20px;
  --bbb-banner-padding-y-effective: var(--bbb-banner-padding-y);
  --bbb-banner-font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bbb-countdown-banner-top-offset: 0px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  background: var(--bbb-banner-bg);
  color: var(--bbb-banner-text);
  font-family: var(--bbb-banner-font-family);
  font-size: var(--bbb-banner-font-size-effective);
  font-weight: var(--bbb-banner-font-weight);
  letter-spacing: var(--bbb-banner-letter-spacing);
  line-height: var(--bbb-banner-line-height);
  text-transform: var(--bbb-banner-text-transform, none);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
}

body.bbb-countdown-banner-has-fixed-mobile {
  padding-top: var(--bbb-countdown-banner-mobile-offset, 0px);
}

.bbb-countdown-banner-app-block {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: var(--bbb-countdown-banner-block-spacing-top-desktop, 0px);
}

.bbb-countdown-banner-app-block[data-width-mode="container"] {
  width: calc(100% - 80px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.bbb-countdown-banner-app-block[data-width-mode="custom"] {
  width: min(100%, var(--bbb-countdown-banner-block-custom-max-width, 1400px));
  max-width: var(--bbb-countdown-banner-block-custom-max-width, 1400px);
  margin-left: auto;
  margin-right: auto;
}

.bbb-countdown-banner-app-block[data-width-mode="full"] {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.bbb-countdown-banner-app-block[data-width-mode="add_to_cart"] {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.bbb-countdown-banner-app-block.is-sticky-app-block {
  z-index: 4;
}

.bbb-countdown-banner-app-block[data-style-override="true"]
  > .bbb-countdown-banner {
  --bbb-banner-font-size: var(
    --bbb-countdown-banner-block-font-size-desktop
  ) !important;
  --bbb-banner-padding-y: var(
    --bbb-countdown-banner-block-padding-y-desktop
  ) !important;
}

.bbb-countdown-banner.is-section-block:not(.is-fixed-section) {
  z-index: 2;
}

.bbb-countdown-banner.is-fixed-section {
  position: fixed;
  top: var(--bbb-countdown-banner-top-offset, 0px);
  left: var(--bbb-countdown-banner-fixed-left, 0px);
  width: var(--bbb-countdown-banner-fixed-width, 100%);
  z-index: 4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.bbb-countdown-banner[style*="--bbb-banner-bg: transparent"],
.bbb-countdown-banner[style*="--bbb-banner-bg:transparent"],
.bbb-countdown-banner[style*="--bbb-banner-bg: transparent"].is-sticky,
.bbb-countdown-banner[style*="--bbb-banner-bg:transparent"].is-sticky,
.bbb-countdown-banner[style*="--bbb-banner-bg: transparent"].is-fixed-section,
.bbb-countdown-banner[style*="--bbb-banner-bg:transparent"].is-fixed-section,
.bbb-countdown-banner[style*="--bbb-banner-bg: transparent"].is-fixed-mobile,
.bbb-countdown-banner[style*="--bbb-banner-bg:transparent"].is-fixed-mobile {
  box-shadow: none !important;
}

body:has(.bbb-countdown-banner.is-fixed-section) .collection__toolbar {
  z-index: 2;
}

.bbb-countdown-banner-app-block:has(
    > .bbb-countdown-banner:not(.bbb-countdown-banner-editor-preview)
  )
  > .bbb-countdown-banner-editor-placeholder {
  display: none;
}

.bbb-countdown-banner-editor-placeholder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 1px dashed rgba(100, 116, 139, 0.5);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.bbb-countdown-banner-editor-placeholder strong {
  color: #0f172a;
  font-size: 15px;
}

.bbb-countdown-banner-editor-preview {
  --bbb-banner-bg: #0f172a;
  --bbb-banner-text: #f8fafc;
  --bbb-banner-cta-bg: #f97316;
  --bbb-banner-cta-text: #ffffff;
  --bbb-banner-timer-bg: rgba(248, 250, 252, 0.14);
  --bbb-banner-timer-text: #f8fafc;
  --bbb-banner-padding-y-effective: var(--bbb-banner-padding-y);
  --bbb-banner-font-size-effective: var(--bbb-banner-font-size);
}

.bbb-countdown-banner-app-block.has-countdown-banner
  > .bbb-countdown-banner-editor-placeholder,
.bbb-countdown-banner-app-block.has-bbb > .bbb-countdown-banner-editor-placeholder,
.bbb-countdown-banner-app-block:has(
    > .bbb-countdown-banner:not(.bbb-countdown-banner-editor-preview)
  )
  > .bbb-countdown-banner-editor-placeholder,
.bbb-countdown-banner-app-block.has-countdown-banner
  > .bbb-countdown-banner-editor-preview,
.bbb-countdown-banner-app-block.has-bbb > .bbb-countdown-banner-editor-preview,
.bbb-countdown-banner-app-block:has(
    > .bbb-countdown-banner:not(.bbb-countdown-banner-editor-preview)
  )
  > .bbb-countdown-banner-editor-preview {
  display: none;
}

.bbb-countdown-banner.is-sticky {
  position: sticky;
  top: var(--bbb-countdown-banner-top-offset, 0px);
  z-index: 3;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.search-bar__results,
.search-bar__menu,
.predictive-search,
.predictive-search__results {
  z-index: 60;
}

.bbb-countdown-banner__inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: var(--bbb-banner-padding-y-effective) var(--bbb-banner-padding-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.bbb-countdown-banner__copy {
  display: flex;
  align-items: center;
  justify-content: var(--bbb-banner-content-justify-effective);
  text-align: var(--bbb-banner-text-align-effective);
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.bbb-countdown-banner__text {
  display: inline-flex;
  align-items: center;
  justify-content: var(--bbb-banner-content-justify-effective);
  text-align: var(--bbb-banner-text-align-effective);
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.bbb-countdown-banner__message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: inherit;
  white-space: nowrap;
}

.bbb-countdown-banner[data-action-layout="inline"] .bbb-countdown-banner__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--bbb-banner-content-justify-effective);
}

.bbb-countdown-banner[data-action-layout="inline"] .bbb-countdown-banner__copy {
  flex: 0 1 auto;
}

.bbb-countdown-banner[data-action-layout="inline"] .bbb-countdown-banner__text {
  flex-wrap: wrap;
}

.bbb-countdown-banner[data-action-layout="inline"] .bbb-countdown-banner__actions {
  flex: 0 0 auto;
}

.bbb-countdown-banner__timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bbb-banner-timer-padding-y-effective)
    var(--bbb-banner-timer-padding-x-effective);
  border-radius: 999px;
  background: var(--bbb-banner-timer-bg, rgba(255, 255, 255, 0.12));
  color: var(--bbb-banner-timer-text, currentColor);
  font-size: var(--bbb-banner-timer-font-size-effective);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bbb-countdown-banner__timer.has-colon-format {
  letter-spacing: 0.04em;
}

.bbb-countdown-banner__timer.is-inline {
  gap: 0.38em;
}

.bbb-countdown-banner__timer-inline-part {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
}

.bbb-countdown-banner__timer-separator {
  font-weight: 900;
  opacity: 0.76;
}

.bbb-countdown-banner__timer.is-segmented {
  gap: 6px;
  padding: 0;
  background: transparent;
  letter-spacing: 0;
}

.bbb-countdown-banner__timer-segment {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 44px;
  padding: var(--bbb-banner-timer-padding-y-effective)
    var(--bbb-banner-timer-padding-x-effective);
  border-radius: 10px;
  background: var(--bbb-banner-timer-bg, rgba(255, 255, 255, 0.12));
  color: var(--bbb-banner-timer-text, currentColor);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.bbb-countdown-banner__timer-value {
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bbb-countdown-banner__timer-unit {
  font-size: var(--bbb-banner-timer-unit-scale);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.08em;
}

.bbb-countdown-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bbb-countdown-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bbb-banner-cta-padding-y) var(--bbb-banner-cta-padding-x);
  border-radius: 999px;
  text-decoration: none;
  background: var(--bbb-banner-cta-bg);
  color: var(--bbb-banner-cta-text);
  font-family: var(--bbb-banner-cta-font-family);
  font-size: var(--bbb-banner-cta-font-size);
  font-weight: var(--bbb-banner-cta-font-weight);
  line-height: 1;
  text-transform: var(--bbb-banner-cta-text-transform, none);
  white-space: nowrap;
  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

.bbb-countdown-banner__cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.bbb-countdown-banner__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
  cursor: pointer;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  body.bbb-countdown-banner-has-fixed-mobile {
    padding-top: 0 !important;
  }

  body:has(.bbb-countdown-banner.is-fixed-section) .collection__toolbar {
    z-index: 5;
  }

  .bbb-countdown-banner-app-block {
    margin-top: var(
      --bbb-countdown-banner-block-spacing-top-mobile,
      var(--bbb-countdown-banner-block-spacing-top-desktop, 0px)
    );
  }

  .bbb-countdown-banner-app-block[data-width-mode="container"] {
    width: 100%;
    max-width: none;
  }

  .bbb-countdown-banner-app-block[data-style-override="true"]
    > .bbb-countdown-banner {
    --bbb-banner-font-size-mobile: var(
      --bbb-countdown-banner-block-font-size-mobile
    ) !important;
    --bbb-banner-padding-y: var(
      --bbb-countdown-banner-block-padding-y-mobile
    ) !important;
  }

  .bbb-countdown-banner.is-fixed-mobile {
    position: sticky;
    top: var(--bbb-countdown-banner-top-offset, 0px);
    left: auto;
    right: auto;
    width: 100%;
  }

  .bbb-countdown-banner.is-fixed-section {
    top: calc(
      var(--bbb-countdown-banner-top-offset, 0px) +
        var(--bbb-countdown-banner-mobile-toolbar-offset, 72px)
    );
  }

  .bbb-countdown-banner {
    --bbb-banner-font-size-effective: var(--bbb-banner-font-size-mobile);
    --bbb-banner-padding-y-effective: clamp(
      4px,
      calc(var(--bbb-banner-padding-y) * 0.42),
      8px
    );
    --bbb-banner-timer-font-size-effective: var(--bbb-banner-timer-font-size-mobile);
    --bbb-banner-timer-padding-y-effective: var(--bbb-banner-timer-padding-y-mobile);
    --bbb-banner-timer-padding-x-effective: var(--bbb-banner-timer-padding-x-mobile);
    --bbb-banner-text-align-effective: var(--bbb-banner-text-align-mobile);
    --bbb-banner-content-justify-effective: var(
      --bbb-banner-content-justify-mobile
    );
  }

  .bbb-countdown-banner.is-fixed-mobile {
    --bbb-banner-padding-y-effective: clamp(
      3px,
      calc(var(--bbb-banner-padding-y) * 0.3),
      6px
    );
    --bbb-banner-font-size-effective: clamp(
      11px,
      calc(var(--bbb-banner-font-size-mobile) - 1px),
      13px
    );
  }

  .bbb-countdown-banner__inner {
    align-items: center;
    gap: 8px;
  }

  .bbb-countdown-banner__copy {
    gap: 8px;
  }

  .bbb-countdown-banner__text {
    gap: 6px;
  }

  .bbb-countdown-banner__timer.is-segmented {
    gap: 4px;
    padding: 0;
  }

  .bbb-countdown-banner__timer-segment {
    min-width: 34px;
    border-radius: 9px;
  }

  .bbb-countdown-banner__cta {
    padding: var(--bbb-banner-cta-padding-y-mobile)
      var(--bbb-banner-cta-padding-x-mobile);
    font-size: var(--bbb-banner-cta-font-size-mobile);
  }

  .bbb-countdown-banner__dismiss {
    width: 28px;
    height: 28px;
  }

  .bbb-countdown-banner.is-fixed-mobile
    .bbb-countdown-banner__timer.is-segmented {
    padding: 0;
  }

  .bbb-countdown-banner.is-fixed-mobile .bbb-countdown-banner__timer-segment {
    min-width: 32px;
  }

  .bbb-countdown-banner.is-fixed-mobile .bbb-countdown-banner__cta {
    padding: calc(var(--bbb-banner-cta-padding-y-mobile) * 0.78)
      calc(var(--bbb-banner-cta-padding-x-mobile) * 0.82);
    font-size: clamp(
      10px,
      calc(var(--bbb-banner-cta-font-size-mobile) - 1px),
      12px
    );
  }

  .bbb-countdown-banner.is-fixed-mobile .bbb-countdown-banner__dismiss {
    width: 24px;
    height: 24px;
  }
}
