/* Shared own-app banner and dismissible timed dialog. */
.app-promo{--promo-ink:#14233f;--promo-dark:#14274a;--promo-mint:#b9f4cf;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--promo-ink)}
.app-promo *{box-sizing:border-box}.app-promo [hidden]{display:none!important}
.app-promo button,.app-promo a{-webkit-tap-highlight-color:transparent;font-family:inherit}
.app-promo button{cursor:pointer}.app-promo a{text-decoration:none}
.app-promo :focus-visible{outline:3px solid #54c5ff;outline-offset:4px}
.has-app-promo{padding-bottom:var(--app-promo-clearance,112px)!important}html:has(.has-app-promo){scroll-padding-bottom:var(--app-promo-clearance,112px)}
.app-promo-banner{position:fixed;z-index:1000;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 32px));display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 22px 16px 16px;border:1px solid #ffffff35;border-radius:22px;background:linear-gradient(115deg,#14274a,#244577);box-shadow:0 14px 45px #10213f55,0 3px 12px #10213f30;color:#fff}
.app-promo-banner-icon{width:52px;height:52px;border:1px solid #ffffff55;border-radius:14px;object-fit:cover;box-shadow:0 4px 12px #0003}
.app-promo-summary{min-width:0;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;border:0;background:transparent;color:#fff;padding:0}
.app-promo-eyebrow{font-size:10px;line-height:1.3;font-weight:800;letter-spacing:.12em;color:var(--promo-mint)}
.app-promo-summary strong{display:block;max-width:100%;font-size:17px;line-height:1.3;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-promo-banner-benefit{display:block;max-width:100%;font-size:12px;line-height:1.45;color:#e2eafa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-promo-banner-cta{display:flex;align-items:center;justify-content:center;gap:15px;min-height:52px;padding:10px 18px;background:linear-gradient(125deg,#cffbdf,#a4e9be);color:#102e27!important;border-radius:13px;border:1px solid #e1ffe9;font-size:15px;font-weight:850;line-height:1.1;box-shadow:0 3px 10px #0002}
.app-promo-banner-cta small{display:block;margin-top:4px;color:#23533e;font-size:10px;font-weight:750;letter-spacing:.025em}
.app-promo-banner-cta:hover{background:#e0ffea;transform:translateY(-1px)}
.app-promo-banner-close{position:absolute;top:-10px;right:-7px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #d2ddea;border-radius:50%;background:#fff;color:#34445f;box-shadow:0 2px 8px #18294625}
.app-promo-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 36px);padding:30px 28px 18px;margin:auto;border:1px solid #dde8f3;border-radius:28px;background:radial-gradient(ellipse at top right,#d9f5e6 0,transparent 53%),linear-gradient(150deg,#f0f5ff,#fff 70%);color:var(--promo-ink);box-shadow:0 30px 90px #10213f55;overflow:auto;overscroll-behavior:contain}
.app-promo-dialog::backdrop{background:#14233f55;backdrop-filter:blur(3px)}
.app-promo-dialog-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;border:1px solid #d9e3ef;border-radius:50%;background:#ffffffb8;color:#34445f;padding:0}
.app-promo-close-countdown{position:absolute;top:12px;right:12px;display:flex;align-items:center;min-height:36px;padding:0 11px;border:1px solid #d9e3ef;border-radius:18px;background:#fff;color:#52617a;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.app-promo-dialog-intro{text-align:center;padding:0 12px}
.app-promo-dialog-intro img{display:block;width:76px;height:76px;margin:0 auto 18px;border:1px solid #ffffffc9;border-radius:21px;object-fit:cover;box-shadow:0 9px 26px #172a4930}
.app-promo-dialog .app-promo-eyebrow{display:block;color:#386754;margin-bottom:7px;font-size:10px}
.app-promo-dialog h2{font:850 28px/1.14 Inter,system-ui,-apple-system,sans-serif;letter-spacing:-.035em;margin:0 0 10px;color:#14233f}
.app-promo-dialog h2:focus{outline:none}
.app-promo-dialog-intro p{font-size:15px;line-height:1.55;margin:0 0 21px;color:#52617a}
.app-promo-dialog-actions{display:grid;gap:10px}
.app-promo-store-link{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:62px;padding:13px 18px;border:1px solid #14274a;border-radius:15px;background:linear-gradient(120deg,#14274a,#244577);color:#fff!important;font-size:16px;line-height:1.3;font-weight:800;text-align:left;box-shadow:0 5px 16px #14274a24}
.app-promo-store-link small{display:block;font-size:10px;line-height:1.3;font-weight:600;color:#d5e6ff;margin-bottom:3px}
.app-promo-store-link:hover{background:#254879}
.app-promo-store-alternate{background:#fff;color:#243b5e!important;border-color:#c9d5e5;box-shadow:none}
.app-promo-store-alternate small{color:#64738a}.app-promo-store-alternate:hover{background:#f0f5ff}
.app-promo-note{margin:13px 0 9px;text-align:center;font-size:10px;line-height:1.45;color:#67758b}
.app-promo-later{display:block;width:100%;min-height:44px;padding:8px;border:0;background:transparent;color:#52617a;font-size:13px;font-weight:650;border-radius:10px}.app-promo-later:hover:not(:disabled){background:#e7edf6}.app-promo-later:disabled{cursor:default;color:#748097}
@media(max-width:600px){
 .has-app-promo{padding-bottom:var(--app-promo-clearance,108px)!important}
 .app-promo-banner{width:calc(100% - 24px);bottom:max(12px,env(safe-area-inset-bottom));gap:10px;grid-template-columns:44px minmax(0,1fr) auto;padding:13px 12px;border-radius:19px}
 .app-promo-banner-icon{width:44px;height:44px;border-radius:12px}
 .app-promo-summary strong{font-size:13px;line-height:1.3}.app-promo-eyebrow{font-size:8px;letter-spacing:.065em}
 .app-promo-banner-benefit{display:none}.app-promo-banner-cta{min-height:48px;gap:8px;padding:9px 12px;font-size:13px;border-radius:12px}.app-promo-banner-cta svg{width:16px;height:16px}.app-promo-banner-cta small{font-size:9px;margin-top:4px}
 .app-promo-dialog{padding:27px 22px 14px;border-radius:24px;width:calc(100% - 28px)}
 .app-promo-dialog-intro{padding:0 5px}.app-promo-dialog-intro img{width:62px;height:62px;margin-bottom:14px;border-radius:17px}
 .app-promo-dialog h2{font-size:26px}.app-promo-dialog-intro p{font-size:14px;line-height:1.45;margin-bottom:18px}.app-promo-store-link{min-height:58px;padding:11px 15px;font-size:15px}
}
@media(max-height:560px){.app-promo-dialog{padding-top:18px}.app-promo-dialog-intro img{width:44px;height:44px;margin-bottom:9px;border-radius:12px}.app-promo-dialog h2{font-size:22px}.app-promo-dialog-intro p{margin-bottom:12px}.app-promo-note{margin:8px 0 2px}}
@media(prefers-reduced-motion:no-preference){.app-promo-banner{animation:app-promo-slide .3s ease-out}.app-promo-dialog[open]{animation:app-promo-appear .2s ease-out}@keyframes app-promo-slide{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}@keyframes app-promo-appear{from{opacity:0;scale:.97}to{opacity:1;scale:1}}}
@media print{.app-promo,.app-promo-dialog{display:none!important}.app-promo-dialog::backdrop{display:none!important;background:none;backdrop-filter:none}.has-app-promo{padding-bottom:0!important}html:has(.has-app-promo){scroll-padding-bottom:0}}
/* v3: lista dos demais apps no diálogo; no celular o diálogo abre como folha na parte de baixo da tela */
.app-promo-more{margin:18px 0 0;padding-top:14px;border-top:1px solid #d6e0ee}
.app-promo-more h3{margin:0 0 10px;font:800 11px/1.3 Inter,system-ui,-apple-system,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#386754}
.app-promo-more ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.app-promo-app{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid #dbe5f1;border-radius:16px;background:#ffffffcc}
.app-promo-app img{width:44px;height:44px;border-radius:11px;object-fit:cover;border:1px solid #e3eaf3}
.app-promo-app strong{display:block;font-size:14px;line-height:1.3;color:#14233f}
.app-promo-app small{display:block;margin-top:2px;font-size:12px;line-height:1.35;color:#52617a}
.app-promo-mini{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:96px;min-height:46px;padding:8px 12px;border-radius:12px;background:linear-gradient(120deg,#14274a,#244577);color:#fff!important;font-size:13px;font-weight:800;line-height:1.15;text-align:center}
.app-promo-mini small{display:block;margin:2px 0 0;font-size:9px;font-weight:600;color:#d5e6ff}
.app-promo-mini:hover{background:#254879}
@media(max-width:600px){
 .app-promo-dialog{margin:auto auto 0;width:100%;max-width:none;max-height:88dvh;border-radius:26px 26px 0 0;padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .app-promo-app{grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:9px}
 .app-promo-app img{width:40px;height:40px}
 .app-promo-mini{min-width:86px}
}
/* Em aparelho de toque a outra loja não serve: fica só a loja do aparelho */
@media(hover:none) and (pointer:coarse){.app-promo-store-alternate{display:none}}
