/* ===== BANNERS / ADS — storefront ===== */

.banner-bar {
  position: fixed;
  left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  animation: bannerSlideIn 0.35s ease;
}
.banner-bar[data-pos="top"]    { top: 0; }
.banner-bar[data-pos="bottom"] { bottom: 0; }

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.banner-bar[data-pos="bottom"] { animation-name: bannerSlideInUp; }
@keyframes bannerSlideInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.banner-bar-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.banner-bar-img {
  width: 34px; height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Pure "Image Ad" type inside a top/bottom bar — the creative itself, centered */
.banner-bar-inner-img {
  justify-content: center;
  padding: 8px 24px;
  gap: 12px;
}
.banner-bar-imgad {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-bar-imgad img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.banner-bar-imgad a { display: block; width: 100%; height: 100%; }


.banner-bar-text { flex: 1; min-width: 0; }
.banner-bar-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banner-bar-subtitle {
  font-size: 12px;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-bar-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.banner-bar-cta:hover { transform: translateY(-1px); opacity: 0.92; }

.banner-bar-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  color: inherit;
  padding: 4px 6px;
  transition: opacity 0.15s ease;
}
.banner-bar-close:hover { opacity: 1; }

@media (max-width: 640px) {
  .banner-bar-inner { padding: 10px 14px; gap: 10px; }
  .banner-bar-subtitle { display: none; }
  .banner-bar-title { font-size: 13px; }
  .banner-bar-cta { padding: 7px 12px; font-size: 11px; }
}

/* ── Inline / native promo card ── */
.banner-slot-inline { display: block; }

.banner-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 10px;
  margin: 28px 0;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  animation: bannerFadeIn 0.4s ease;
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.banner-card-badge {
  position: absolute;
  top: 10px; left: 24px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  font-family: var(--font-mono, monospace);
}

.banner-card-img-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Pure "Image Ad" type as an inline card — the creative fills the card, no padding around it */
.banner-card.banner-card-img {
  display: block;
  padding: 0;
  margin: 28px auto;
  max-width: 100%;
}
.banner-card.banner-card-img .banner-card-close {
  z-index: 2;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  top: 6px; right: 6px;
}

.banner-card-text { flex: 1; min-width: 0; padding-top: 6px; }
.banner-card-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.banner-card-subtitle { font-size: 13px; opacity: 0.82; margin-top: 3px; }

.banner-card-cta {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.banner-card-cta:hover { transform: translateY(-1px); opacity: 0.92; }

.banner-card-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.55;
  color: inherit;
  padding: 4px;
}
.banner-card-close:hover { opacity: 1; }

@media (max-width: 640px) {
  .banner-card { flex-direction: column; text-align: center; align-items: center; padding: 24px 18px 18px; }
  .banner-card-badge { position: static; display: block; margin-bottom: 10px; }
  .banner-card-text { padding-top: 0; }
}
