/* 2S2 Theme Builder — região pública (v2) */
.tb-root{box-sizing:border-box;background:var(--tb-background);color:var(--tb-text);font-family:system-ui,sans-serif;padding:16px;width:100%;max-width:1200px;margin:0 auto}
.tb-root *{box-sizing:border-box}
.tb-root:empty{display:none}
.tb-section{background:var(--tb-surface);overflow-wrap:anywhere;overflow:hidden}
.tb-section h2,.tb-section h3,.tb-section p{margin:0;font-size:inherit;line-height:1.5}
.tb-root a{color:var(--tb-accent)}
.tb-root .tb-button{display:inline-block;background:var(--tb-accent);color:#101018;padding:12px 22px;border-radius:8px;font-weight:700;text-decoration:none}
.tb-section img{display:block;max-width:100%;height:auto}
.tb-wide img{width:100%;aspect-ratio:3/1;object-fit:cover;border-radius:inherit}
.tb-section hr{border:0;border-top:1px solid var(--tb-accent)}
.tb-title{font-weight:700;margin:0 0 10px!important}
.tb-placeholder{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/1;border:2px dashed currentColor;border-radius:10px;opacity:.45;font-size:14px}
.tb-cell .tb-placeholder{aspect-ratio:1/1}.tb-promo .tb-placeholder{aspect-ratio:16/9}
.tb-caption{display:block;padding:6px 2px 0;font-size:.85em;color:var(--tb-text)}

/* Carrossel */
.tb-carousel{position:relative}
.tb-track{position:relative;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;gap:10px;scrollbar-width:none;border-radius:inherit}
.tb-track::-webkit-scrollbar{display:none}
.tb-slide{flex:0 0 100%;scroll-snap-align:start;text-decoration:none}
.tb-slide img{width:100%;aspect-ratio:3/1;object-fit:cover;border-radius:10px}
.tb-dots{display:flex;justify-content:center;gap:6px;margin-top:8px}
.tb-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--tb-text);opacity:.35;cursor:pointer}
.tb-dots button.tb-on{opacity:1;background:var(--tb-accent);width:20px;border-radius:4px}

/* Grade */
.tb-grid{display:grid;grid-template-columns:repeat(var(--tb-cols,2),minmax(0,1fr));gap:10px}
.tb-cell{text-decoration:none}
.tb-cell img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}

/* Contagem regressiva */
.tb-cd-units{display:inline-flex;gap:8px}
.tb-cd-units span{display:flex;flex-direction:column;align-items:center;min-width:3.2em;padding:8px 6px;border-radius:8px;background:var(--tb-background)}
.tb-cd-units b{font-size:1.6em;line-height:1.1;color:var(--tb-accent);font-variant-numeric:tabular-nums}
.tb-cd-units small{font-size:.6em;opacity:.75;text-transform:uppercase;letter-spacing:.5px}
.tb-cd-done .tb-cd-units{opacity:.45}

/* Promoção */
.tb-promo{display:flex;flex-direction:column;gap:12px}
.tb-promo img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.tb-promo-body{display:flex;flex-direction:column;gap:8px}
.tb-promo-body h3{font-size:1.25em;font-weight:800}
.tb-promo-body .tb-button{align-self:flex-start}
[style*="text-align:center"] .tb-promo-body .tb-button{align-self:center}
[style*="text-align:right"] .tb-promo-body .tb-button{align-self:flex-end}
@media(min-width:768px){.tb-promo.tb-has-img{flex-direction:row;align-items:center}.tb-promo.tb-has-img picture{flex:0 0 45%}.tb-promo-body{flex:1}}

/* Correção do app: botão fixo de Depósito/Saque ("Depositar Agora"/"Retirar Agora") ficava solto
   por cima dos campos. Faixa sólida atrás do botão + espaço no fim do conteúdo para rolar tudo acima dele. */
html:root .fixedBottom-footer{background:linear-gradient(180deg,transparent 0,var(--ep-color-background-fill-body-default,var(--color-bg-300,#10121d)) 1.75rem)!important;z-index:20}
html:root ion-content:has(.fixedBottom-footer),html:root .ion-page:has(.fixedBottom-footer)>ion-content{--padding-bottom:11rem}
/* Telas internas (Saque etc., .can-go-back) não têm barra de navegação embaixo, mas o app reserva 130px
   para ela: o botão ficava solto no meio. Aqui ele encosta no fim da tela. */
html:root .ion-page.can-go-back>.fixedBottom-footer{height:calc(env(safe-area-inset-bottom) + 2.875rem + 2.25rem)!important}
html:root .ion-page.can-go-back>.fixedBottom-footer .btn-warp{bottom:calc(env(safe-area-inset-bottom) + .75rem)!important}
html:root .ion-page.can-go-back:has(>.fixedBottom-footer)>ion-content{--padding-bottom:6rem}
@media(max-width:767px){.tb-device-desktop{display:none}.tb-root{padding:8px}.tb-grid{grid-template-columns:repeat(min(var(--tb-cols,2),2),minmax(0,1fr))}}
@media(min-width:768px){.tb-device-mobile{display:none}}
