@keyframes wpwFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes wpwGiftBoxBgFadeIn {
  from {
    background: rgba(0, 0, 0, 0.18);
  }

  to {
    background: rgba(0, 0, 0, 0);
  }
}

.wpw-gift-box-single {
  --wpw-header-offset: 174px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wpw-gift-box-hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #64402b 0%, #1f130f 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}

.wpw-gift-box-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wpw-gift-box-bg-track {
  height: 100%;
  display: flex;
  transition: transform 0.38s ease;
}

.wpw-gift-box-bg-slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wpw-gift-box-hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  animation: wpwGiftBoxBgFadeIn 0.9s ease-out both;
}

.wpw-top-menu {
  position: absolute;
  top: calc(var(--wpw-header-offset) + 16px);
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}

.wpw-top-menu-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  pointer-events: auto;
}

.wpw-menu-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-left: 1px solid transparent;
  padding: 1px 0 1px 10px;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(35, 24, 21, 0.45);
}

.wpw-menu-link:hover,
.wpw-menu-link.is-active {
  border-left-color: #fff;
  color: #fff;
}

.wpw-gift-box-hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: end;
  padding: 24px 42px 42px 24px;
  text-align: right;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
  animation: wpwFadeInUp 0.8s ease-out both;
}

.wpw-gift-box-zh {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: #fff;
}

.wpw-gift-box-en {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.9vw, 26px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}

.wpw-gift-box-popup-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  padding-bottom: 2px;
}

.wpw-gift-box-popup-link:visited {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.wpw-gift-box-popup-link:hover {
  color: #8d6b4f;
  border-bottom-color: #8d6b4f;
}

.wpw-gift-box-popup-link:active,
.wpw-gift-box-popup-link:focus,
.wpw-gift-box-popup-link:focus-visible,
.wpw-gift-box-popup-link.is-active {
  color: #a12b2a;
  border-bottom-color: #a12b2a;
  outline: none;
}

.wpw-gift-box-bg-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 100%;
}

.wpw-gift-box-bg-nav {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #fff;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.wpw-gift-box-nav-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.wpw-gift-box-nav-icon::before,
.wpw-gift-box-nav-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.wpw-gift-box-bg-nav.is-prev .wpw-gift-box-nav-icon::before,
.wpw-gift-box-bg-nav.is-prev .wpw-gift-box-nav-icon::after,
.wpw-gift-box-carousel-nav.is-prev .wpw-gift-box-nav-icon::before,
.wpw-gift-box-carousel-nav.is-prev .wpw-gift-box-nav-icon::after {
  left: 7px;
  transform-origin: left center;
}

.wpw-gift-box-bg-nav.is-prev .wpw-gift-box-nav-icon::before,
.wpw-gift-box-carousel-nav.is-prev .wpw-gift-box-nav-icon::before {
  transform: translateY(-50%) rotate(-50deg);
}

.wpw-gift-box-bg-nav.is-prev .wpw-gift-box-nav-icon::after,
.wpw-gift-box-carousel-nav.is-prev .wpw-gift-box-nav-icon::after {
  transform: translateY(-50%) rotate(50deg);
}

.wpw-gift-box-bg-nav.is-next .wpw-gift-box-nav-icon::before,
.wpw-gift-box-bg-nav.is-next .wpw-gift-box-nav-icon::after,
.wpw-gift-box-carousel-nav.is-next .wpw-gift-box-nav-icon::before,
.wpw-gift-box-carousel-nav.is-next .wpw-gift-box-nav-icon::after {
  right: 7px;
  transform-origin: right center;
}

.wpw-gift-box-bg-nav.is-next .wpw-gift-box-nav-icon::before,
.wpw-gift-box-carousel-nav.is-next .wpw-gift-box-nav-icon::before {
  transform: translateY(-50%) rotate(50deg);
}

.wpw-gift-box-bg-nav.is-next .wpw-gift-box-nav-icon::after,
.wpw-gift-box-carousel-nav.is-next .wpw-gift-box-nav-icon::after {
  transform: translateY(-50%) rotate(-50deg);
}

.wpw-gift-box-bg-nav:hover,
.wpw-gift-box-bg-nav:focus {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.wpw-gift-box-single-empty {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.wpw-gift-box-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0);
  transition: background 0.28s ease;
}

.wpw-gift-box-popup-overlay.is-open {
  background: rgba(0, 0, 0, 0.18);
}

.wpw-gift-box-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  z-index: 999;
  background: #f2e8e2;
  color: #8d6b4f;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
}

.wpw-gift-box-popup.is-open {
  transform: translateX(0);
}

.wpw-gift-box-popup-inner {
  padding: 64px 52px 52px;
}

.wpw-gift-box-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #8d6b4f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.wpw-gift-box-popup-close:hover,
.wpw-gift-box-popup-close:focus {
  color: #8d6b4f;
  background: transparent;
  box-shadow: none;
}

.wpw-gift-box-popup-zh {
  color: #a12b2a;
}

.wpw-gift-box-popup-zh {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.2;
}

.wpw-gift-box-popup-en {
  margin: 10px 0 0;
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d6b4f;
}

.wpw-gift-box-popup-content {
  margin-top: 20px;
  color: #231815;
  line-height: 1.75;
}

.wpw-gift-box-popup-content p {
  margin: 0 0 12px;
}

.wpw-gift-box-popup-description {
  margin-top: 24px;
  color: #231815;
  line-height: 1.75;
}

.wpw-gift-box-popup-description p {
  margin: 0 0 12px;
}

.wpw-gift-box-carousel {
  position: relative;
  margin-top: 24px;
  padding: 0 36px;
}

.wpw-gift-box-carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.wpw-gift-box-carousel-track {
  display: flex;
  transition: transform 0.28s ease;
  width: 100%;
}

.wpw-gift-box-carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}

.wpw-gift-box-carousel-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wpw-gift-box-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8d6b4f;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.wpw-gift-box-carousel-nav.is-prev {
  left: 0;
}

.wpw-gift-box-carousel-nav.is-next {
  right: 0;
}

.wpw-gift-box-carousel-nav:hover,
.wpw-gift-box-carousel-nav:focus {
  color: #8d6b4f;
  background: transparent;
  box-shadow: none;
}

html.wpw-popup-lock,
html.wpw-popup-lock body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wpw-gift-box-hero-mask,
  .wpw-gift-box-hero-content {
    animation: none;
  }

  .wpw-gift-box-popup,
  .wpw-gift-box-popup-overlay {
    transition: none;
  }

  .wpw-gift-box-bg-track,
  .wpw-gift-box-carousel-track {
    transition: none;
  }
}

@media (max-width: 921px) {
  .wpw-gift-box-single {
    --wpw-header-offset: 150px;
  }

  .wpw-menu-link {
    font-size: 13px;
  }

  .wpw-gift-box-bg-nav {
    width: 38px;
    height: 38px;
  }

  .wpw-gift-box-nav-icon {
    width: 24px;
    height: 24px;
  }

  .wpw-gift-box-popup {
    width: 100vw;
  }
}
