.home-promotion-modal {
  align-items: center;
  background: rgb(12 24 65 / 68%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 1200;
}

.home-promotion-modal[hidden] { display: none; }

.home-promotion-open { overflow: hidden; }

.home-promotion-dialog {
  background: #fff;
  border: 1px solid #d8e0f2;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgb(10 23 64 / 32%);
  box-sizing: border-box;
  color: #1d2f67;
  max-height: min(720px, calc(100vh - 3rem));
  max-width: 580px;
  overflow: auto;
  padding: 2.3rem 2rem 2rem;
  position: relative;
  width: min(100%, 580px);
}

.home-promotion-dialog .eyebrow {
  color: #3556ad;
  font-size: .72rem;
  letter-spacing: .15em;
  margin: 0 0 .55rem;
}

.home-promotion-dialog h2 {
  color: #17275d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.08;
  margin: 0;
  padding-right: 2.5rem;
}

.home-promotion-message {
  color: #485d8d;
  font-size: 1rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  white-space: pre-line;
}

.home-promotion-close {
  align-items: center;
  background: #fff;
  border: 1px solid #d6dff2;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgb(19 39 92 / 15%);
  color: #234594;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 800;
  height: 2.7rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.7rem;
}

.home-promotion-close:hover,
.home-promotion-close:focus-visible {
  background: #f1f5ff;
  outline: 3px solid rgb(49 81 171 / 28%);
  outline-offset: 2px;
}

.home-promotion-media {
  background: #eff3ff;
  border: 1px solid #d5dff1;
  border-radius: 13px;
  margin-top: 1.2rem;
  max-height: 360px;
  overflow: hidden;
}

.home-promotion-media img,
.home-promotion-media video {
  display: block;
  height: auto;
  max-height: 358px;
  object-fit: contain;
  width: 100%;
}

.home-promotion-action {
  background: #25499f;
  border-radius: 9px;
  color: #fff;
  display: inline-block;
  font-weight: 800;
  margin-top: 1.25rem;
  padding: .78rem 1.1rem;
  text-decoration: none;
}

.home-promotion-action:hover,
.home-promotion-action:focus-visible {
  background: #183a89;
  outline: 3px solid rgb(49 81 171 / 28%);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .home-promotion-modal { align-items: end; padding: .75rem; }
  .home-promotion-dialog {
    border-radius: 18px;
    max-height: calc(100vh - 1.5rem);
    padding: 2rem 1.2rem 1.3rem;
  }
  .home-promotion-close { right: .75rem; top: .75rem; }
  .home-promotion-media { max-height: 280px; }
  .home-promotion-media img,
  .home-promotion-media video { max-height: 278px; }
}
