.ib-bf-slot { height: 54px; }
.ib-bf-bar {
  --ib-bf-height: 54px;
  position: fixed;
  top: 0;
  z-index: 950;
  width: 100%;
  height: var(--ib-bf-height);
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(100deg, #101014, #242129 50%, #111015);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  font-family: Arial, Helvetica, sans-serif;
}
.ib-bf-slot + .ib-public-header { top: 54px; }
.ib-bf-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(1200px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}
.ib-bf-bar__identity { display: flex; flex-direction: column; align-items: center; justify-self: center; min-width: 0; line-height: 1; }
.ib-bf-bar__badge { display: inline-block; padding: 2px 5px; color: #181313; background: #ffd422; border-radius: 0; font-size: 10px; font-weight: 900; white-space: nowrap; }
.ib-bf-bar__title { margin-top: 3px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
.ib-bf-bar__title span:last-child { color: #ffd422; }
.ib-bf-bar__clock { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ib-bf-bar__clock-caption { position: absolute; bottom: calc(100% + 1px); left: 0; width: 100%; text-align: center; font: 400 10px/11px Arial, Helvetica, sans-serif; }
.ib-bf-bar[data-ib-bf-context="creator_precheckout"] .ib-bf-bar__inner,
.ib-bf-bar[data-ib-bf-context="creator_checkout"] .ib-bf-bar__inner { display: flex; justify-content: space-between; }
.ib-bf-bar__pair { display: flex; align-items: center; gap: 2px; position: relative; }
.ib-bf-bar__unit { position: absolute; top: calc(100% + 1px); left: 0; width: 100%; text-align: center; font: 400 9px/10px Arial, Helvetica, sans-serif; letter-spacing: 0; }
.ib-bf-bar__unit-short { display: none; }
.ib-bf-bar__colon { color: #ffd422; font-size: 16px; font-weight: 800; }
.ib-bf-bar__digit { display: inline-grid; place-items: center; width: 21px; height: 27px; overflow: hidden; border-radius: 3px; background: linear-gradient(#3b3940 49%, #202026 50%); border: 1px solid #555159; box-sizing: border-box; perspective: 90px; }
.ib-bf-bar__digit-face { display: block; font-size: 18px; font-weight: 800; line-height: 1; transform-origin: center; }
.ib-bf-bar__digit.is-flipping .ib-bf-bar__digit-face { animation: ib-bf-flip .52s ease-in-out; }
@keyframes ib-bf-flip { 0% { transform: rotateX(-90deg); opacity: .35; } 55% { transform: rotateX(12deg); opacity: 1; } 100% { transform: rotateX(0); } }
.ib-bf-bar__action { display: flex; justify-content: center; min-width: 0; }
.ib-bf-bar__button, .ib-bf-bar__button:visited {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 33px; margin: 0; padding: 0 11px; border: 0; border-radius: 5px;
  color: #fff; background: linear-gradient(110deg, #f03591, #8b35d5); box-shadow: none;
  font: 700 12px Arial, Helvetica, sans-serif; text-decoration: none; text-transform: none;
  white-space: nowrap; cursor: pointer;
}
.ib-bf-bar__bolt { width: 14px; height: 17px; flex: none; fill: #fff; filter: drop-shadow(0 0 3px #fff8); }
.ib-bf-preview-note { position: fixed; z-index: 951; right: 8px; bottom: 8px; max-width: calc(100vw - 16px); padding: 6px 9px; border-radius: 6px; background: #fff4c2; color: #2a1d2f; font: 600 11px/1.35 Arial,sans-serif; box-shadow: 0 2px 10px #0003; }
.ib-bf-bar__button:hover { filter: brightness(1.12); color: #fff; }
.ib-bf-bar__button:focus-visible { outline: 2px solid #ffd422; outline-offset: 2px; }
@media (max-width: 600px) {
  .ib-bf-slot { height: 48px; }
  .ib-bf-bar { --ib-bf-height: 48px; }
  .ib-bf-slot + .ib-public-header { top: 48px; }
  .ib-bf-bar__inner { gap: 4px; padding: 0 4px; }
  .ib-bf-bar__title { font-size: 11px; letter-spacing: 0; }
  .ib-bf-bar__badge { font-size: 8px; padding: 1px 3px; }
  .ib-bf-bar__clock { gap: 1px; }
  .ib-bf-bar__clock-caption { font-size: 9px; line-height: 10px; }
  .ib-bf-bar__pair { gap: 1px; }
  .ib-bf-bar__unit { font-size: 8px; line-height: 9px; }
  .ib-bf-bar__unit-full { display: none; }
  .ib-bf-bar__unit-short { display: inline; }
  .ib-bf-bar__digit { width: 15px; height: 22px; }
  .ib-bf-bar__digit-face { font-size: 14px; }
  .ib-bf-bar__colon { font-size: 13px; }
  .ib-bf-bar__button, .ib-bf-bar__button:visited { min-height: 29px; padding: 0 5px; gap: 3px; font-size: 9px; }
  .ib-bf-bar__bolt { width: 10px; height: 13px; }
}
@media (max-width: 340px) {
  .ib-bf-bar__inner { gap: 2px; padding: 0 2px; }
  .ib-bf-bar__title { font-size: 10px; }
  .ib-bf-bar__digit { width: 13px; height: 21px; }
  .ib-bf-bar__digit-face { font-size: 13px; }
  .ib-bf-bar__button, .ib-bf-bar__button:visited { padding: 0 4px; gap: 2px; font-size: 8px; }
  .ib-bf-bar__bolt { width: 9px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ib-bf-bar__digit.is-flipping .ib-bf-bar__digit-face { animation: none; } }

/* Personalized checkout validity uses the same countdown tiles. */
.ib-bf-bar[data-checkout-offer-countdown] .ib-bf-bar__title { color: #fff; }
.ib-bf-bar[data-checkout-offer-countdown] .ib-bf-bar__inner { justify-content: center; gap: clamp(10px, 4vw, 32px); }
.ib-offer-expired { min-height: 100vh; }
.ib-expired-offer__background { pointer-events: none; }
.ib-expired-offer__placeholder {
  min-height: 20rem;
  margin-top: 1rem;
  border: 1px solid #494059;
  border-radius: 20px;
  background: #221a2f;
}
.ib-expired-offer__overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; overflow-y: auto;
  padding: 16px; background: rgba(16, 8, 27, .72);
  backdrop-filter: blur(8px);
}
.ib-expired-offer__dialog {
  margin: auto; width: min(100%, 440px); padding: clamp(20px, 5vw, 36px);
  border: 1px solid #674575; border-radius: 24px;
  background: #1c1327; color: #fff;
  text-align: center; box-shadow: 0 18px 70px #08041180;
}
.ib-expired-offer__dialog h1 { margin: 18px 0 8px; font-size: clamp(25px, 6vw, 34px); font-weight: 800; }
.ib-expired-offer__dialog p { margin: 0 0 22px; color: #e7dbee; }
.ib-expired-offer__action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 18px; border-radius: 12px;
  background: linear-gradient(105deg, #aa1f71, #6724b4); color: #fff;
  font-weight: 700; text-decoration: none;
}
.ib-expired-offer__action:hover { color: #fff; text-decoration: underline; }
.ib-expired-offer__action:focus-visible { outline: 2px solid #ffabdf; outline-offset: 3px; }
