.book-promo-layer {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 4000;
  width: min(480px, calc(100vw - 56px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.book-promo-layer[hidden] {
  display: none;
}

.book-promo-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.book-promo-dialog {
  position: relative;
  width: 100%;
  pointer-events: auto;
  transform: translateY(22px);
  transition: transform 260ms ease, opacity 220ms ease;
}

.book-promo-layer.is-visible .book-promo-dialog {
  transform: translateY(0);
}

.book-promo-link {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  text-decoration: none;
  background: #11161c;
  border: 1px solid rgba(224, 184, 91, 0.62);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48);
}

.book-promo-cover {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #f1eee7;
}

.book-promo-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 188px;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(20, 18, 13, 0.24);
}

.book-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 34px 28px;
}

.book-promo-eyebrow {
  margin: 0 0 14px;
  color: #e4bd62;
  font: 700 14px/1.4 "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
}

.book-promo-content h2 {
  margin: 0;
  color: #fff;
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0;
}

.book-promo-description {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font: 400 14px/1.7 "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
}

.book-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #f1cf7c;
  font: 700 15px/1.4 "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

.book-promo-link:hover .book-promo-cta,
.book-promo-link:focus-visible .book-promo-cta {
  color: #fff1bd;
}

.book-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  font: 300 30px/1 Arial, sans-serif;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.book-promo-close:hover,
.book-promo-close:focus-visible {
  color: #f3d282;
  border-color: #f3d282;
}

@media (max-width: 640px) {
  .book-promo-layer {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .book-promo-link {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 190px;
  }

  .book-promo-cover {
    padding: 14px;
  }

  .book-promo-cover img {
    max-height: 158px;
  }

  .book-promo-content {
    padding: 24px 16px 20px;
  }

  .book-promo-eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .book-promo-content h2 {
    padding-right: 22px;
    font-size: 19px;
  }

  .book-promo-description {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
  }

  .book-promo-cta {
    margin-top: 14px;
    font-size: 12px;
  }

  .book-promo-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-promo-layer,
  .book-promo-dialog {
    transition: none;
  }
}
