.odf-topup-strip {
    box-sizing: border-box;
    position: fixed;
    z-index: 22;
    right: 14px;
    bottom: calc(12px + max(var(--odf-topup-dock-height, 0px), env(safe-area-inset-bottom, 0px)));
    left: 14px;
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    padding: 10px 14px;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #eee9ef;
    border-radius: 13px;
    background: #fff;
    color: #291e2d;
    font: 500 14px/1.25 system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
}

html.odfans-mobile-nav-active .odf-topup-strip {
    bottom: calc(var(--odfans-mobile-nav-height) + var(--odf-topup-dock-height, 0px) + 12px);
}

.odf-topup-strip[hidden],
body:has(#editTabs[hidden]) > .odf-topup-strip,
body:has(#browse[hidden], #topupPanel.open, #topupPanel.closing, #animateTopup:not([hidden]), #editTopup:not([hidden])) > .odf-topup-strip,
html.catalog-generation-active .odf-topup-strip {
    display: none;
}

@media (min-width: 900px) {
    body:has(#desktopHome[hidden]) > .odf-topup-strip { display: none; }
}

.odf-topup-strip b { font-weight: 500; }
.odf-topup-strip b, .odf-topup-clock { font-variant-numeric: tabular-nums; }

.odf-topup-dialog {
    box-sizing: border-box;
    width: min(calc(100% - 28px), 360px);
    max-height: calc(100% - 28px);
    margin: auto;
    padding: 24px 16px 16px;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: #1e1523;
    text-align: center;
    font: 600 14px/1.35 system-ui, sans-serif;
    box-shadow: 0 16px 48px #0d08196b;
}

.odf-topup-dialog::backdrop { background: #110b18a8; }
.odf-topup-dialog h2 { margin: 12px 0 5px; font-size: 23px; letter-spacing: -.05em; line-height: 1.12; }
.odf-topup-dialog p { margin: 0; color: #645867; font-size: 12px; }
.odf-topup-dialog button { box-sizing: border-box; font: inherit; cursor: pointer; }
.odf-topup-dialog [hidden] { display: none !important; }
.odf-topup-brand { font-size: 15px; font-weight: 850; letter-spacing: -.055em; }
.odf-topup-figure { margin: 16px 0 14px; padding: 12px 10px 10px; }
.odf-topup-figure > strong { display: block; color: #281a2d; font-size: clamp(74px, 22vw, 94px); line-height: .95; letter-spacing: -.1em; }
.odf-topup-figure strong span { font-size: .63em; vertical-align: 12%; }
.odf-topup-timing { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e6e1e7; color: #645867; font-size: 12px; }
.odf-topup-timing b { color: #312137; font-size: 19px; }
.odf-topup-deadline { display: block; margin-top: 9px; color: #645867; }
.odf-topup-primary, .odf-topup-secondary { width: 100%; min-height: 46px; padding: 8px; border: 0; border-radius: 13px; }
.odf-topup-primary { background: #261a2b; color: #fff; }
.odf-topup-secondary { background: #fff; color: #58485e; }
.odf-topup-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #655a68; }
.odf-topup-close::before, .odf-topup-close::after { content: ""; grid-area: 1/1; width: 15px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.odf-topup-close::after { transform: rotate(-45deg); }
.odf-topup-confirm p, .odf-topup-ended p { margin: 8px 0 15px; }
.odf-topup-chooser { text-align: left; }
.odf-topup-chooser > p { padding-right: 44px; }
.odf-topup-options { display: grid; gap: 6px; margin-top: 13px; }
.odf-topup-options button { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 48px; padding: 7px 10px; border: 1px solid #eee5ee; border-radius: 10px; background: #fff; color: #211826; text-align: left; }
.odf-topup-options small { display: block; color: #655a68; font-size: 11px; }
.odf-topup-options b { color: #7a497d; font-size: 19px; }
