/* Amigo Secreto — usa as variáveis do tema (claro/escuro automáticos). */
.tf-as { background: var(--card, #fff); border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius, 10px); box-shadow: var(--shadow); padding: 18px 16px 20px; margin: 18px 0 26px; color: var(--ink, #1d2230); }
.tf-as__passo[hidden] { display: none !important; }
.tf-as__tit { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 6px 0 10px; }
.tf-as__tit span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand, #8a34d1); color: var(--brand-ink, #fff); font-size: .95rem; flex: 0 0 auto; }
.tf-as__tit small { font-weight: 400; color: var(--muted, #5c6675); font-size: .85rem; }
.tf-as__tit + .tf-as__ajuda { margin-top: -4px; }
.tf-as__ajuda { color: var(--muted, #5c6675); font-size: .92rem; margin: 0 0 10px; }

.tf-as__nomes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.tf-as__nomes li { display: flex; gap: 6px; }
.tf-as input[type="text"], .tf-as select { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px); background: var(--bg, #f3f5f9); color: var(--ink, #1d2230); }
.tf-as input[type="text"]:focus, .tf-as select:focus { outline: 2px solid var(--brand, #8a34d1); outline-offset: 0; border-color: transparent; }
.tf-as__x { flex: 0 0 40px; border: 1px solid var(--line, #e6e9f0); background: transparent; color: var(--muted, #5c6675); border-radius: var(--radius-sm, 8px); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tf-as__x:hover { color: var(--strike, #dc2626); border-color: currentColor; }
.tf-as__mais { background: none; border: 1px dashed var(--brand, #8a34d1); color: var(--brand, #8a34d1); border-radius: var(--radius-sm, 8px); padding: 9px 14px; font-weight: 600; cursor: pointer; width: 100%; margin-bottom: 16px; }

.tf-as__exc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tf-as__exc select { flex: 1 1 130px; }
.tf-as__exc-txt { color: var(--muted, #5c6675); font-size: .9rem; }
.tf-as__dois { font-size: .9rem; display: flex; align-items: center; gap: 6px; flex: 1 1 100%; }
.tf-as__exc-lista { list-style: none; margin: 10px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tf-as__exc-lista li { display: inline-flex; align-items: center; gap: 6px; background: var(--bg, #f3f5f9); border: 1px solid var(--line, #e6e9f0); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .9rem; }
.tf-as__exc-lista .tf-as__x { flex: 0 0 28px; height: 28px; border: 0; border-radius: 50%; font-size: 1.1rem; }

.tf-as__orc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tf-as__orc button { border: 1px solid var(--line, #e6e9f0); background: var(--bg, #f3f5f9); color: var(--ink, #1d2230); border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
.tf-as__orc button[aria-checked="true"] { background: var(--brand, #8a34d1); border-color: var(--brand, #8a34d1); color: var(--brand-ink, #fff); }

.tf-as__btn { display: block; width: 100%; background: var(--brand, #8a34d1); color: var(--brand-ink, #fff); border: 0; border-radius: var(--radius, 10px); padding: 14px 18px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin: 8px 0; }
.tf-as__btn:hover { filter: brightness(1.06); }
.tf-as__btn2 { background: transparent; border: 1px solid var(--brand, #8a34d1); color: var(--brand, #8a34d1); border-radius: var(--radius-sm, 8px); padding: 9px 14px; font-weight: 600; cursor: pointer; }
.tf-as__link { display: block; margin: 6px auto 0; background: none; border: 0; color: var(--muted, #5c6675); text-decoration: underline; cursor: pointer; font-size: .92rem; }
.tf-as__erro { background: #fdecec; color: #991b1b; border-radius: var(--radius-sm, 8px); padding: 10px 12px; font-size: .95rem; margin: 6px 0; }
[data-theme="dark"] .tf-as__erro { background: #3b1518; color: #fecaca; }
.tf-as__priv { text-align: center; color: var(--muted, #5c6675); font-size: .82rem; margin: 6px 0 0; }

.tf-as__grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.tf-as__nome { border: 1px solid var(--line, #e6e9f0); background: var(--bg, #f3f5f9); color: var(--ink, #1d2230); border-radius: var(--radius, 10px); padding: 14px 10px; font-size: 1rem; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.tf-as__nome:hover { border-color: var(--brand, #8a34d1); }
.tf-as__nome.is-visto { opacity: .5; font-weight: 400; cursor: default; }
.tf-as__fim { text-align: center; font-weight: 700; margin: 6px 0 12px; }

.tf-as__ecra { text-align: center; padding: 18px 0 6px; }
.tf-as__grande { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.tf-as__calhou { font-size: 2rem; font-weight: 800; color: var(--brand, #8a34d1); margin: 8px 0 6px; overflow-wrap: anywhere; }
.tf-as__orc-txt { color: var(--muted, #5c6675); margin: 0 0 12px; }

.tf-as-faq details { border-bottom: 1px solid var(--line, #e6e9f0); padding: 10px 0; }
.tf-as-faq summary { font-weight: 700; cursor: pointer; }
.tf-as-faq p { margin: 8px 0 0; }

.tf-as__prenda { display: inline-block; margin: 2px 0 12px; font-weight: 700; color: var(--brand, #8a34d1); text-decoration: underline; }
.tf-as-prendas { margin: 0 0 24px; }
.tf-as-prendas__tit { font-weight: 800; font-size: 1.05rem; margin: 0 0 8px; }
.tf-as-prendas div { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-as-prendas a { display: inline-block; border: 1px solid var(--line, #e6e9f0); background: var(--card, #fff); color: var(--ink, #1d2230); border-radius: 999px; padding: 7px 14px; font-weight: 600; text-decoration: none; font-size: .92rem; }
.tf-as-prendas a:hover, .tf-as-prendas a[aria-current="page"] { background: var(--brand, #8a34d1); border-color: var(--brand, #8a34d1); color: var(--brand-ink, #fff); }

/* Grelha de prendas da Amazon */
.tf-pz__quando { color: var(--muted, #5c6675); font-size: .88rem; margin: 6px 0 10px; }
.tf-pz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
@media (min-width: 640px) { .tf-pz { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tf-pz { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tf-pz__item { display: flex; flex-direction: column; gap: 6px; background: var(--card, #fff); border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius, 10px); padding: 10px; color: var(--ink, #1d2230); text-decoration: none; box-shadow: var(--shadow); }
.tf-pz__item:hover { box-shadow: var(--shadow-hover); border-color: var(--brand, #8a34d1); }
.tf-pz__img { display: block; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--radius-sm, 8px); overflow: hidden; }
.tf-pz__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tf-pz__t { font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tf-pz__p b { color: var(--price-ink, #7226b0); font-size: 1.1rem; }
.tf-pz__p s { color: var(--strike, #dc2626); font-size: .85rem; }
.tf-pz__p em { font-style: normal; font-weight: 700; color: var(--discount, #16a34a); font-size: .85rem; }
.tf-pz__btn { margin-top: auto; text-align: center; background: var(--brand, #8a34d1); color: var(--brand-ink, #fff); border-radius: var(--radius-sm, 8px); padding: 8px; font-weight: 700; font-size: .9rem; }
.tf-pz__aviso { color: var(--muted, #5c6675); }

.tf-pz__img { position: relative; }
.tf-pz__selo { position: absolute; top: 6px; left: 6px; font-size: .72rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.tf-pz__selo--oferta { background: #dc2626; color: #fff; }
.tf-pz__h { font-size: .72rem; color: var(--muted, #5c6675); line-height: 1.25; }
.tf-pz__pvpr { color: var(--muted, #5c6675); font-size: .75rem; }
.tf-pz__aviso { color: var(--muted, #5c6675); font-size: .8rem; margin: 6px 0 10px; }
.tf-pz__natal { background: #ecfdf5; color: #065f46; border-radius: var(--radius-sm, 8px); padding: 8px 10px; font-size: .88rem; margin: 0 0 10px; }
[data-theme="dark"] .tf-pz__natal { background: #0b3a2c; color: #a7f3d0; }
.tf-pz__dicas { margin: 0 0 12px; padding-left: 18px; font-size: .92rem; }
.tf-pz__dicas li { margin: 0 0 4px; }

/* Depois do sorteio: modos, links por pessoa */
.tf-as__modos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg, #f3f5f9); padding: 4px; border-radius: var(--radius, 10px); margin: 0 0 12px; }
.tf-as__modos button { border: 0; background: transparent; padding: 10px 6px; border-radius: var(--radius-sm, 8px); font-weight: 700; font-size: .92rem; color: var(--muted, #5c6675); cursor: pointer; }
.tf-as__modos button[aria-selected="true"] { background: var(--card, #fff); color: var(--ink, #1d2230); box-shadow: var(--shadow); }
.tf-as__links { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tf-as__links li { display: flex; align-items: center; gap: 6px; background: var(--bg, #f3f5f9); border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px); padding: 8px; }
.tf-as__links-n { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.tf-as__wa, .tf-as__cp { flex: 0 0 auto; border-radius: var(--radius-sm, 8px); padding: 9px 12px; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; border: 0; }
.tf-as__wa { background: #25d366; color: #073b1c; }
.tf-as__cp { background: var(--card, #fff); color: var(--ink, #1d2230); border: 1px solid var(--line, #e6e9f0); }
.tf-as__data { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; margin: 0 0 14px; }
.tf-as__data input { font-size: 16px; padding: 8px 10px; border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px); background: var(--bg, #f3f5f9); color: var(--ink, #1d2230); }
.tf-as__aviso3 { background: #fff7ed; color: #9a3412; border-radius: var(--radius-sm, 8px); padding: 8px 10px; }
[data-theme="dark"] .tf-as__aviso3 { background: #3b2310; color: #fed7aa; }
.tf-as__meu { margin: 0 0 10px; }
.tf-as__meu a { display: block; text-align: center; background: var(--bg, #f3f5f9); border: 1px dashed var(--brand, #8a34d1); color: var(--brand, #8a34d1); border-radius: var(--radius-sm, 8px); padding: 10px; font-weight: 700; text-decoration: none; }
#tf-as-guardar { display: block; width: 100%; margin: 4px 0 6px; }

/* Link pessoal: prendas logo a seguir ao resultado */
.tf-as__p-prendas { text-align: left; margin: 14px 0 6px; }
.tf-as__p-prendas .tf-pz { margin-bottom: 10px; }
.tf-as__p-prendas .tf-as__btn { text-align: center; text-decoration: none; }

/* Email */
.tf-as__email { background: var(--bg, #f3f5f9); border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius, 10px); padding: 12px; margin: 14px 0; text-align: left; }
.tf-as__email-tit { font-weight: 800; margin: 0 0 8px; font-size: .98rem; }
.tf-as__email-linha { display: flex; gap: 6px; }
.tf-as__email-linha input { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line, #e6e9f0); border-radius: var(--radius-sm, 8px); background: var(--card, #fff); color: var(--ink, #1d2230); }
.tf-as__email-ok { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted, #5c6675); margin: 8px 0 0; }
.tf-as__email-ok input { margin-top: 2px; }
.tf-as__email-msg { font-size: .88rem; margin: 8px 0 0; font-weight: 600; }
.tf-as__isco { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.tf-pz__selo--minimo { background: var(--brand, #8a34d1); color: var(--brand-ink, #fff); }

/* Cartão de prenda — linhas de altura fixa (25/11/2026: layout torto quando uns
   cartões tinham PVPR/% e outros não). Mobile first: 2 colunas, nada parte linha. */
.tf-pz__item { gap: 4px; min-width: 0; }
.tf-pz__t { margin-top: 2px; }
.tf-pz__p { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-height: 1.6em; white-space: nowrap; }
.tf-pz__p b { font-size: 1.12rem; line-height: 1.2; }
.tf-pz__p em { font-size: .74rem; padding: 1px 6px; border-radius: 999px; background: rgba(22,163,74,.12); line-height: 1.4; }
.tf-pz__ref { display: block; min-height: 1.25em; font-size: .75rem; line-height: 1.25; color: var(--muted, #5c6675); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-pz__ref s { color: var(--strike, #dc2626); }
.tf-pz__h { display: block; min-height: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-pz__btn { margin-top: 6px; }
@media (max-width: 360px) { .tf-pz { gap: 8px; } .tf-pz__item { padding: 8px; } .tf-pz__p b { font-size: 1.02rem; } }

/* Botão para a home no fundo das páginas */
.tf-as-home { display: block; text-align: center; text-decoration: none; background: var(--brand, #8a34d1); color: var(--brand-ink, #fff); border-radius: var(--radius, 10px); padding: 14px 16px; margin: 4px 0 26px; box-shadow: var(--shadow); }
.tf-as-home:hover { filter: brightness(1.06); color: var(--brand-ink, #fff); }
.tf-as-home__t { display: block; font-weight: 800; font-size: 1.08rem; }
.tf-as-home__s { display: block; font-size: .82rem; opacity: .9; margin-top: 2px; }
