/* Hidden until a supported iPhone browser is confirmed. */
[data-app-promotion][hidden], [data-app-promotion-banner][hidden],
[data-sumavo-native] [data-app-promotion] { display:none !important; }
body.app-promotion-visible {
    --sumavo-shell-top:calc(var(--sumavo-safe-top) + var(--sumavo-header-gap) + var(--sumavo-promotion-height, 0px));
}
.app-promotion-banner {
    position:fixed; top:var(--sumavo-safe-top); left:0; right:0; z-index:1040;
    display:flex; align-items:center; gap:10px; padding:10px max(12px, var(--sumavo-safe-right)) 10px max(4px, var(--sumavo-safe-left));
    background:#fff; color:#171717; border-bottom:1px solid #dedede;
    box-shadow:0 3px 12px rgb(0 0 0 / 5%); font-size:13px; line-height:1.3;
}
.app-promotion-banner img { flex:none; width:40px; border-radius:10px; }
.app-promotion-copy { flex:1; min-width:0; }
.app-promotion-copy strong, .app-promotion-copy span { display:block; }
.app-promotion-copy strong { font-size:15px; }
.app-promotion-copy span { margin-top:3px; color:#555; }
.app-promotion-close { border:0; background:transparent; color:#555; font-size:26px; min-width:44px; min-height:44px; padding:0; }
.app-promotion-open {
    display:inline-flex; align-items:center; justify-content:center; min-height:44px;
    padding:10px 14px; border-radius:24px; background:#171717; color:#fff !important;
    text-decoration:none; text-align:center; font-weight:600; flex-shrink:0;
}
.app-promotion-dialog {
    position:fixed; inset:0; margin:auto; box-sizing:border-box; width:calc(100% - 32px); max-width:360px;
    max-height:calc(100dvh - var(--sumavo-safe-top) - var(--sumavo-safe-bottom) - 32px);
    overflow:auto; padding:28px 24px 16px; border:0; border-radius:28px;
    background:#fff; color:#171717; text-align:center; box-shadow:0 20px 70px rgb(0 0 0 / 20%);
}
.app-promotion-dialog::backdrop { background:rgb(0 0 0 / 40%); }
.app-promotion-dialog img { width:64px; border-radius:16px; margin-bottom:18px; }
.app-promotion-dialog h2 { font-size:24px; line-height:1.2; color:inherit; margin:0 0 12px; }
.app-promotion-dialog p { font-size:16px; line-height:1.5; color:#555; margin:0 0 24px; }
.app-promotion-dialog .app-promotion-open { display:flex; }
.app-promotion-dialog button { display:block; width:100%; min-height:48px; margin-top:8px; border:0; background:transparent; color:#767676; font-size:12px; font-weight:400; }
[data-app-promotion] :is(a, button):focus-visible { outline:3px solid #0071e3; outline-offset:3px; }
[data-reward-dialog] [hidden], [data-reward-download][hidden] { display:none !important; }
[data-reward-dialog] .app-promotion-open + .app-promotion-open { margin-top:8px; }
[data-reward-dialog] :is(a, button):focus-visible { outline:3px solid #0071e3; outline-offset:3px; }
