.koopo-ads-slot {
  margin: 24px 0;
}

.koopo-ads-provider-slot--koopo {
  min-height: 120px;
}

.koopo-ads-slot[data-state='loading'] .koopo-ads-provider-slot--koopo {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(255, 255, 255, 0.9)),
    #fffaf4;
  border: 1px dashed rgba(31, 26, 23, 0.16);
  border-radius: 22px;
  display: flex;
  justify-content: center;
}

.koopo-ads-slot[data-state='loading'] .koopo-ads-provider-slot--koopo::before {
  animation: koopo-ads-pulse 1.4s ease-in-out infinite;
  color: rgba(31, 26, 23, 0.62);
  content: 'Loading sponsored placement';
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.koopo-ads-native {
  background: linear-gradient(180deg, #fffdf9, #fff7ef);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(31, 26, 23, 0.08);
  color: #1f1a17;
  overflow: hidden;
}

.koopo-ads-native__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 0;
}

.koopo-ads-native__label,
.koopo-ads-native__destination {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.koopo-ads-native__label {
  color: #c75100;
}

.koopo-ads-native__destination {
  color: rgba(31, 26, 23, 0.52);
}

.koopo-ads-native__content {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
}

.koopo-ads-native__media {
  aspect-ratio: 5 / 4;
  background: #f3ede6;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.koopo-ads-native__copy {
  display: grid;
  gap: 10px;
}

.koopo-ads-native__headline {
  font-size: 1.2rem;
  line-height: 1.15;
  margin: 0;
}

.koopo-ads-native__body {
  color: rgba(31, 26, 23, 0.78);
  line-height: 1.6;
  margin: 0;
}

.koopo-ads-native__cta {
  align-items: center;
  background: #ff7a00;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
  width: fit-content;
}

.koopo-ads-native__skip {
  align-items: center;
  align-self: start;
  background: rgba(31, 26, 23, 0.08);
  border: 0;
  border-radius: 999px;
  color: rgba(31, 26, 23, 0.8);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
}

.koopo-ads-native__skip:disabled {
  cursor: default;
  opacity: 0.65;
}

.koopo-ads-native--sponsored_listing .koopo-ads-native__content {
  grid-template-columns: minmax(112px, 160px) minmax(0, 1fr);
}

.koopo-ads-native--video_preroll .koopo-ads-native__content {
  gap: 14px;
}

.koopo-ads-debug {
  margin-top: 12px;
  background: #f6f7f7;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}

.koopo-ads-debug pre {
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes koopo-ads-pulse {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .koopo-ads-native--sponsored_listing .koopo-ads-native__content {
    grid-template-columns: 1fr;
  }
}
