.promotion-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.promotion-popup.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.promotion-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(48, 49, 43, .66);
  backdrop-filter: blur(5px);
}
.promotion-popup__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, .92fr) minmax(320px, 1.08fr);
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(197, 113, 85, .28);
  border-radius: 34px;
  background: #fffaf4;
  box-shadow: 0 34px 90px rgba(55, 45, 37, .32);
  transform: translateY(22px) scale(.97);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.promotion-popup.is-open .promotion-popup__dialog {
  transform: translateY(0) scale(1);
}
.promotion-popup__dialog--no-image {
  grid-template-columns: minmax(0, 1fr);
  width: min(620px, 100%);
}
.promotion-popup__media {
  min-height: 470px;
  background: #efc7ad;
  overflow: hidden;
}
.promotion-popup__media img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}
.promotion-popup__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 6vw, 72px);
  background:
    radial-gradient(circle at 100% 0, rgba(239,199,173,.58), transparent 35%),
    linear-gradient(145deg, #fffaf4 0%, #fff2e9 100%);
}
.promotion-popup__content::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 92px;
  height: 92px;
  background: url('../images/deco-leaves.svg') center/contain no-repeat;
  opacity: .12;
  pointer-events: none;
}
.promotion-popup__eyebrow {
  margin: 0 0 14px;
  color: #c57155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.promotion-popup__content h2 {
  margin: 0 0 18px;
  color: #55584f;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.promotion-popup__message {
  position: relative;
  z-index: 1;
  color: #706b62;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.promotion-popup__button {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 13px 25px;
  border-radius: 999px;
  background: #c57155;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(197,113,85,.25);
  transition: transform .2s ease, background .2s ease;
}
.promotion-popup__button:hover {
  background: #ad5f47;
  transform: translateY(-2px);
}
.promotion-popup__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(139,98,70,.18);
  border-radius: 50%;
  background: rgba(255,250,244,.92);
  color: #8b6246;
  font: 300 29px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(75,58,45,.14);
}
body.promotion-popup-open {
  overflow: hidden;
}
@media (max-width:760px) {
  .promotion-popup {
    align-items: center;
    padding: 14px;
  }
  .promotion-popup__dialog {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
    max-height: calc(100dvh - 28px);
    border-radius: 25px;
  }
  .promotion-popup__media {
    min-height: 0;
    height: min(34vh, 240px);
  }
  .promotion-popup__media img {
    min-height: 0;
    height: 100%;
  }
  .promotion-popup__content {
    padding: 32px 22px 30px;
  }
  .promotion-popup__content h2 {
    font-size: clamp(30px, 9vw, 40px);
  }
  .promotion-popup__message {
    font-size: 15px;
  }
  .promotion-popup__button {
    width: 100%;
    margin-top: 22px;
    padding-inline: 16px;
    text-align: center;
  }
  .promotion-popup__close {
    top: 10px;
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promotion-popup,
  .promotion-popup__dialog,
  .promotion-popup__button {
    transition: none;
  }
}
