@keyframes p-xmas-popup-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.p-xmas-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.7);
  animation: p-xmas-popup-fade 0.3s ease;
}
.p-xmas-popup[hidden] {
  display: none;
}
.p-xmas-popup__inner {
  position: relative;
  width: min(88vw, 312px);
  margin: auto;
  padding: 48px 0 16px;
}
.p-xmas-popup__close {
  position: absolute;
  top: 0;
  right: -30px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.p-xmas-popup__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}
.p-xmas-popup__close span:nth-child(1) {
  transform: rotate(45deg);
}
.p-xmas-popup__close span:nth-child(2) {
  transform: rotate(-45deg);
}
.p-xmas-popup__close::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
}
.p-xmas-popup__letter {
  position: relative;
  display: block;
  width: 100%;
  max-width: 259px;
  height: 293px;
  aspect-ratio: 61/69;
  margin: 0 auto;
}
.p-xmas-popup__letter-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}
.p-xmas-popup__letter-img--closed {
  opacity: 1;
}
.p-xmas-popup__letter-img--open {
  opacity: 0;
}
.p-xmas-popup.is-open .p-xmas-popup__letter-img--closed {
  opacity: 0;
}
.p-xmas-popup.is-open .p-xmas-popup__letter-img--open {
  opacity: 1;
}
.p-xmas-popup__title {
  display: block;
  width: 100%;
  max-width: 312px;
  height: 137px;
  aspect-ratio: 271/119;
  margin: 19px auto 0;
}
.p-xmas-popup__title img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-xmas-popup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  min-height: 50px;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 30px;
  background: linear-gradient(91deg, #FFF4C4 1.05%, #EFC824 99.89%);
  color: #282828;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.p-xmas-popup__btn:hover {
  opacity: 0.7;
}
.p-xmas-popup__btn:focus-visible {
  outline: 2px solid #282828;
  outline-offset: 2px;
}
.p-xmas-popup__check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 25px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}
.p-xmas-popup__check input {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0 12px 0 0;
  border: 1px solid #fff;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.p-xmas-popup__check input:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.p-xmas-popup__check-text {
  padding-top: 2px;
}
@media screen and (max-width: 767px) {
  .p-xmas-popup__inner {
    padding: 28px 0 10px;
  }
  .p-xmas-popup__close {
    position: fixed;
    top: 10px;
    right: 10px;
  }
  .p-xmas-popup__letter {
    max-width: 172px;
    height: 194px;
    aspect-ratio: 215/243;
  }
  .p-xmas-popup__title {
    max-width: 210px;
    height: 92px;
    aspect-ratio: 286/125;
    margin-top: 10px;
  }
  .p-xmas-popup__btn {
    max-width: 200px;
    margin-top: 8px;
  }
  .p-xmas-popup__check {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-xmas-popup {
    animation: none;
  }
  .p-xmas-popup__letter-img {
    transition: none;
  }
}
