.jsk-promotion-popup[hidden] {
  display: none !important;
}

.jsk-promotion-popup {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  min-height: 100vh;
  padding: 1.25rem;
  overflow: hidden;
  background: rgb(15 23 42 / 58%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.jsk-promotion-popup__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(36rem, calc(100vw - 2.5rem));
  max-height: min(85vh, 48rem);
  overflow: auto;
  border: 1px solid #dbe3ec;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.25rem 3.5rem rgb(15 23 42 / 22%);
  color: #172033;
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.jsk-promotion-popup__panel--with-image {
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
}

.jsk-promotion-popup.is-visible {
  opacity: 1;
}

.jsk-promotion-popup.is-closing {
  opacity: 0;
}

.jsk-promotion-popup.is-visible .jsk-promotion-popup__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.jsk-promotion-popup.is-closing .jsk-promotion-popup__panel {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
}

.jsk-promotion-popup__image {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
}

.jsk-promotion-popup__content {
  align-self: center;
  padding: 1.25rem;
}

.jsk-promotion-popup__close {
  position: absolute;
  z-index: 1;
  top: 0.45rem;
  right: 0.55rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.jsk-promotion-popup__eyebrow {
  margin: 0 2rem 0.4rem 0;
  color: #6d28d9;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jsk-promotion-popup h2 {
  margin: 0 1.5rem 0.5rem 0;
  color: #111827;
  font-size: 1.15rem;
  line-height: 1.3;
}

.jsk-promotion-popup__body {
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
}

.jsk-promotion-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.jsk-promotion-popup__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--jsk-promo-button-border, #6d28d9);
  border-radius: var(--jsk-promo-button-radius, 9px);
  background: var(--jsk-promo-button-background, #6d28d9);
  color: var(--jsk-promo-button-text, #fff) !important;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
}

.jsk-promotion-popup__action:hover,
.jsk-promotion-popup__action:focus-visible {
  filter: brightness(0.94);
}

.jsk-promotion-popup__action:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 40rem) {
  .jsk-promotion-popup {
    padding: 0.75rem;
  }

  .jsk-promotion-popup__panel,
  .jsk-promotion-popup__panel--with-image {
    grid-template-columns: minmax(0, 1fr);
    width: min(32rem, calc(100vw - 1.5rem));
    max-height: 85vh;
  }

  .jsk-promotion-popup__image {
    max-height: 10rem;
    min-height: 0;
  }

  .jsk-promotion-popup__content {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jsk-promotion-popup,
  .jsk-promotion-popup__panel {
    transition: none;
    transform: none;
  }

  .jsk-promotion-popup.is-visible .jsk-promotion-popup__panel,
  .jsk-promotion-popup.is-closing .jsk-promotion-popup__panel {
    transform: none;
  }
}
