/* ===== MODAL "RESGATE SEU PRÊMIO" (100% IDÊNTICO À REFERÊNCIA TIKTOK) ===== */
#reward-root {
  visibility: hidden;
  pointer-events: none;
}

#reward-root.is-open,
#reward-root.is-closing {
  visibility: visible;
  pointer-events: auto;
}

#reward-root .reward-overlay {
  position: fixed;
  inset: 0;
  background: #16182375;
  z-index: 10000;
  opacity: 0;
  will-change: opacity;
}

#reward-root .reward-sheet {
  position: fixed;
  z-index: 10001;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(100vw, 520px);
  min-height: min(94dvh, 790px);
  max-height: min(96dvh, 800px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #161823;
  border-radius: 24px 24px 0 0;
  padding: 26px 22px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -12px 48px #16182333;
  will-change: transform;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

#reward-root.is-open .reward-overlay {
  animation: rewardFadeOverlay .22s ease-out forwards;
}

#reward-root.is-open .reward-sheet {
  animation: rewardSheetSlideUp .43s cubic-bezier(.2, .82, .22, 1) forwards;
}

#reward-root.is-closing .reward-overlay {
  animation: rewardFadeOverlayOut .18s ease-in forwards;
}

#reward-root.is-closing .reward-sheet {
  animation: rewardSheetSlideDown .3s cubic-bezier(.4, 0, 1, 1) forwards;
}

@keyframes rewardFadeOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rewardFadeOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes rewardSheetSlideUp {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

@keyframes rewardSheetSlideDown {
  from { transform: translate(-50%, 0); }
  to { transform: translate(-50%, 100%); }
}

.reward-art {
  display: block;
  width: 88px;
  height: 62px;
  object-fit: contain;
  margin: 0 auto 3px;
}

.reward-sheet h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 3px 0 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #161823;
}

.reward-desc {
  display: block;
  margin: 7px 20px 18px;
  color: #686a75;
  font-size: 16px;
  line-height: 1.45;
}

.reward-coins {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: #161823;
}

.reward-coins img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.reward-coins b {
  color: #3f4149;
  font-size: 29px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.reward-coin-label {
  align-self: center;
  margin-top: 7px;
  color: #555762;
  font-size: 15px;
  font-weight: 600;
}

.reward-product-link {
  display: block;
  margin: 9px auto 0;
  text-decoration: none;
  cursor: pointer;
}

.reward-product {
  display: block;
  width: min(200px, 62vw);
  height: 132px;
  margin: 0 auto;
  object-fit: contain;
}

.reward-old {
  margin: 8px 0 3px;
  color: #161823;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: line-through;
}

.reward-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: fit-content;
  margin: 1px auto 0;
  border-radius: 4px;
  background: #fff0f3;
  padding: 7px 16px;
  color: #d91f48;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.reward-new small {
  color: #d91f48;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.reward-spacer {
  flex: 1 1 auto;
  min-height: 24px;
}

.reward-note {
  width: 100%;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: #f2f3f5;
  padding: 12px 14px;
  color: #161823;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

.reward-apply {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #f52b56;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  transition: background-color .16s ease, transform .16s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.reward-apply:active {
  transform: scale(.985);
}

/* Toast de bônus discreto e compacto na parte inferior */
.reward-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: rgba(22, 24, 35, 0.88);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.reward-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
