/* "Co nowego?" changelog popup — minimalist banner carousel, reappears when new items ship */

.wn-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 14, 23, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wn-overlay.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.wn-card {
  width: min(100%, 400px);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-md, 0 28px 80px rgba(0, 0, 0, 0.24));
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s ease;
  touch-action: pan-y;
}

.wn-overlay.is-open .wn-card {
  transform: scale(1);
}

.wn-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.wn-close:hover {
  background: rgba(0, 0, 0, 0.55);
}

.wn-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
}

.wn-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wn-slide--active {
  opacity: 1;
}

.wn-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wn-slide-img--placeholder {
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
}

.wn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.wn-arrow:hover {
  background: #fff;
}

.wn-arrow--prev { left: 10px; }
.wn-arrow--next { right: 10px; }

.wn-arrow[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.wn-body {
  padding: 22px 24px 20px;
}

.wn-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.wn-text {
  display: none;
}

.wn-text--active {
  display: block;
}

.wn-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--fg);
}

.wn-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-fg, var(--fg));
  margin: 0 0 10px;
}

.wn-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 6px;
}

.wn-link:hover {
  text-decoration: underline;
}

.wn-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 4px;
}

.wn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wn-dot--active {
  background: var(--primary);
  transform: scale(1.3);
}

.wn-dismiss {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--muted-fg, var(--fg));
  font-size: 12.5px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.wn-dismiss:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .wn-body {
    padding: 18px 18px 16px;
  }
}

@media (min-width: 640px) {
  .wn-card {
    width: min(100%, 480px);
  }
}
