.thimezone-ad {
  margin: 16px 0;
  position: relative;
  z-index: 20;
}

.thz-ad-inner {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.thz-ad-inner--media-text {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.thz-ad-media {
  flex: 0 0 45%;
  min-width: 180px;
}

.thz-ad-text {
  flex: 1;
  padding: 14px 14px 14px 0;
}

.thz-ad-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.thz-ad-description {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.thz-ad-cta {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.thz-ad-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  font-size: 18px;
}

.thz-ad-skip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.thz-ad-format--overlay,
.thz-ad-format--video_overlay,
.thz-ad-format--floating {
  position: fixed;
  margin: 0;
  max-width: min(360px, calc(100vw - 20px));
  z-index: 10000;
}

.thz-ad-pos--bottom_right { right: 10px; bottom: 10px; }
.thz-ad-pos--bottom_left { left: 10px; bottom: 10px; }
.thz-ad-pos--top_right { right: 10px; top: 10px; }
.thz-ad-pos--top_left { left: 10px; top: 10px; }
.thz-ad-pos--center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.thz-ad-pos--bottom_center { left: 50%; bottom: 10px; transform: translateX(-50%); }
.thz-ad-pos--top_center { left: 50%; top: 10px; transform: translateX(-50%); }

.thz-ad--blocking {
  max-width: none;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.thz-ad--blocking .thz-ad-inner {
  width: min(92vw, 760px);
}

.thz-ad-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .thz-ad-inner--media-text {
    flex-direction: column;
  }

  .thz-ad-media {
    min-width: 0;
    flex-basis: auto;
  }

  .thz-ad-text {
    padding: 12px;
  }
}
