/* Offer plate - shared by the landing and the admin preview. Container must have .is-offer and container-type: inline-size. */
.plate {
  position: absolute;
  left: 9%;
  top: 83%;
  width: 81.5%;
  height: 9.8%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.2cqw;
  color: var(--offer-color, #fff);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
}
.is-offer .plate {
  opacity: 1;
  pointer-events: auto;
  animation:
    plate-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards,
    plate-pulse 1.6s 0.6s ease-in-out infinite;
}

.plate-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3cqw;
  padding: 0 3cqw;
  text-align: center;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.plate-headline {
  font-size: var(--headline-size, 8.4cqw);
  letter-spacing: 0.02em;
  text-shadow:
    0 0.35cqw 0 #0b3d17,
    0 0 1.6cqw rgba(0, 0, 0, 0.55);
  -webkit-text-stroke: 0.25cqw #0b3d17;
  paint-order: stroke fill;
}
.plate-subline {
  font-size: var(--subline-size, 4cqw);
  letter-spacing: 0.04em;
  color: #ffdf3a;
  -webkit-text-stroke: 0.15cqw #0b3d17;
  paint-order: stroke fill;
  text-shadow: 0 0.25cqw 0 #0b3d17;
}
.plate-subline:empty {
  display: none;
}

.plate-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: shine 2.4s 0.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes plate-in {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes plate-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  60%,
  100% {
    transform: translateX(120%);
  }
}

