/* ifGifts — paywall e compras (js/pagamento.js). Mesma família das folhas de login/cota (style.css + ui.css). */

.pw { z-index: 80; } /* acima do criador (z 50), junto do login/cota */
html.pw-open { overflow: hidden; }
.pw-sheet { width: min(460px, 100%); padding: 22px 20px 18px; text-align: center; max-height: calc(100dvh - 32px); overflow-y: auto; }
.pw-body { display: grid; gap: 0; }

.pw-head { display: grid; justify-items: center; gap: 2px; margin-bottom: 8px; }
.pw-gift { width: 64px; height: 64px; animation: wiggle 1.6s infinite; filter: drop-shadow(0 10px 16px rgba(224,48,63,.35)); }
.pw-gift svg { width: 100%; height: 100%; display: block; }
.pw-head h2 { margin: 2px 0 6px; font-size: 25px; }
.pw-head .pw-lead { font-size: 15px; margin: 0 0 6px; color: #5b5070; }
.pw-test {
  display: inline-block; margin: 4px 0 0 !important; padding: 4px 12px; border-radius: 999px;
  background: #fff3c4; color: #6b4b00 !important; font-size: 12px !important; font-weight: 800;
}
.pw-note { background: #fff0f0; color: var(--red2) !important; font-weight: 800; font-size: 14px !important; border-radius: 12px; padding: 8px 12px; margin: 4px 0 10px !important; }

.pw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f1e8da; border-radius: 14px; padding: 4px; margin: 6px 0 12px; }
.pw-tab { border: 0; background: none; border-radius: 10px; padding: 10px 8px; font: inherit; font-weight: 800; font-size: 15px; color: #5d5372; cursor: pointer; }
.pw-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(29,21,52,.12); }

/* pacotes */
.pw-products { display: grid; gap: 10px; margin: 6px 0 8px; }
.pw-product {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 14px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.pw-product:hover { border-color: #d8c3a4; }
.pw-product.is-on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,48,63,.14); }
.pw-product.is-hi { padding-top: 20px; }
.pw-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cdbfa8; display: inline-grid; place-items: center; }
.pw-product.is-on .pw-radio { border-color: var(--red); }
.pw-product.is-on .pw-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.pw-p-main { display: grid; gap: 2px; min-width: 0; }
.pw-p-name { font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.15; }
.pw-p-each { font-size: 13px; color: #776d8c; font-weight: 700; }
.pw-p-price { font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.pw-badge {
  position: absolute; top: -10px; left: 14px; background: linear-gradient(180deg, #ffd86b, #f5a623); color: #4a2c00;
  font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 2px 0 #c98207;
}
.pw-cur { font-size: 13px !important; color: #776d8c !important; margin: 0 0 10px !important; }
.pw-cur-btn { font-size: 13px; padding: 0; background: none; border: 0; cursor: pointer; }

/* formas de pagamento */
.pw-methods { display: grid; gap: 10px; margin: 4px 0 12px; }
.pw-m { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; text-align: center; padding-left: 16px; padding-right: 16px; }
.pw-m-ic { font-size: 18px; line-height: 1; }
.pw-m-pix .pw-m-ic { color: #32bcad; }
.btn.primary.pw-m-pix .pw-m-ic { color: #c9fff8; }
.pw-m-paypal .pw-m-ic { font-weight: 900; font-style: italic; color: #003087; }

.pw-fine { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; }
.pw-fine p { font-size: 12.5px !important; line-height: 1.45 !important; color: #776d8c !important; margin: 0 !important; }
.pw-fine a { color: inherit; font-weight: 800; }
.pw-later { margin: 10px auto 0; display: block; background: none; border: 0; cursor: pointer; color: #776d8c; font-size: 15px; }

.pw-wait { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; font-weight: 800; color: #5d5372 !important; font-size: 15px !important; margin: 10px 0 !important; }
.pw-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #ecdfcb; border-top-color: var(--red); animation: pwSpin .8s linear infinite; flex: none; }
@keyframes pwSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pw-spin, .pw-gift { animation: none; } }
.pw-err { margin: 8px 0 0 !important; }

/* Pix */
.pw-amount { font-family: var(--display); font-weight: 700; font-size: 30px !important; color: var(--ink) !important; margin: 0 !important; }
.pw-amount-sub { font-size: 14px !important; margin: 0 0 10px !important; }
.pw-qr { display: grid; place-items: center; margin: 4px 0 10px; }
.pw-qr canvas { width: 200px; height: 200px; border-radius: 14px; box-shadow: 0 0 0 2px var(--line); background: #fff; }
.pw-copy { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pw-copy input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; min-height: 42px; text-align: center; color: #5d5372; }
.pw-copy-btn { width: 100%; }
.pw-until { font-size: 13px !important; color: #776d8c !important; margin: 0 !important; }
.pw-sim, .pw-new { width: 100%; margin-top: 10px; }
.pw-done .pw-gift { animation: pwPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pwPop { from { transform: scale(.4); } to { transform: scale(1); } }

/* vídeos */
.pw-ads h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 4px 0; }
.pw-dots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 14px; }
.pw-dot { width: 14px; height: 14px; border-radius: 50%; background: #ecdfcb; }
.pw-dot.is-on { background: var(--green); }
.pw-ads .btn { width: 100%; }

/* "Meus presentes": compras */
.pw-hist { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; }
.pw-hist h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.pw-hist-credits { font-weight: 800; color: #12693a; background: #dcf5e4; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.pw-hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pw-hist-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pw-hist-main { display: grid; }
.pw-hist-main small { color: #9a90ab; font-size: 12px; }
.pw-hist-price { font-family: var(--display); font-weight: 700; font-size: 17px; }
.pw-pill { grid-column: 1 / -1; justify-self: start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f1e8da; color: #5d5372; }
.pw-pill.s-fulfilled, .pw-pill.s-paid { background: #dcf5e4; color: #12693a; }
.pw-pill.s-refunded { background: #e8e6ff; color: #3b2fa0; }
.pw-pill.s-failed, .pw-pill.s-expired { background: #fff0f0; color: var(--red2); }
.acc-credits { background: rgba(92,240,140,.14); color: #8ff0b4; border-color: rgba(92,240,140,.4); }

@media (max-width: 380px) {
  .pw-sheet { padding: 18px 14px 14px; }
  .pw-p-name { font-size: 16px; }
  .pw-p-price { font-size: 18px; }
}

/* painel: "Ver todos os pacotes" (abre /precos em outra aba; o rascunho continua aqui) */
.pw-all { display: block; text-align: center; margin: 0 0 12px; font-size: 13px; font-weight: 800; color: #6a4fd0; }
