/* TTPA overlay styling for theme banner CPT outputs */
.ttpa-banner-wrap {
  position: relative;
  display: block;
}

.ttpa-banner-click {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 0;
}

/* Override theme's border-radius for TTPA banners */
.ad.ad--content-medium .ttpa-banner-wrap,
.ad.ad--content-medium .ttpa-banner-click,
.ad.ad--content-medium .ttpa-banner-click img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ttpa-banner-click img {
  display: block;
  width: 100%;
  height: auto;
}

.ttpa-banner-info {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0 0 8px 12px;
  font-size: 12px;
  line-height: 1.4;
}

.ttpa-banner-info-item {
  margin: 0;
  padding: 0;
}

.ttpa-banner-badge {
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  color: #6b7280;
  display: block;
  margin-bottom: 2px;
}

.ttpa-banner-transparency-link {
  color: #374151;
  text-decoration: underline;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ttpa-banner-transparency-link:hover {
  color: #1f2937;
}

/* Specific styling for static banners in aside sections */
.secondary-content-page .ttpa-banner-wrap,
#more-banners .ttpa-banner-wrap {
  margin-bottom: 10px;
}

.secondary-content-page .ttpa-banner-info,
#more-banners .ttpa-banner-info {
  margin-top: 3px;
  padding: 4px 6px;
  font-size: 9px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.secondary-content-page .ttpa-banner-info-item,
#more-banners .ttpa-banner-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.secondary-content-page .ttpa-banner-badge,
#more-banners .ttpa-banner-badge {
  font-size: 8px;
  font-weight: 600;
  color: #666;
  margin: 0;
}

.secondary-content-page .ttpa-banner-transparency-link,
#more-banners .ttpa-banner-transparency-link {
  font-size: 8px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  margin: 0;
  padding: 1px 0;
}

.secondary-content-page .ttpa-banner-transparency-link:hover,
#more-banners .ttpa-banner-transparency-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Make sure aside banners don't interfere with layout */
.secondary-content-page .ttpa-banner-wrap img,
#more-banners .ttpa-banner-wrap img {
  max-width: 100%;
  height: auto;
}


