.ksr-popup {
  width: min(92vw, 980px);
  max-width: 980px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #18193a;
  font-family: Cabin, Arial, Helvetica, sans-serif;
}

.ksr-popup::backdrop {
  background: rgb(16 18 44 / 82%);
  backdrop-filter: blur(4px);
}

.ksr-popup[open] {
  animation: ksr-popup-in 260ms ease-out both;
}

.ksr-popup__panel {
  position: relative;
  display: grid;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 80px rgb(10 12 32 / 38%);
}

.ksr-popup--has-image .ksr-popup__panel {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

.ksr-popup__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 2px solid #18193a;
  border-radius: 50%;
  background: #fff;
  color: #18193a;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.ksr-popup__close:hover {
  background: #e8345b;
  color: #fff;
}

.ksr-popup__close:focus-visible,
.ksr-popup__cta:focus-visible {
  outline: 3px solid #e8345b;
  outline-offset: 4px;
}

.ksr-popup__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.ksr-popup__media {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #18193a;
}

.ksr-popup__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.ksr-popup__content {
  position: relative;
  display: flex;
  min-width: 0;
  padding: clamp(72px, 8vw, 104px) clamp(34px, 6vw, 76px) clamp(48px, 6vw, 72px);
  flex-direction: column;
  align-items: flex-start;
}

.ksr-popup__eyebrow {
  margin-bottom: 20px;
  color: #e8345b;
  font-family: Nunito, Cabin, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.4;
  text-transform: uppercase;
}

.ksr-popup__title {
  max-width: 12ch;
  margin: 0 0 14px;
  color: #18193a;
  font-family: "Plantin MT Pro Light", Georgia, serif;
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.ksr-popup__title strong,
.ksr-popup__title em {
  color: #e8345b;
}

.ksr-popup__body {
  max-width: 46ch;
  color: #33354d;
  font-family: Cabin, Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 1.35vw, 17px);
  letter-spacing: 0.015em;
  line-height: 1.4;
}

.ksr-popup__body > :first-child {
  margin-top: 0;
}

.ksr-popup__body > :last-child {
  margin-bottom: 0;
}

.ksr-popup .ksr-popup__cta {
  display: inline-flex;
  min-height: 0;
  margin-top: 32px;
  padding: 8px 20px !important;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 30px;
  background: #e8345b;
  color: #fff;
  font-family: Nunito, Cabin, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.6px;
  line-height: 1.7;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.ksr-popup .ksr-popup__cta:hover {
  background: #18193a;
  color: #fff;
}

body.ksr-popup-is-open {
  overflow: hidden;
}

@keyframes ksr-popup-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ksr-popup {
    width: min(92vw, 520px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .ksr-popup--has-image .ksr-popup__panel {
    grid-template-columns: 1fr;
  }

  .ksr-popup__media {
    min-height: 190px;
    max-height: 31vh;
  }

  .ksr-popup__image {
    min-height: 190px;
    max-height: 31vh;
  }

  .ksr-popup__content {
    padding: 44px 28px 36px;
  }

  .ksr-popup__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .ksr-popup__title {
    padding-right: 22px;
    font-size: clamp(30px, 9vw, 42px);
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .ksr-popup {
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ksr-popup[open] {
    animation: none;
  }

  .ksr-popup__close,
  .ksr-popup__cta {
    transition: none;
  }
}
