.nbas-ad {
  position: relative;
  display: block;
  clear: both;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.nbas-ad picture {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.nbas-ad a {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.nbas-ad img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  vertical-align: middle;
}

/* Remove spacing sometimes added around shortcodes by WordPress editors. */
.nbas-ad + br,
.wd-header-html p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

p:has(> .nbas-ad),
figure:has(> .nbas-ad),
.wd-header-html:has(.nbas-ad),
.whb-column:has(.nbas-ad) {
  width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* WoodMart compatibility: follow the width of the active header/content column. */
.whb-header .nbas-ad,
.whb-sticky-header .nbas-ad,
.wd-header .nbas-ad,
.wd-header-html .nbas-ad,
.whb-column .nbas-ad {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.whb-header .nbas-ad a,
.whb-sticky-header .nbas-ad a,
.wd-header .nbas-ad a,
.wd-header-html .nbas-ad a {
  margin: 0 !important;
  padding: 0 !important;
}

.nbas-ad::after {
  content: "Ads";
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0.04em;
  pointer-events: none;
}

