.ts-ad-slot-v2 {
  width: min(100%, 1280px);
  max-width: 100%;
  margin: 22px auto;
  clear: both;
  position: relative;
  z-index: 2;
  overflow: visible;
  contain: layout style;
}

.ts-ad-slot-v2:empty,
.ts-ad-slot-v2[hidden] {
  display: none !important;
}

.ts-ad-slot-v2.ts-ad-sidebar {
  width: 100%;
  margin: 16px 0;
}

.ts-ad-shell-v2 {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.ts-ad-label-v2 {
  position: absolute;
  z-index: 6;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
  font: 700 9px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.ts-ad-link-v2 {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
}

.ts-ad-picture-v2,
.ts-ad-picture-v2 img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.ts-ad-picture-v2 img {
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.ts-ad-html-frame-v2 {
  display: block;
  width: 100%;
  height: 180px;
  min-height: 90px;
  max-height: 640px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.ts-ad-click-overlay-v2 {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  background: transparent;
  text-decoration: none;
}

.ts-ad-infeed {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 22px;
}

.ts-ad-sidebar .ts-ad-picture-v2 img {
  max-height: 560px;
}

.ts-ad-sidebar .ts-ad-html-frame-v2 {
  min-height: 220px;
}

.ts-ad-slot-v2[data-placement$="_TOP"],
.ts-ad-slot-v2[data-placement="HOME_AFTER_HERO"] {
  margin-top: 18px;
}

.ts-ad-slot-v2[data-placement$="_BOTTOM"] {
  margin-top: 34px;
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  .ts-ad-slot-v2 {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 16px auto;
  }

  .ts-ad-infeed {
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
    grid-column: 1 / -1;
  }

  .ts-ad-shell-v2 {
    border-radius: 14px;
  }

  .ts-ad-picture-v2 img {
    max-height: 300px;
  }

  .ts-ad-html-frame-v2 {
    height: 150px;
    min-height: 90px;
    max-height: 420px;
  }

  .ts-ad-label-v2 {
    font-size: 8px;
    top: 6px;
    left: 6px;
  }
}
