/* Campaign presentation. All selectors are scoped away from the admin. */
body.trevo-reference{--incrivel-bg:#e5e5e5;--incrivel-bgColor:#222;--incrivel-bgLink:#222;--incrivel-cardBg:#fff;--incrivel-cardColor:#222;--incrivel-cardLink:#222;--incrivel-formColor:#222;--incrivel-formBg:#f5f5f5;--incrivel-modalBg:#fff;--incrivel-modalColor:#222;--incrivel-primaria:#000;--incrivel-primariaColor:#fff;--incrivel-primariaLink:#fff;--incrivel-primariaDarken:#000;background:#e5e5e5!important;color:#222!important;font-family:Montserrat,Arial,sans-serif}
body.trevo-reference .header-app-header{position:fixed!important;top:0!important;left:50%!important;transform:translateX(-50%);width:100%!important;max-width:600px;height:70px!important;background:transparent!important;box-shadow:none!important;z-index:20!important}
body.trevo-reference .header-app-header-container,body.trevo-reference .header-app-header .container{height:70px;background:transparent!important}
body.trevo-reference .header-app-header .container>div{display:grid;grid-template-columns:1fr 150px 1fr;align-items:center;height:70px;text-align-last:auto!important;padding:0!important}
body.trevo-reference .header-app-header .header-app-brand{display:inline-block!important;width:150px!important;max-width:100%!important;height:70px!important;object-fit:contain;margin:0!important}
body.trevo-reference .header-app-header a{padding:0!important;text-align:center;font-size:11px}
body.trevo-reference .black-bar{display:none!important}
body.trevo-reference .app-main{width:100%;max-width:600px!important;margin:0 auto!important;padding:0 12px 18px!important;background:transparent!important;min-height:0!important}
body.trevo-reference .campanha-header{isolation:isolate;display:flex!important;flex-direction:column!important;position:relative!important;width:calc(100% + 24px)!important;max-width:none!important;margin:0 -12px!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden;background:#000!important}
body.trevo-reference .campanha-header .SorteioTpl_imagemContainer__2-pl4{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:0!important;flex:none!important;order:0}
body.trevo-reference .campanha-header .custom-image{height:auto!important;aspect-ratio:100/66}
body.trevo-reference .campanha-header .SorteioTpl_imagem__2GXxI{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important}
body.trevo-reference .campanha-header .SorteioTpl_info__t1BZr{position:relative!important;inset:auto!important;width:100%!important;padding:0 12px 2px!important;margin:0!important;background:linear-gradient(#16090a,#000)!important;color:#fff!important;order:1;min-height:0!important;border-radius:0!important}
body.trevo-reference .campanha-header .SorteioTpl_title__3RLtu{font-size:16px!important;line-height:1.25!important;font-weight:600!important;margin:5px 0 2px!important;color:#fff!important;text-transform:none!important}
body.trevo-reference .campanha-header .SorteioTpl_descricao__1b7iL{font-size:12px!important;line-height:1.2!important;color:#ddd!important;margin:0!important}
body.trevo-reference .campanha-header .custom-badge-display{position:relative!important;inset:auto!important;margin:0!important;padding:0!important;font-size:10px!important}
body.trevo-reference .reference-lookup{order:2!important;width:100%!important;display:flex!important;align-items:center;justify-content:center;border:0!important;border-radius:0!important;background:#000!important;color:white!important;height:40px!important;min-height:40px!important;max-height:40px!important;box-sizing:border-box;flex-shrink:0;padding:0 8px!important;font-size:13px!important;box-shadow:none!important;gap:7px;margin:0!important}
body.trevo-reference .campanha-preco{padding:12px 0!important;margin:0!important;min-height:52px;color:#222!important;gap:0!important;font-size:12px!important;flex-wrap:wrap}
body.trevo-reference .campanha-preco .tag{border:0;border-radius:5px;font-size:11px!important;padding:6px 8px!important;white-space:nowrap}
body.trevo-reference .campanha-preco .bg-cor-primaria{background:#000!important;color:#fff!important;font-size:14px!important;font-weight:600}
body.trevo-reference .reference-quantity{width:100%!important;height:40px!important;min-height:40px!important;border-radius:11px!important;border:1px solid #ccc!important;background:#f2f2f2!important;box-shadow:0 3px 5px #0001!important;margin:0 0 16px!important}
body.trevo-reference .reference-quantity .card-body{padding:0 12px!important;height:40px;position:relative}
body.trevo-reference .reference-quantity .center{width:100%}
body.trevo-reference .reference-quantity .qty{background:transparent!important;border:0!important;color:#222!important;font-size:20px!important;font-weight:600;height:38px!important;width:100%;padding:0 65px!important;box-shadow:none!important}
body.trevo-reference .reference-quantity .left,body.trevo-reference .reference-quantity .right{position:absolute;z-index:2;top:0;height:40px;display:flex;align-items:center;color:#4c5b64;font-size:24px}
body.trevo-reference .reference-quantity .left{left:40px}body.trevo-reference .reference-quantity .right{right:12px}
body.trevo-reference .reference-reset{position:absolute;left:8px;z-index:3;top:0;height:38px;border:0;background:none;color:#4c5b64;font-size:23px;padding:0 6px}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important;width:100%!important;margin:0 0 4px!important;padding:0!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item{width:auto!important;flex:none!important;margin:0!important;padding:0!important;min-height:55px!important;border:0!important;border-radius:5px!important;background:#f7f7f7!important;color:#252525!important;box-shadow:none!important;position:relative;cursor:pointer}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item-content{padding:6px 3px!important;height:55px!important;min-height:55px!important;justify-content:center;background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important;transform:none!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item-content:before,body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item-content:after{display:none!important}
body.trevo-reference .reference-purchase-hint{display:none!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect h3{font-size:23px!important;line-height:1.15!important;font-weight:600!important;margin:0!important;color:inherit!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item-content-txt{font-size:10px!important;text-transform:none!important;color:inherit!important;line-height:1.3!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .mais-popular{background:#000!important;color:#fff!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .mais-popular:before{content:'POPULAR';position:absolute;top:-14px;left:50%;transform:translateX(-50%);background:#198754;color:#fff;font-size:10px;line-height:16px;height:16px;width:auto;min-width:70px;border-radius:12px;padding:0 8px;font-weight:700;z-index:1;background-image:none;animation:none}
body.trevo-reference button.reference-buy{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;gap:8px;width:100%!important;min-height:61px!important;padding:10px 14px!important;border:0!important;border-radius:11px!important;background:#198754!important;color:#fff!important;box-shadow:none!important;filter:drop-shadow(0 4px 7.5px rgba(40,167,69,.3));position:relative;overflow:hidden;animation:reference-buy-pulse 4s ease-in-out infinite;margin:0 0 16px!important;text-align:left}
body.trevo-reference .reference-buy-label{display:flex;gap:9px;align-items:center;min-width:0}
body.trevo-reference .reference-buy-label>i{font-size:23px}
body.trevo-reference .reference-buy-label strong{display:block;font-size:18px;font-weight:600;line-height:1.15;text-transform:uppercase;white-space:nowrap}
body.trevo-reference .reference-buy-label small{display:block;font-size:10px;opacity:.7;font-weight:600;line-height:1.4}
body.trevo-reference .reference-buy-price{text-align:right;flex-shrink:0;max-width:43%;font-size:13px!important;font-weight:600;line-height:1.35}
body.trevo-reference .reference-unit{font-size:10px;font-weight:600;opacity:.65}
body.trevo-reference .reference-buy #total{font-size:13px!important;opacity:1!important;color:white!important}
body.trevo-reference .sorteio_sorteioDesc__TBYaL{background:#fff!important;border:0!important;border-radius:16px!important;box-shadow:none!important;margin:0 0 20px!important;overflow:hidden;color:#222!important}
body.trevo-reference .reference-description-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;background:#fff;color:#111;border:0;padding:18px;font:500 13px Montserrat,Arial,sans-serif;text-align:left}
body.trevo-reference .reference-description-toggle span{flex:1}
body.trevo-reference .reference-description-toggle[aria-expanded=true]>.bi-chevron-down{transform:rotate(180deg)}
body.trevo-reference [hidden]{display:none!important}
body.trevo-reference .sorteio_sorteioDescBody__3n4ko{color:#444;font-size:12px;line-height:1.7;padding:0 18px 18px!important;overflow-wrap:anywhere}
body.trevo-reference .rodape{background:transparent!important;color:#888!important;font-size:10px!important;text-align:center}
body.trevo-reference .rodape p{color:#888!important;font-size:10px!important}
body.trevo-reference .age-verification-card{border:1px solid #ddd;border-radius:17px!important;width:500px!important;padding:25px!important}
body.trevo-reference .age-verification-card h3{font-size:20px!important}
body.trevo-reference .age-verification-btn-confirm{background:#000!important;border-color:#000!important}
body.trevo-reference .age-verification-btn{border-radius:17px!important;min-height:48px;font-size:20px!important}
body.trevo-reference .age-verification-backdrop{backdrop-filter:blur(5px)}
body.trevo-reference :is(button,a,[role=button]):focus-visible{outline:3px solid #2477c4;outline-offset:3px}
@media(max-width:380px){body.trevo-reference .reference-buy-label strong{font-size:15px}body.trevo-reference .reference-buy-label small{font-size:9px}body.trevo-reference .reference-buy-price{max-width:40%;font-size:12px}body.trevo-reference .header-app-header .container>div{grid-template-columns:45px 1fr 75px}}

body.trevo-reference button.reference-buy::after{content:"";position:absolute;top:-50%;left:-60%;width:20%;height:200%;background:rgba(255,255,255,.2);transform:rotate(30deg);pointer-events:none;animation:reference-buy-shimmer 5s infinite}
@keyframes reference-buy-pulse{0%,100%{filter:drop-shadow(0 4px 7.5px rgba(40,167,69,.3))}50%{filter:drop-shadow(0 4px 12.5px rgba(40,167,69,.6))}}
@keyframes reference-buy-shimmer{0%{left:-60%}15%,100%{left:120%}}
@media(prefers-reduced-motion:reduce){body.trevo-reference button.reference-buy{animation:none}body.trevo-reference button.reference-buy::after{animation:none;display:none}}
body.trevo-reference :is(#loginModal,#cadastroModal) button[type="submit"]{background:#198754!important;border-color:#198754!important;color:#fff!important} body.trevo-reference :is(#loginModal,#cadastroModal) button[type="submit"]:hover{background:#157347!important;border-color:#157347!important}

body.trevo-reference .campanha-header .custom-badge-display .badge{font-size:10px!important;line-height:1!important;padding:4px 7px!important}
/* Keep the mobile login within comfortable reach, without a full-screen top edge. */
body.trevo-reference #loginModal .modal-dialog{width:calc(100% - 32px)!important;max-width:420px!important;height:auto!important;min-height:0!important;margin:clamp(48px,18vh,150px) auto 24px!important}
body.trevo-reference #loginModal .modal-content{height:auto!important;border:0;border-radius:16px!important;overflow:hidden}
body.trevo-reference #loginModal .modal-header{padding:16px 18px 8px!important}
body.trevo-reference #loginModal .modal-body{padding:12px 18px 18px!important;overflow-y:visible!important}
@media(max-height:500px){body.trevo-reference #loginModal .modal-dialog{margin:16px auto!important}}

@keyframes reference-popular-shine{0%{background-position:150% 0}20%,100%{background-position:-150% 0}}
@keyframes reference-popular-pulse{0%,100%{filter:drop-shadow(0 0 1px #19875433)}50%{filter:drop-shadow(0 0 4px #19875488)}}
@media(prefers-reduced-motion:reduce){body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .mais-popular:before{animation:none;background-image:none}}

body.trevo-reference .header-app-header.reference-scrolled{background:#000!important}
body.trevo-reference .header-app-header .reference-header-titles{justify-self:end;display:flex;flex-direction:column;align-items:center;font-size:10px;color:#ffffb8!important;line-height:1.3}
body.trevo-reference .header-app-header .reference-header-titles i{font-size:23px;color:#fff}
body.trevo-reference .campanha-header .SorteioTpl_imagemContainer__2-pl4::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 48%,rgba(0,0,0,.18) 68%,rgba(0,0,0,.78) 100%)}
body.trevo-reference .campanha-header .SorteioTpl_info__t1BZr{position:absolute!important;top:auto!important;bottom:50px!important;left:0!important;padding:0 12px!important;background:transparent!important;z-index:2}
body.trevo-reference .campanha-header .SorteioTpl_title__3RLtu,body.trevo-reference .campanha-header .SorteioTpl_title__3RLtu a{font-size:16px!important;line-height:1.2!important;font-weight:500!important;margin:0 0 1px!important}
body.trevo-reference .campanha-header .SorteioTpl_descricao__1b7iL{font-size:12px!important;line-height:1.2!important;font-weight:400!important;margin:0 0 1px!important;opacity:.7}
body.trevo-reference .campanha-header .custom-badge-display{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:24px;margin-bottom:1px!important}
body.trevo-reference .reference-campaign-registration{display:inline-block;background:#212529;color:#fff;border-radius:5px;padding:4px 6px;font-size:10px;font-weight:700;line-height:1;overflow-wrap:anywhere;max-width:100%}
@media(max-width:380px){body.trevo-reference .header-app-header .container>div{grid-template-columns:1fr 150px 1fr}}
/* Keep legacy card overlays from covering the title and badge. */
body.trevo-reference .campanha-header::before,body.trevo-reference .campanha-header::after{display:none!important}
body.trevo-reference .campanha-header .SorteioTpl_title__3RLtu{padding:0!important}
body.trevo-reference .header-app-header .container>div>button{justify-self:start;padding:0!important;margin:0!important;font-size:30px!important}
body.trevo-reference .campanha-header .SorteioTpl_imagemContainer__2-pl4::after{z-index:3}
body.trevo-reference .campanha-header .SorteioTpl_info__t1BZr{z-index:4}
body.trevo-reference .campanha-header .SorteioTpl_descricao__1b7iL{padding:0!important}
/* Prize list, populated from the existing load_cotas response. */
body.trevo-reference .reference-prizes{margin:20px 0;color:#323232}
body.trevo-reference .reference-prizes-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px}
body.trevo-reference .reference-prizes-trophy{font-size:30px;line-height:1}
body.trevo-reference .reference-prizes-copy{flex:1;min-width:0}
body.trevo-reference .reference-prizes-copy h2{font-size:14.4px;font-weight:600;margin:0;line-height:1.3}
body.trevo-reference .reference-prizes-copy small{font-size:12px;color:#6c757d}
body.trevo-reference .reference-prizes-total{border-radius:10px;padding:6px 12px;background:linear-gradient(90deg,#132d56,#3b4ad0);color:#fff;font-size:14px;white-space:nowrap}
body.trevo-reference .reference-prizes-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px;font-size:14px;font-weight:600;text-align:center;color:#fff}
body.trevo-reference .reference-prizes-counts>div{padding:4px 8px;border-radius:6px}
body.trevo-reference .reference-prizes-available{background:linear-gradient(90deg,#38a143,#02c7d2)}
body.trevo-reference .reference-prizes-awarded{background:linear-gradient(90deg,#a13838,#e25a8b)}
body.trevo-reference .reference-prizes-list{display:flex;flex-direction:column;gap:4px}
body.trevo-reference .reference-prize{display:flex;align-items:center;border-radius:10px;min-width:0}
body.trevo-reference .reference-prize-won{background:#000;color:#fff;padding:5px 8px;gap:8px}
body.trevo-reference .reference-prize-medal{display:flex;align-items:center;justify-content:center;width:29px;height:29px;flex-shrink:0;border-radius:50%;background:#ffffff26;color:#ffd76a;font-size:13px}
body.trevo-reference .reference-prize-info{flex:1;min-width:0}
body.trevo-reference .reference-prize-winner{font-size:13.76px;font-weight:700;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.trevo-reference .reference-prize-detail{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:1px}
body.trevo-reference .reference-prize-won .reference-prize-reward{color:#bfbfbf}
body.trevo-reference .reference-prize-won .reference-prize-number{margin-left:auto;padding:0 6px;background:transparent;letter-spacing:1px;display:inline-flex;align-items:center;gap:4px;flex-shrink:0}
body.trevo-reference .reference-prize-ticket-icon{display:inline-flex;color:#999;letter-spacing:0}
body.trevo-reference .reference-prize-number{padding:2px 6px;border-radius:6px;font-size:10.24px;line-height:1.05;font-weight:600;white-space:nowrap;background:#0000004d}
body.trevo-reference .reference-prize-reward{font-size:11.2px;line-height:1.25;font-weight:600;min-width:0;overflow-wrap:anywhere}
body.trevo-reference .reference-prize-free{border:1px dashed #32323238;background:#fff;color:#171717;padding:3px 7px;gap:6px}
body.trevo-reference .reference-prize-free .reference-prize-number{background:#3232320f}
body.trevo-reference .reference-prize-status{font-size:9.92px;font-weight:500;line-height:1}
body.trevo-reference .reference-prize-free .reference-prize-reward{margin-left:auto;text-align:right;font-size:11.84px}
body.trevo-reference .reference-prizes-empty{font-size:12px;margin:8px 0}

/* Medidas conferidas com a referência original (05/11/2026). */
body.trevo-reference .header-app-header .header-app-brand{width:146px!important;height:45px!important}
body.trevo-reference .campanha-header .SorteioTpl_imagemContainer__2-pl4::after{background:linear-gradient(transparent,rgba(0,0,0,.85)) bottom/100% 60px no-repeat,linear-gradient(transparent 20%,rgba(0,0,0,.8))}
body.trevo-reference .reference-lookup{color:#e0e0e0!important;font-weight:500}
body.trevo-reference .reference-lookup svg{width:17px;height:17px}
body.trevo-reference .campanha-preco{min-height:0;padding:4px 0 10px!important}
body.trevo-reference .reference-quantity{margin-bottom:8px!important}

/* Textos da área de compra iguais à referência original. */
body.trevo-reference .campanha-preco{padding:4px 0 12px!important;font-size:12.96px!important;color:#323232!important}
body.trevo-reference .campanha-preco .item{font-size:12.96px!important;color:#323232!important}
body.trevo-reference .campanha-preco .ms-2,body.trevo-reference .campanha-preco .me-1{font-size:12.96px!important;font-weight:500}
body.trevo-reference .campanha-preco .me-1::first-letter{text-transform:uppercase}
body.trevo-reference .campanha-preco .tag{border:1px solid transparent!important;transition:none!important;border-radius:6px;padding:4px 8px!important;font-size:10.63px!important;font-weight:600;line-height:1.5;color:#414141;box-shadow:0 4px 14px rgba(0,0,0,.134)}
body.trevo-reference .campanha-preco .bg-cor-primaria{font-size:14px!important;font-weight:600;line-height:21px;color:#fff!important}
body.trevo-reference .reference-quantity{border:1px solid rgba(23,23,23,.18)!important;border-radius:10px!important;background:#eee!important;box-shadow:0 4px 3px rgba(0,0,0,.08)!important}
body.trevo-reference .reference-quantity .qty{font-size:19.2px!important;color:#292929!important}
body.trevo-reference .reference-quantity .left{left:34px}
body.trevo-reference .reference-quantity .left,body.trevo-reference .reference-quantity .right,body.trevo-reference .reference-reset{color:#535353}
body.trevo-reference .reference-quantity .numeroChange i{font-size:29.76px}
body.trevo-reference .reference-reset{font-size:26px}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item{min-height:56px!important;background:#f4f4f4!important;color:#414141!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item-content{height:56px!important;min-height:56px!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item h3{font-size:22.4px!important;font-weight:600;line-height:1.25!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item h3 small{font-size:15.68px!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item-content-txt{font-weight:600!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .mais-popular{background:#000!important;color:#fff!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item.mais-popular .item-content h3{font-size:25.6px!important}
body.trevo-reference .app-vendas-express .vendasExpressNumsSelect .item.mais-popular .item-content h3 small{font-size:17.92px!important}
body.trevo-reference .reference-buy{min-height:60px;padding:5px 15px!important;border-radius:10px!important}
body.trevo-reference .reference-buy-label{gap:8px}
body.trevo-reference .reference-buy-label>i{font-size:22.4px}
body.trevo-reference .reference-buy-label strong{margin-bottom:4px;font-size:18.4px;line-height:1}
body.trevo-reference .reference-buy-label small{font-size:10.4px;line-height:1.1}
body.trevo-reference .reference-unit{font-size:10.4px;font-weight:700;opacity:.75}
body.trevo-reference .reference-buy #total{font-size:13.6px!important;font-weight:700}

/* Foto no formato da referência: enquadrada a partir do centro, sem sobras nas laterais. */
body.trevo-reference .campanha-header .SorteioTpl_imagemContainer__2-pl4{overflow:hidden}
body.trevo-reference .campanha-header .SorteioTpl_imagem__2GXxI{object-fit:cover!important;object-position:50% 50%}
/* Faixa do topo: a cor é calculada pela rolagem, em campaign-reference.js. */
body.trevo-reference .header-app-header{transition:background-color .5s ease-in-out}

/* Teclado de baixo, ligado por campanha. */
.rf-keypad{display:none;position:fixed;bottom:0;left:50%;z-index:1020;box-sizing:border-box;width:100%;max-width:600px;padding:10px 15px;background:#e4e4e4;box-shadow:0 -5px 15px rgba(0,0,0,.1);transform:translateX(-50%);font-family:Montserrat,Arial,sans-serif}
.rf-keypad.is-visible{display:block;animation:rf-keypad-up .35s ease-out both}
.rf-keypad.is-leaving{display:block;pointer-events:none;animation:rf-keypad-down .35s ease-in both}
@keyframes rf-keypad-up{from{transform:translate(-50%,100%)}to{transform:translate(-50%,0)}}
@keyframes rf-keypad-down{from{transform:translate(-50%,0)}to{transform:translate(-50%,100%)}}
.rf-keypad-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px;padding-top:8px}
.rf-keypad-option{position:relative;height:38px;padding:0;border:0;border-radius:5px;background:#f4f4f4;color:#414141;font-size:15.2px;font-weight:600}
.rf-keypad-option.is-popular{background:#000;color:#fff}
.rf-keypad-option.is-popular::before{content:'POPULAR';position:absolute;top:-8px;left:50%;padding:0 8px;border-radius:12px;background:#198754;color:#fff;font-size:8px;font-weight:700;line-height:14px;transform:translateX(-50%)}
.rf-keypad-buy{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:60px;padding:5px 15px;border:0;border-radius:10px;background:#198754;color:#fff;box-shadow:0 4px 15px rgba(0,0,0,.2);text-align:left}
.rf-keypad-buy .reference-buy-label{display:flex;align-items:center;gap:8px;min-width:0}
.rf-keypad-buy .reference-buy-label>i{font-size:22.4px}
.rf-keypad-buy .reference-buy-label strong{display:block;margin-bottom:4px;font-size:18.4px;font-weight:600;line-height:1;text-transform:uppercase;white-space:nowrap}
.rf-keypad-buy .reference-buy-label small{display:block;font-size:10.4px;font-weight:600;line-height:1.1;opacity:.75}
.rf-keypad-price{flex:none;text-align:right;line-height:1.35}
.rf-keypad-price small{display:block;font-size:10.4px;font-weight:700;opacity:.75}
.rf-keypad-price b{display:block;font-size:13.6px;font-weight:700}
/* Espaço fixo no fim da página para o teclado: a altura da página não muda quando ele aparece ou some,
   senão o celular puxa a tela de volta ao subir a partir do fim. */
body.rf-keypad-ready{padding-bottom:180px}
body.rf-keypad-on .sorteio_sorteioShare__247_t{bottom:185px!important}
/* Com 3 botões o teclado tem uma linha só e fica mais baixo. */
body.rf-keypad-ready.rf-keypad-short{padding-bottom:135px}
body.rf-keypad-short.rf-keypad-on .sorteio_sorteioShare__247_t{bottom:140px!important}
@media(prefers-reduced-motion:reduce){.rf-keypad.is-visible,.rf-keypad.is-leaving{animation:none}.rf-keypad{transform:translateX(-50%)}}

/* Rodapé da foto igual à referência: letras da arte legíveis, sem desfoque. */
body.trevo-reference .campanha-header .SorteioTpl_info__t1BZr{bottom:48px!important}
body.trevo-reference .campanha-header .custom-badge-display .badge{padding:3.5px 6.5px!important;font-size:10.08px!important;line-height:1.3}
body.trevo-reference .reference-campaign-registration{padding:0;border-radius:0;background:transparent;font-size:10.8px;font-weight:900}
body.trevo-reference .campanha-header .SorteioTpl_descricao__1b7iL{color:#fff!important;opacity:1!important}

/* Conferido com a referência: foto clara, etiqueta do registro e ícones. */
body.trevo-reference .campanha-header .SorteioTpl_imagemContainer__2-pl4::after{background:linear-gradient(transparent,rgba(0,0,0,.85)) bottom/100% 60px no-repeat}
body.trevo-reference .reference-campaign-registration{padding:3.5px 6.5px;border-radius:10px;background:#212529;line-height:1.2}
body.trevo-reference .campanha-header .SorteioTpl_descricao__1b7iL{opacity:.7!important}
body.trevo-reference .campanha-preco .tag{box-shadow:0 4px 14px rgba(0,0,0,.134)!important}
body.trevo-reference .header-app-header .container>div>button{font-size:34.2px!important}
body.trevo-reference .header-app-header .reference-header-titles{font-size:11.2px!important;color:#fdffa9!important}
body.trevo-reference .header-app-header .reference-header-titles span{color:#fdffa9!important}
body.trevo-reference .header-app-header .reference-header-titles i{font-size:16px}
body.trevo-reference .reference-reset{display:flex;align-items:center;padding:0 5px;font-size:24.4px;line-height:1}
body.trevo-reference .reference-quantity .addNumero i{font-size:33.06px}
body.trevo-reference .reference-quantity .right{right:4px}

/* Enquanto o layout novo é montado, as partes que ele troca ficam invisíveis (sem piscar o modelo antigo).
   Se o script não rodar, elas aparecem sozinhas depois de 3 segundos. */
body.trevo-reference:not(.reference-ready) :is(.header-app-header a.text-right,.campanha-header [data-bs-target="#modal-consultaCompras"],.campanha-header .custom-badge-display,.app-vendas-express,.sorteio_sorteioDesc__TBYaL){visibility:hidden;animation:reference-reveal 0s linear 3s forwards}
@keyframes reference-reveal{to{visibility:visible}}

/* Barra de progresso nas cores do site: fina, fundo preto e verde com um raio de luz passando (como o botão). */
body.trevo-reference .campanha-buscas:has(.rf-progress){margin-top:4px!important}
.rf-progress{position:relative;height:16px;margin:0;border-radius:8px;background:#1d1d1f;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.35)}
.rf-progress-fill{position:absolute;top:0;left:0;bottom:0;border-radius:8px;background:linear-gradient(90deg,#157347 0%,#198754 50%,#2ecc71 100%);overflow:hidden;transition:width .6s ease}
.rf-progress-fill::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:30%;background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.45) 50%,rgba(255,255,255,0) 100%);animation:rf-progress-shine 3s ease-in-out infinite}
.rf-progress-label{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:16px;color:#fff;font:700 10.5px/1 Montserrat,Arial,sans-serif;letter-spacing:.3px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
@keyframes rf-progress-shine{0%{left:-40%}60%,100%{left:110%}}
@media(prefers-reduced-motion:reduce){.rf-progress-fill::after{animation:none;display:none}}

/* Oferta relâmpago: card verde ou vermelho com a contagem e o botão na mesma cor. */
.rf-flash{position:relative;margin:0 0 10px;padding:7px 9px 9px;border-radius:12px;color:#fff;text-align:center;font-family:Montserrat,Arial,sans-serif;overflow:hidden;background:linear-gradient(135deg,#198754 0%,#0f5132 100%);animation:rf-flash-pulse 2s ease-in-out infinite}
.rf-flash--red{background:linear-gradient(135deg,#dc3545 0%,#842029 100%);animation-name:rf-flash-pulse-red}
.rf-flash-line{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:0 6px;margin:0 0 2px;font-size:15px;line-height:1.25;color:#fff}
.rf-flash-line strong{font-size:22px;font-weight:800}
.rf-flash-line s{font-size:12px;opacity:.7}
.rf-flash-unit{margin:0 0 6px;font-size:11.5px;opacity:.9;color:#fff}
.rf-flash-unit strong{font-weight:800}
.rf-flash-timer{position:relative;height:25px;border-radius:6px;background:rgba(0,0,0,.25);overflow:hidden}
.rf-flash-push{position:absolute;top:0;bottom:0;left:0;overflow:hidden;transition:width 1s linear}
.rf-flash-fill{position:absolute;top:0;right:0;bottom:0;background:rgba(255,255,255,.28);transition:width 1s linear}
.rf-flash-timer span{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:5px;height:25px;font-size:13px;font-weight:500;color:#fff}
.rf-flash-timer b{font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.rf-flash-buy{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:38px;margin-top:7px;border:1px solid rgba(255,255,255,.35);border-radius:9px;background:linear-gradient(90deg,#1e9e5a 0%,#22b366 50%,#4ade80 100%);color:#fff;font:800 14px Montserrat,Arial,sans-serif;letter-spacing:.04em;overflow:hidden;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.3)}
.rf-flash--red .rf-flash-buy{background:linear-gradient(90deg,#c82333 0%,#e03444 50%,#ff6b6b 100%)}
.rf-flash-buy::after{content:"";position:absolute;top:-50%;left:-60%;width:20%;height:200%;background:rgba(255,255,255,.22);transform:rotate(30deg);pointer-events:none;animation:reference-buy-shimmer 5s infinite}
@keyframes rf-flash-pulse{0%,100%{box-shadow:0 6px 14px rgba(25,135,84,.3)}50%{box-shadow:0 6px 22px rgba(25,135,84,.65)}}
@keyframes rf-flash-pulse-red{0%,100%{box-shadow:0 6px 14px rgba(220,53,69,.3)}50%{box-shadow:0 6px 22px rgba(220,53,69,.65)}}
@media(prefers-reduced-motion:reduce){.rf-flash{animation:none}.rf-flash-buy::after{animation:none;display:none}}

/* Banner "Sua cota pode valer" com contagem regressiva */
.promo-banner{margin:0 0 12px;padding:12px 12px 10px;border-radius:11px;background:linear-gradient(135deg,#198754 0%,#0f5132 100%);color:#fff;text-align:center;font-family:Montserrat,Arial,sans-serif;box-shadow:0 4px 7.5px rgba(25,135,84,.3)}
.promo-banner-title{font-size:16px;font-weight:700;line-height:1.2;text-transform:uppercase;letter-spacing:.2px;margin:0 0 8px}
.promo-banner-bar{position:relative;height:28px;border-radius:5px;background:rgba(0,0,0,.22);overflow:hidden}
.promo-banner-fill{position:absolute;top:0;right:0;bottom:0;background:rgba(255,255,255,.28);transition:width 1s linear}
.promo-banner-time{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:5px;height:28px;font-size:14px;font-weight:500}
.promo-banner-time b{font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.promo-banner-text{font-size:13px;font-weight:500;margin:8px 0 0}
.promo-banner-valid{font-size:10px;opacity:.85;margin:3px 0 0}
.promo-banner{animation:promo-banner-pulse 2s ease-in-out infinite}
.promo-banner-push{position:absolute;top:0;bottom:0;left:0;overflow:hidden;pointer-events:none;transition:width 1s linear}
.promo-banner-push::after{content:"";position:absolute;top:0;bottom:0;left:-80px;width:80px;background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.35) 50%,rgba(255,255,255,0) 100%);animation:promo-banner-push 3s ease-in-out infinite}
@keyframes promo-banner-push{0%{left:-80px}60%,100%{left:100%}}
.promo-banner--red{background:linear-gradient(135deg,#dc3545 0%,#842029 100%);box-shadow:0 4px 7.5px rgba(220,53,69,.3);animation-name:promo-banner-pulse-red}
@keyframes promo-banner-pulse{0%,100%{box-shadow:0 4px 7.5px rgba(25,135,84,.3)}50%{box-shadow:0 4px 14px rgba(25,135,84,.65)}}
@keyframes promo-banner-pulse-red{0%,100%{box-shadow:0 4px 7.5px rgba(220,53,69,.3)}50%{box-shadow:0 4px 14px rgba(220,53,69,.65)}}
@media(prefers-reduced-motion:reduce){.promo-banner{animation:none}.promo-banner-push::after{animation:none;display:none}}
