.wp-slide {
  position: relative;
}

.banner-complaint-overlay {
  position: absolute;
  top: clamp(0.35rem, 1.6vw, 1rem);
  right: clamp(0.4rem, 1.5vw, 1.25rem);
  bottom: auto;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 0.9vw, 0.5rem);
  width: clamp(9rem, 16vw, 16rem);
  max-width: calc(100% - 0.75rem);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.banner-complaint-overlay.is-hiding {
  opacity: 0;
}

.banner-complaint-overlay.is-hidden {
  display: none;
}

.banner-complaint-card {
  position: relative;
  pointer-events: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
  overflow: hidden;
  max-height: 7rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top right;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    max-height 0.38s ease,
    margin 0.38s ease,
    filter 0.32s ease;
}

.banner-complaint-card.is-hiding {
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.96);
  max-height: 0;
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.banner-complaint-card.is-hidden {
  display: none;
}

.banner-complaint-card__link {
  display: block;
  line-height: 0;
  border-radius: 0.55rem;
  overflow: hidden;
}

.banner-complaint-card__link img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-complaint-card__close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 2;
  width: clamp(1rem, 2.2vw, 1.2rem);
  height: clamp(1rem, 2.2vw, 1.2rem);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.92);
  color: #fff;
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  line-height: clamp(1rem, 2.2vw, 1.2rem);
  text-align: center;
  cursor: pointer;
}

.banner-complaint-card__close:hover {
  background: rgba(31, 41, 55, 0.95);
}

@media (max-width: 991.98px) {
  .banner-complaint-overlay {
    width: clamp(8.25rem, 22vw, 13.5rem);
    top: 0.45rem;
    right: 0.45rem;
  }
}

@media (max-width: 767.98px) {
  .banner-complaint-overlay {
    width: clamp(7.75rem, 34vw, 11.5rem);
    top: 0.35rem;
    right: 0.35rem;
  }
}

@media (max-width: 575.98px) {
  .banner-complaint-overlay {
    top: 0.3rem;
    right: 0.3rem;
    left: auto;
    transform: none;
    width: min(42vw, 10.5rem);
    gap: 0.28rem;
  }

  .banner-complaint-card__link {
    border-radius: 0.45rem;
  }
}

@media (max-width: 399.98px) {
  .banner-complaint-overlay {
    width: min(46vw, 9.25rem);
  }
}

@media (min-width: 1400px) {
  .banner-complaint-overlay {
    width: 17rem;
    top: 1.1rem;
    right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-complaint-overlay,
  .banner-complaint-card {
    transition: none;
  }
}
