.gh-gift-popup[hidden] {
  display: none !important;
}

.gh-gift-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gh-gift-popup.is-open {
  opacity: 1;
}

.gh-gift-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 17, 23, 0.76);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.gh-gift-popup__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "intro gallery"
    "ticket gallery"
    "actions gallery";
  grid-template-columns: minmax(0, 0.88fr) minmax(330px, 1.12fr);
  gap: 16px 24px;
  box-sizing: border-box;
  width: min(820px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(72, 53, 68, 0.16);
  border-radius: 28px;
  padding: 34px;
  background:
    radial-gradient(circle at 0 0, rgba(238, 67, 87, 0.1), transparent 38%),
    linear-gradient(145deg, #fff 0%, #fdfbfc 52%, #f7eef0 100%);
  color: #241a22;
  box-shadow: 0 32px 100px rgba(20, 12, 18, 0.42);
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 53, 68, 0.42) transparent;
}

.gh-gift-popup.is-open .gh-gift-popup__dialog {
  transform: translateY(0) scale(1);
}

.gh-gift-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(72, 53, 68, 0.16);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #241a22;
  box-shadow: 0 8px 24px rgba(36, 26, 34, 0.12);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gh-gift-popup__close:hover,
.gh-gift-popup__close:focus-visible {
  border-color: #483544;
  outline: 3px solid rgba(238, 67, 87, 0.3);
  outline-offset: 2px;
}

.gh-gift-popup__intro {
  grid-area: intro;
  min-width: 0;
  padding-right: 26px;
}

.gh-gift-popup__eyebrow {
  margin: 0 0 9px;
  color: #b42f41;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gh-gift-popup__title {
  margin: 0;
  color: #241a22;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.gh-gift-popup__title span,
.gh-gift-popup__title strong {
  display: block;
}

.gh-gift-popup__title strong {
  color: #b42f41;
}

.gh-gift-popup__ticket {
  grid-area: ticket;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 53, 68, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(36, 26, 34, 0.1);
}

.gh-gift-popup__ticket picture {
  display: block;
}

.gh-gift-popup__ticket img {
  display: block;
  width: 100%;
  height: auto;
}

.gh-gift-popup__gallery {
  grid-area: gallery;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  align-content: center;
  border: 1px solid rgba(72, 53, 68, 0.12);
  border-radius: 20px;
  padding: 14px;
  background: rgba(247, 238, 240, 0.86);
}

.gh-gift-popup__item {
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 53, 68, 0.1);
  border-radius: 14px;
  background: #fff;
}

.gh-gift-popup__item picture {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.gh-gift-popup__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gh-gift-popup__item--mug img {
  width: min(100%, 119px);
  height: auto;
  max-height: 119px;
}

.gh-gift-popup__actions {
  grid-area: actions;
  align-self: end;
}

.gh-gift-popup__cta {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 12px 22px;
  background: #241a22;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(36, 26, 34, 0.24);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
}

.gh-gift-popup__cta:hover,
.gh-gift-popup__cta:focus-visible {
  background: #483544;
  outline: 3px solid rgba(238, 67, 87, 0.34);
  outline-offset: 3px;
}

.gh-gift-popup__notice {
  margin: 11px 0 0;
  color: #6d5c68;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

body.gh-gift-popup-open {
  overscroll-behavior: none;
}

body.gh-gift-popup-open .premium-fixed-call {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation-play-state: paused !important;
}

@media (max-height: 520px) and (min-width: 701px) {
  .gh-gift-popup__dialog {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 8px 18px;
    padding: 22px 28px;
  }

  .gh-gift-popup__eyebrow {
    display: none;
  }

  .gh-gift-popup__title {
    font-size: 26px;
    line-height: 1.07;
  }

  .gh-gift-popup__gallery {
    gap: 8px;
    padding: 10px;
  }

  .gh-gift-popup__item {
    aspect-ratio: 1.55 / 1;
  }

  .gh-gift-popup__item--mug img {
    width: min(100%, 92px);
    max-height: 92px;
  }

  .gh-gift-popup__cta {
    min-height: 46px;
    padding-block: 9px;
    font-size: 15px;
  }

  .gh-gift-popup__notice {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.35;
  }
}

@media (max-width: 700px) {
  .gh-gift-popup {
    padding: 12px;
  }

  .gh-gift-popup__dialog {
    grid-template-areas:
      "intro"
      "ticket"
      "gallery"
      "actions";
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: min(366px, 100%);
    max-height: calc(100svh - 24px);
    border-radius: 22px;
    padding: 22px 16px 18px;
  }

  .gh-gift-popup__close {
    top: 9px;
    right: 9px;
    width: 44px;
    height: 44px;
    font-size: 26px;
  }

  .gh-gift-popup__intro {
    padding-right: 40px;
  }

  .gh-gift-popup__eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .gh-gift-popup__title {
    font-size: clamp(26px, 8.2vw, 32px);
    line-height: 1.1;
  }

  .gh-gift-popup__ticket {
    border-radius: 11px;
  }

  .gh-gift-popup__gallery {
    gap: 7px;
    border-radius: 15px;
    padding: 8px;
  }

  .gh-gift-popup__item {
    border-radius: 10px;
  }

  .gh-gift-popup__item--mug img {
    width: min(100%, 108px);
    max-height: 108px;
  }

  .gh-gift-popup__cta {
    min-height: 52px;
    font-size: 16px;
  }

  .gh-gift-popup__notice {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (max-height: 680px) and (max-width: 700px) {
  .gh-gift-popup__dialog {
    grid-template-areas:
      "intro ticket"
      "gallery gallery"
      "actions actions";
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .gh-gift-popup__title {
    font-size: clamp(23px, 7vw, 28px);
  }

  .gh-gift-popup__item {
    aspect-ratio: 1.18 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-gift-popup,
  .gh-gift-popup__dialog {
    transition: none;
  }

  .gh-gift-popup__dialog,
  .gh-gift-popup.is-open .gh-gift-popup__dialog {
    transform: none;
  }
}
