.fs-gift-hidden {
  display: none !important;
}

.fs-gift-stock-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483646;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  color: #111111;
  background: #ffd33d;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
}

.fs-gift-stock-badge.is-hidden {
  display: none;
}

.fs-gift-modal {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  color: #111111;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  z-index: 2147483647;
}

.fs-gift-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.fs-gift-modal[open] {
  animation: fsGiftIn 0.18s ease-out;
}

.fs-gift-panel {
  position: relative;
  padding: 32px;
  font-family: Arial, Helvetica, sans-serif;
}

.fs-gift-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #111111;
  background: #f2f3f7;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.fs-gift-kicker {
  margin: 0 44px 8px 0;
  color: #8e35ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.fs-gift-title {
  margin: 0 44px 12px 0;
  color: #111111;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.fs-gift-copy,
.fs-gift-status {
  margin: 0;
  color: #4e5664;
  font-size: 16px;
  line-height: 1.55;
}

.fs-gift-pass {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: #f7f8fb;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
}

.fs-gift-pass span {
  color: #626b78;
  font-size: 14px;
  font-weight: 700;
}

.fs-gift-pass strong {
  color: #ff2c68;
  font-size: 28px;
  line-height: 1;
}

.fs-gift-copy-pass,
.fs-gift-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.fs-gift-copy-pass {
  padding: 0 14px;
  color: #111111;
  background: #ffffff;
  border: 1px solid #d8dde7;
}

.fs-gift-download {
  width: 100%;
  margin-top: 8px;
  color: #111111;
  background: #ffd33d;
  border: 0;
  box-shadow: 0 14px 34px rgba(255, 211, 61, 0.25);
}

.fs-gift-download.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.fs-gift-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 700;
}

@keyframes fsGiftIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .fs-gift-stock-badge {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 11px 14px;
    font-size: 14px;
  }

  .fs-gift-panel {
    padding: 28px 20px;
  }

  .fs-gift-pass {
    grid-template-columns: 1fr;
  }

  .fs-gift-copy-pass {
    width: 100%;
  }
}
