:root {
  --promo-banner-height: 64px;
  --promo-banner-compact-height: 40px;
}

.screen.header-section {
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--promo-banner-height, 0px)) !important;
  transition-property: background-color, padding, box-shadow, transform !important;
}

.promo-banner-slot {
  min-height: var(--promo-banner-height);
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--promo-banner-height);
  padding: 8px 24px;
  background: var(--pb-bg, #EAFBC7);
  color: var(--pb-text, #212121);
  text-decoration: none;
  overflow: hidden;
  font-family: 'Ubuntu Sans', 'Montserrat', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.promo-banner:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: -3px;
}

.promo-banner__decor {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.promo-banner__decor img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 180px;
  max-height: 100%;
  object-fit: contain;
}

.promo-banner__content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
}

.promo-banner__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.promo-banner__title--short {
  display: none;
}

.promo-banner__timer {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 15ch;
  text-align: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .06);
}

.promo-banner__button {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-btn-text, #fff);
  background: var(--pb-btn, #ff4d4d);
  border-radius: 8px;
  padding: 10px 20px;
  white-space: nowrap;
  transition: filter .15s ease;
}

.promo-banner:hover .promo-banner__button {
  filter: brightness(1.08);
}

.promo-banner-compact {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  width: 100%;
  height: var(--promo-banner-compact-height);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pb-bg, #EAFBC7);
  color: var(--pb-text, #212121);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform .25s ease;
}

.promo-banner-compact.is-visible {
  transform: translateY(0);
}

.promo-banner-compact:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: -3px;
}

.promo-banner-compact__text {
  overflow-wrap: anywhere;
}

.promo-banner-compact svg {
  flex: 0 0 auto;
}

.promo-banner__decor--mobile {
  display: none;
}

@media (max-width: 1279px) {
  .promo-banner__decor--right {
    display: none;
  }
}

@media (max-width: 1023px) {
  .promo-banner__timer {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --promo-banner-height: 56px;
  }
  .promo-banner__decor--left {
    display: none;
  }
  .promo-banner__title--full {
    display: none;
  }
  .promo-banner__title--short {
    display: block;
  }
  .promo-banner {
    padding: 0 12px;
    gap: 10px;
  }
  .promo-banner__content {
    gap: 10px;
    justify-content: space-between;
  }
  .promo-banner__title {
    font-size: 13px;
  }
  .promo-banner__button {
    font-size: 12px;
    padding: 7px 10px;
    line-height: 1.2;
  }
  .promo-banner__decor--mobile {
    display: block;
  }
  .promo-banner__decor--mobile img {
    height: 36px;
    max-width: 80px;
    max-height: 40px;
  }
  .promo-banner-compact__text {
    font-size: 13px;
    padding: 0 12px;
  }
}

@media (max-width: 479px) {
  .promo-banner__decor--mobile {
    display: none;
  }
  .promo-banner__title {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner-compact {
    transition: none;
  }
  .promo-banner__button {
    transition: none;
  }
  .screen.header-section {
    transition: none !important;
  }
}
