@font-face {
  font-family: 'PopBuyRubik';
  src: url('../fonts/Rubik-Regular.ttf');
  font-display: swap;
}
@font-face {
  font-family: 'PopBuyRubik';
  src: url('../fonts/Rubik-Bold.ttf');
  font-weight: 600 900;
  font-display: swap;
}

html:has(.pop-buy:not([hidden]):not([style="display: none"]):not([style="display: none;"]):not([style="display:none"]):not([style="display:none;"])),
body:has(.pop-buy:not([hidden]):not([style="display: none"]):not([style="display: none;"]):not([style="display:none"]):not([style="display:none;"])) {
  overflow: hidden;
}
.pop-buy {
  position: fixed;
  z-index: 1000;
  font-family: 'PopBuyRubik', sans-serif;
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
}
.pop-buy .pop-buy-layout {
  position: relative;
  display: flex;
  flex: none;
  width: 100%;
  min-height: 100dvh;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: none;
}
.pop-buy .pop-overlay {
  background: rgba(0, 0, 0, 0.42);
  position: fixed;
  inset: 0;
}
.pop-buy .pop-buy-cont {
  position: relative;
  flex: none;
  width: 100%;
  max-width: 750px;
  margin: auto;
  color: #000;
  box-sizing: border-box;
  pointer-events: auto;
  background: url('../../img/online-tools/buy-scene.webp') center / 100% 100% no-repeat;
}
.pop-buy .buy-content {
  padding: 49.7% 8% 6.2%;
}
.pop-buy .buy-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: last baseline;
  gap: 8px;
  margin: 0 0 12px;
}
.pop-buy .buy-price-prefix {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pop-buy .buy-only {
  padding: 2px 16px;
  border-radius: 16px 16px 0 16px;
  background: #000;
  color: #c7ff4c;
  font-size: 30px;
  line-height: 1.5;
}
.pop-buy .buy-only-text {
  background: linear-gradient(115deg, #32f5d4 6.16%, #8ef26d 52.59%, #dfef13 93.17%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.pop-buy .buy-currency,
.pop-buy .buy-period {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
}
.pop-buy .buy-price-value {
  display: flex;
  align-items: baseline;
  margin: 0;
  line-height: 1;
}
.pop-buy .buy-amount {
  font-size: 84px;
  font-weight: 700;
  line-height: 1.2;
}
.pop-buy .buy-action {
  position: relative;
  max-width: 416px;
  margin: 0 auto;
}
.pop-buy .buy-btn {
  display: block;
  padding: 18px 16px;
  border: 4px solid transparent;
  border-radius: 48px;
  background: linear-gradient(#000, #000) padding-box, linear-gradient(180deg, #d2ff4c, #c7ff4c 40%, #ff6bd8) border-box;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.pop-buy .buy-btn:hover {
  transform: scale(1.05);
}
.pop-buy .buy-discount {
  position: absolute;
  top: -26px;
  right: -28px;
  width: 132px;
  height: 69px;
  background: url('../../img/online-tools/buy-discount.svg') center / contain no-repeat;
  pointer-events: none;
}
.pop-buy .pop-buy-cont .buy-close {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pop-buy-amc .pop-buy-cont {
  background-image: url('../../img/online-tools/buy-scene-amc.webp');
}
.pop-buy-ymc .pop-buy-cont {
  background-image: url('../../img/online-tools/buy-scene-ymc.webp');
}
.pop-buy-amc .buy-only-text,
.pop-buy-ymc .buy-only-text {
  background: none;
  color: #fff82f;
}
.pop-buy-amc .buy-discount,
.pop-buy-ymc .buy-discount {
  background-image: url('../../img/online-tools/buy-discount-pink.svg');
}
@media (max-width: 768px) {
  .pop-buy .pop-buy-cont {
    max-width: 420px;
  }
  .pop-buy .buy-price {
    gap: 4px;
    margin-bottom: 8px;
  }
  .pop-buy .buy-only {
    padding: 1px 8px;
    border-radius: 8px 8px 0 8px;
    font-size: 14px;
  }
  .pop-buy .buy-price-prefix {
    gap: 2px;
  }
  .pop-buy .buy-currency,
  .pop-buy .buy-period {
    font-size: 18px;
  }
  .pop-buy .buy-amount {
    font-size: 40px;
  }
  .pop-buy .buy-action {
    max-width: 232px;
  }
  .pop-buy .buy-btn {
    padding: 8px 10px;
    border-width: 2px;
    font-size: 18px;
  }
  .pop-buy .buy-discount {
    top: -16px;
    right: -12px;
    width: 76px;
    height: 40px;
  }
  .pop-buy .pop-buy-cont .buy-close {
    top: 2px;
    left: 2px;
    transform: scale(0.5);
    transform-origin: top left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pop-buy .buy-btn {
    transition: none;
  }
}
