/**
 * Sticky mobile CTA (design/overrides/js/50-sticky-cta.js).
 * Mobile only, sits above the fold's bottom edge, never taller than it needs
 * to be — and carries its own "Annonslänk" marking.
 */

.zp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--dw-deep);
  border-top: 1px solid var(--dw-line, rgba(255, 255, 255, 0.15));
  box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, 0.9);
  animation: zp-sticky-in 220ms var(--dw-ease) both;
}

.zp-sticky[hidden] {
  display: none;
}

@keyframes zp-sticky-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .zp-sticky {
    animation: none;
  }
}

.zp-sticky__mark {
  flex: 0 0 auto;
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dw-dis);
  max-width: 4.2rem;
  line-height: 1.15;
}

.zp-sticky__cta {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--dw-ember, var(--wp--preset--color--accent));
  color: var(--dw-deep);
  font-family: var(--dw-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
}

.zp-sticky__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.zp-sticky__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--dw-line, rgba(255, 255, 255, 0.2));
  background: transparent;
  color: var(--dw-dis);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.zp-sticky__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (min-width: 46.01rem) {
  .zp-sticky {
    display: none;
  }
}
