.cms-spotlight {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 60px)) scale(.94);
  pointer-events: none;
  transition: opacity .45s ease, transform .8s cubic-bezier(.2,.8,.2,1), visibility .45s ease;
}

.cms-spotlight.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cms-spotlight.is-closed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(100% + 60px)) scale(.94);
  pointer-events: none;
}

.cms-spotlight-shape {
  position: relative;
  width: clamp(300px, 28vw, 390px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: #bdc400;
  color: #26343a;
  border-radius: 58% 42% 48% 52% / 44% 56% 44% 56%;
  box-shadow: 0 20px 50px rgba(38,52,58,.16), 0 0 0 12px rgba(189,196,0,.08);
}

.cms-spotlight.is-visible .cms-spotlight-shape {
  animation: cmsSpotlightShapeIntro 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes cmsSpotlightShapeIntro {
  0% { border-radius: 72% 28% 66% 34% / 34% 70% 30% 66%; }
  45% { border-radius: 38% 62% 42% 58% / 62% 38% 58% 42%; }
  100% { border-radius: 58% 42% 48% 52% / 44% 56% 44% 56%; }
}

.cms-spotlight-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #26343a;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: transform .25s ease, background .2s ease, color .2s ease;
}

.cms-spotlight-close:hover {
  background: #fff;
  color: #26343a;
  transform: rotate(90deg) scale(1.05);
}

.cms-spotlight-close:focus-visible {
  outline: 2px solid #26343a;
  outline-offset: 3px;
}

.cms-spotlight-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.cms-spotlight-text,
.cms-spotlight-cta {
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}

.cms-spotlight-text.show,
.cms-spotlight-cta.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cms-spotlight-text {
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1.15;
  color: #26343a;
}

.cms-spotlight-text:nth-child(2) {
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 700;
}

.cms-spotlight-text:nth-child(3) {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.25;
}

.cms-spotlight-cta {
  align-self: center;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #26343a;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cms-spotlight-cta:hover,
.cms-spotlight-cta:focus {
  background: #fff;
  color: #26343a;
  text-decoration: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .cms-spotlight {
    left: 22px;
    bottom: 22px;
  }

  .cms-spotlight-shape {
    width: 300px;
    padding: 55px 38px;
  }
}

@media (max-width: 767.98px) {
  .cms-spotlight-trigger-host {
    overflow: visible;
  }

  .cms-spotlight {
    position: absolute;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    z-index: 100;
    transform: translate(-50%, -50%) scale(.85);
  }

  .cms-spotlight.is-visible {
    transform: translate(-50%, -50%) scale(1);
  }

  .cms-spotlight.is-closed {
    transform: translate(-50%, -50%) scale(.85);
  }

  .cms-spotlight-shape {
    width: min(300px, calc(100vw - 32px));
    padding: 55px 38px 50px;
  }

  .cms-spotlight-text {
    font-size: 19px;
  }

  .cms-spotlight-text:nth-child(2) {
    font-size: 27px;
  }

  .cms-spotlight-text:nth-child(3) {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-spotlight,
  .cms-spotlight-shape,
  .cms-spotlight-text,
  .cms-spotlight-cta,
  .cms-spotlight-close {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
