.bl-promo-banner,
.bl-promo-float,
.bl-promo-popup,
.bl-promo-preview {
  font-family: var(--font-family, Inter, sans-serif);
}

.bl-promo-banner[hidden],
.bl-promo-float[hidden],
.bl-promo-popup[hidden] {
  display: none !important;
}

.bl-promo-kicker {
  margin: 0 0 4px;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bl-promo-title {
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.bl-promo-title a {
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}

.bl-promo-title a:hover {
  text-decoration: underline;
}

.bl-promo-text {
  margin: 0;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.bl-promo-price,
.bl-promo-price .price,
.bl-promo-price .woocommerce-Price-amount,
.bl-promo-price bdi {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.bl-promo-price .price {
  margin: 0;
}

.bl-promo-price del,
.bl-promo-price del .woocommerce-Price-amount {
  margin-right: 6px;
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.bl-promo-price ins {
  text-decoration: none;
}

.bl-promo-cta,
.bl-promo-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  background: #111;
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.bl-promo-cta:hover {
  background: #000;
  color: #f5ca27;
  -webkit-text-fill-color: #f5ca27;
}

.bl-promo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 32px;
}

.bl-promo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.bl-promo-banner {
  background: #f5ca27;
  color: #111;
}

.bl-promo-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 0;
}

.bl-promo-banner__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.bl-promo-banner__copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.bl-promo-banner .bl-promo-kicker {
  flex: 0 0 auto;
  margin: 0;
}

.bl-promo-banner .bl-promo-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
}

.bl-promo-banner .bl-promo-title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-promo-banner .bl-promo-price {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bl-promo-banner .bl-promo-close {
  background: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.bl-promo-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 99980;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.bl-promo-float__media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 124px;
  width: 124px;
  min-height: 124px;
  background: #f6f6f6;
}

.bl-promo-float__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 40px 12px 12px;
}

.bl-promo-float .bl-promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.bl-promo-float .bl-promo-title,
.bl-promo-popup .bl-promo-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bl-promo-float .bl-promo-text,
.bl-promo-popup .bl-promo-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bl-promo-float .bl-promo-cta,
.bl-promo-float .bl-promo-cta:visited {
  align-self: flex-start;
  margin-top: 2px;
  background: #f5ca27;
  color: #111;
  -webkit-text-fill-color: #111;
}

.bl-promo-float .bl-promo-cta:hover {
  background: #111;
  color: #f5ca27;
  -webkit-text-fill-color: #f5ca27;
}

.bl-promo-popup {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.bl-promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bl-promo-popup__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.bl-promo-popup .bl-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: #111;
  color: #fff;
}

.bl-promo-popup__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  padding: 28px 64px 12px 24px;
  background: #f6f6f6;
  box-sizing: border-box;
}

.bl-promo-popup__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px 20px;
}

.bl-promo-popup .bl-promo-cta,
.bl-promo-popup .bl-promo-cta:visited {
  align-self: stretch;
  margin-top: 4px;
  background: #f5ca27;
  color: #111;
  -webkit-text-fill-color: #111;
}

.bl-promo-popup .bl-promo-cta:hover {
  background: #111;
  color: #f5ca27;
  -webkit-text-fill-color: #f5ca27;
}

body.bl-promo-lock {
  overflow: hidden;
}

.bl-promo-preview {
  position: fixed;
  top: auto;
  right: auto;
  bottom: 16px;
  left: 50%;
  z-index: 100200;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 8px 10px 8px 12px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  line-height: 1.3;
}

.bl-promo-preview button {
  border: 0;
  background: #f5ca27;
  color: #111;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .bl-promo-banner__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .bl-promo-banner .bl-promo-title a {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 768px) {
  .bl-promo-banner__inner {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    gap: 8px 10px;
    width: calc(100% - 24px);
    padding: 10px 0;
  }

  .bl-promo-banner__copy {
    grid-column: 2;
    grid-row: 1;
  }

  .bl-promo-banner .bl-promo-price {
    grid-column: 2;
    grid-row: 2;
  }

  .bl-promo-banner .bl-promo-cta {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .bl-promo-banner .bl-promo-close {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .bl-promo-float {
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    z-index: 99990;
  }

  .bl-promo-float__media {
    flex-basis: 84px;
    width: 84px;
    min-height: 0;
  }

  .bl-promo-float__body {
    gap: 4px;
    padding: 10px 36px 10px 10px;
  }

  .bl-promo-float .bl-promo-text {
    display: none;
  }

  .bl-promo-float .bl-promo-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .bl-promo-popup {
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .bl-promo-popup__media {
    height: 160px;
    padding: 36px 56px 8px 16px;
  }

  .bl-promo-popup__dialog {
    max-height: calc(100dvh - 32px);
  }

  .bl-promo-preview {
    top: auto;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    transform: none;
    border-radius: 12px;
  }

  .bl-promo-preview ~ .bl-promo-float {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
}
