/* Shared advertisement placements — loaded after all user page styles. */
body:not(.admin-area) .shared-ad-slot-728,
body:not(.admin-area) .shared-ad-slot-468,
body:not(.admin-area) .shared-ad-slot-300 {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  text-align: center;
}
body:not(.admin-area) .shared-ad-728 {
  box-sizing: border-box;
  width: min(728px, 100%) !important;
  max-width: 728px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  overflow: hidden;
  text-align: center;
}
body:not(.admin-area) .shared-ad-468 {
  box-sizing: border-box;
  display: block;
  width: min(468px, 100%) !important;
  max-width: 468px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  overflow: hidden;
  text-align: center;
}
body:not(.admin-area) .shared-ad-slot-468 { width: min(468px, 100%); }
body:not(.admin-area) .shared-ad-300 {
  box-sizing: border-box;
  display: block;
  width: min(300px, 100%) !important;
  max-width: 300px !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  overflow: hidden;
  text-align: center;
}
body:not(.admin-area) .shared-ad-728 img,
body:not(.admin-area) .shared-ad-728 iframe,
body:not(.admin-area) .shared-ad-728 video,
body:not(.admin-area) .shared-ad-728 canvas,
body:not(.admin-area) .shared-ad-468 img,
body:not(.admin-area) .shared-ad-468 iframe,
body:not(.admin-area) .shared-ad-468 video,
body:not(.admin-area) .shared-ad-468 canvas,
body:not(.admin-area) .shared-ad-300 img,
body:not(.admin-area) .shared-ad-300 iframe,
body:not(.admin-area) .shared-ad-300 video,
body:not(.admin-area) .shared-ad-300 canvas {
  max-width: 100% !important;
  box-sizing: border-box;
}
body:not(.admin-area) .shared-ad-slot-300 { width: min(300px, 100%); }
body:not(.admin-area) .landing-ad-720,
body:not(.admin-area) .landing-hero-ad,
body:not(.admin-area) .live-top-banner-ad,
body:not(.admin-area) .dashboard-lifetime-ad {
  box-sizing: border-box;
  max-width: min(728px, 100%);
}
body:not(.admin-area) .landing-hero-ad .shared-ad-728,
body:not(.admin-area) .dashboard-lifetime-ad .shared-ad-728,
body:not(.admin-area) .live-top-banner-ad .shared-ad-728 { min-height: 90px; }
body:not(.admin-area) .landing-ad-mid,
body:not(.admin-area) .zerads-ptc-ad-slot { width: min(468px, 100%); max-width: 100%; margin-inline: auto; }
body:not(.admin-area) .live-ad-frame { width: min(300px, 100%); max-width: 100%; margin-inline: auto; }
body:not(.admin-area) .live-ad-slot-300 { width: min(300px, 100%); max-width: 100%; min-width: 0; overflow: hidden; margin-inline: auto; }
body:not(.admin-area) .live-ad-slot-300 img,
body:not(.admin-area) .live-ad-slot-300 iframe,
body:not(.admin-area) .live-ad-slot-300 video,
body:not(.admin-area) .live-ad-slot-300 canvas { max-width: 100% !important; box-sizing: border-box; }
body:not(.admin-area) .live-position-grid-compact .live-position-reward { display: block; }
body:not(.admin-area) .live-position-grid-compact .live-position-reward-copy { width: 100%; }
body:not(.admin-area) .dashboard-ad-medium { width: min(300px, 100%); max-width: 100%; margin-inline: auto; }
body:not(.admin-area) .dashboard-ad-medium-inner { width: min(300px, 100%); max-width: 100%; margin-inline: auto; overflow: hidden; }
body:not(.admin-area) .ad-label { text-align: center; }

/* Strong, page-specific selectors defeat legacy 720px max-width declarations. */
body.page-home .landing-hero-ad .shared-ad-728,
body.page-home .landing-ad-720 .shared-ad-728,
body.page-pool-live .live-top-banner-ad .shared-ad-728,
body:not(.admin-area) .dashboard-page .dashboard-lifetime-ad .shared-ad-728,
body:not(.admin-area) .dashboard-page .dashboard-ad-wide .shared-ad-728 {
  width: min(728px, 100%) !important;
  max-width: 728px !important;
}
body.page-home .landing-ad.landing-ad-460.shared-ad-slot-468 {
  width: min(468px, 100%) !important;
  max-width: 468px !important;
}
body:not(.admin-area) .live-position-grid-compact .live-position-reward {
  grid-column: 1 / -1;
}
