/* Match the approved compact Settings screen. Cards are native details in the PHP markup. */
html body.hf-mobile-app[data-ui="v5"] .page-container:has([data-settings-native]){padding-top:32px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native]{margin:0!important;padding:0!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-grid{gap:12px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf4-settings-details{border-radius:20px!important;border:1px solid var(--hf4-line)!important;background:var(--hf4-paper)!important;overflow:clip}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf4-settings-details>summary{display:flex!important;align-items:center!important;gap:10px!important;padding:18px!important;min-height:92px!important;list-style:none!important;cursor:pointer}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] summary::-webkit-details-marker{display:none}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-card-heading{margin:0!important;padding:0!important;gap:13px!important;flex:1;min-width:0}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-card-heading h2,html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf8-settings-heading h2{font-size:15px!important;font-weight:700!important;margin:0!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-card-heading p,html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf8-settings-heading p{font-size:11px!important;line-height:1.5!important;margin:4px 0 0!important;max-width:none!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-card-heading>span{width:43px!important;height:45px!important;flex:0 0 43px!important;border-radius:15px!important;background:#e7eeff!important;color:#315eea!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] [data-settings-kind=payment] .hf-settings-card-heading>span{background:#dff3ec!important;color:#17876c!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf8-settings-heading{flex:1!important;gap:13px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf8-settings-heading>span{width:43px!important;height:45px!important;flex:0 0 43px!important;border-radius:15px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf4-disclosure-arrow{margin-left:auto!important;flex:0 0 14px!important;color:var(--hf4-sub);font-size:15px}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf4-settings-content{padding:0 18px 18px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-hero{padding:6px 0 18px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-hero h2{font-size:20px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-hero .hf-settings-kicker{display:none}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf-settings-hero-copy>p:last-child{font-size:11px!important}
html body.hf-mobile-app[data-ui="v5"] [data-settings-native] .hf6-payment-disclosure .hf5-payment-settings>header{display:none!important}
html body.hf-mobile-app[data-ui="v5"] .hf-header-action-btn-alerts[data-notification-state=active]{color:#217e64!important}
html body.hf-mobile-app[data-ui="v5"] .hf-header-action-btn-alerts:is([data-notification-state=inactive],[data-notification-state=blocked],[data-notification-state=unavailable]){color:#aa6b45!important}
html body.hf-mobile-app[data-ui="v5"] .hf-header-action-btn-alerts svg{fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;width:232px!important;padding:8px!important;background:var(--hf4-paper)!important;border:1px solid var(--hf4-line)!important;border-radius:18px!important;box-shadow:0 14px 38px #17325d20!important;right:0!important;top:48px!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf-header-action-btn{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:63px!important;height:auto!important;padding:10px 12px!important;border-radius:12px!important;background:transparent!important;text-align:left!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf-header-action-btn:hover{background:var(--hf4-soft)!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf-header-action-icon{width:35px!important;height:35px!important;flex:0 0 35px!important;display:grid!important;place-items:center!important;background:var(--hf4-soft)!important;border-radius:12px!important;color:#416bd4!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf-header-action-icon svg{width:21px!important;height:21px!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.hf-mobile-app[data-ui="v5"] .hf9-preference-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
html body.hf-mobile-app[data-ui="v5"] .hf9-preference-copy strong{font-size:12px;font-weight:650;color:var(--hf4-ink)}
html body.hf-mobile-app[data-ui="v5"] .hf9-preference-copy small{font-size:11px;font-weight:400;color:var(--hf4-sub)}
/* A focused notification sheet, with delivery state separate from the unread count. */
html body.hf-mobile-app #alertsModal{position:fixed!important;inset:0!important;z-index:1500!important;display:none!important;align-items:flex-end!important;justify-content:center!important;padding:0!important;background:#0c23475e!important;backdrop-filter:blur(4px);opacity:1!important;visibility:visible!important}
html body.hf-mobile-app #alertsModal.active{display:flex!important}
html body.hf-mobile-app #alertsModal .hf-modal-content{position:relative!important;width:min(100%,480px)!important;max-width:480px!important;min-width:0!important;max-height:86dvh!important;display:flex!important;flex-direction:column!important;background:var(--hf4-paper)!important;border:1px solid var(--hf4-line)!important;border-bottom:0!important;border-radius:26px 26px 0 0!important;padding:0!important;margin:0!important;overflow:hidden!important;transform:none!important;box-shadow:0 -10px 45px #091d4920!important}
html body.hf-mobile-app #alertsModal .hf9-sheet-handle{width:37px;height:4px;background:var(--hf4-line);border-radius:3px;display:block;margin:10px auto 0;flex-shrink:0}
html body.hf-mobile-app #alertsModal .hf-modal-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:17px 20px 18px!important;border:0!important;gap:12px!important;flex-shrink:0}
html body.hf-mobile-app #alertsModal .hf9-panel-kicker{font-size:9px;letter-spacing:1.5px;font-weight:650;color:var(--hf4-sub)}
html body.hf-mobile-app #alertsModal h3{font-size:24px!important;font-weight:750!important;letter-spacing:-.7px!important;margin:4px 0 0!important;color:var(--hf4-ink)!important}
html body.hf-mobile-app #alertsModal .hf-modal-close{width:38px!important;height:38px!important;min-width:38px!important;border:0!important;border-radius:50%!important;background:var(--hf4-bg)!important;color:var(--hf4-sub)!important;padding:9px!important;display:grid!important;place-items:center!important}
html body.hf-mobile-app #alertsModal svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.hf-mobile-app #alertsModal .hf9-delivery-status{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;padding:13px;margin:0 18px 16px;background:var(--hf4-soft);border-radius:15px;flex-shrink:0}
html body.hf-mobile-app #alertsModal .hf9-delivery-status>[data-push-state-icon]{color:#b07b4c;display:grid;place-items:center}
html body.hf-mobile-app #alertsModal .hf9-delivery-status[data-state=active]>[data-push-state-icon]{color:#21846b}
html body.hf-mobile-app #alertsModal [data-push-state-label]{font-size:11px;line-height:1.4;display:block;font-weight:650;color:var(--hf4-ink)}
html body.hf-mobile-app #alertsModal [data-push-state-detail]{font-size:10px;line-height:1.4;display:block;margin-top:3px;color:var(--hf4-sub)}
html body.hf-mobile-app #alertsModal .hf9-delivery-status>a{font-size:10px;min-height:40px;display:flex;align-items:center;gap:4px;color:var(--hf4-blue);font-weight:650}
html body.hf-mobile-app #alertsModal .hf-modal-body{padding:0 18px calc(22px + env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;overscroll-behavior:contain;min-height:0!important}
html body.hf-mobile-app #alertsModal .hf9-alert-group{padding:0!important;margin:0 0 20px!important;border:0!important;background:transparent!important}
html body.hf-mobile-app #alertsModal .hf9-alert-group>header{display:flex;align-items:center;justify-content:space-between;margin:2px 0 10px}
html body.hf-mobile-app #alertsModal h4{font-size:12px;font-weight:650;margin:0;color:var(--hf4-sub)}
html body.hf-mobile-app #alertsModal .hf9-alert-group>header>span{font-size:10px;color:var(--hf4-sub);background:var(--hf4-bg);padding:3px 7px;border-radius:7px}
html body.hf-mobile-app #alertsModal .alerts-list{display:grid!important;gap:8px!important}
html body.hf-mobile-app #alertsModal .hf9-alert-item{display:flex;gap:11px;padding:14px 12px;border:1px solid var(--hf4-line);border-radius:15px;background:var(--hf4-paper)}
html body.hf-mobile-app #alertsModal .hf9-alert-item.is-unread{background:var(--hf4-bg)}
html body.hf-mobile-app #alertsModal .hf9-alert-symbol{width:34px;height:36px;flex:0 0 34px;display:grid;place-items:center;border-radius:12px;background:var(--hf4-soft);color:#5276cd}
html body.hf-mobile-app #alertsModal .hf9-alert-item>div{min-width:0}
html body.hf-mobile-app #alertsModal .hf9-alert-item strong{display:block;font-size:12px;line-height:1.45;font-weight:650;color:var(--hf4-ink);overflow-wrap:anywhere}
html body.hf-mobile-app #alertsModal .hf9-alert-item p{font-size:11px;line-height:1.55;color:var(--hf4-sub);margin:5px 0 8px;overflow-wrap:anywhere}
html body.hf-mobile-app #alertsModal .hf9-alert-item time{font-size:10px;color:var(--hf4-sub)}
html body.hf-mobile-app #alertsModal .hf9-alert-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 18px;border:1px dashed var(--hf4-line);border-radius:18px}
html body.hf-mobile-app #alertsModal .hf9-alert-empty>span{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#e0f3e9;color:#26805f;margin-bottom:12px}
html body.hf-mobile-app #alertsModal .hf9-alert-empty strong{font-size:14px;font-weight:650;color:var(--hf4-ink)}
html body.hf-mobile-app #alertsModal .hf9-alert-empty p{font-size:12px;line-height:1.5;margin:7px 0 0;color:var(--hf4-sub)}
html body.hf-mobile-app #alertsModal .hf9-upcoming-row{display:flex;gap:11px;align-items:center;padding:12px;border:1px solid var(--hf4-line);border-radius:14px;color:var(--hf4-ink);margin-top:8px}
html body.hf-mobile-app #alertsModal .hf9-upcoming-row strong{font-size:12px;font-weight:650;flex:1}
html body.hf-mobile-app #alertsModal .hf9-upcoming-row small{font-size:10px;display:block;font-weight:400;color:var(--hf4-sub);margin-top:4px}
html body.hf-mobile-app #alertsModal .hf9-upcoming-row>b{font-weight:400;color:var(--hf4-sub)}
html body.hf-mobile-app #alertsModal .hf9-app-notice{font-size:11px!important;line-height:1.5!important;padding:12px;background:var(--hf4-bg);border-radius:12px;margin:7px 0}
html body.hf-mobile-app.hf9-alerts-open{overflow:hidden!important}
@media(min-width:700px){html body.hf-mobile-app #alertsModal{padding-bottom:16px!important}html body.hf-mobile-app #alertsModal .hf-modal-content{border-radius:26px!important;border-bottom:1px solid var(--hf4-line)!important}}
@media(prefers-reduced-motion:reduce){html body.hf-mobile-app #alertsModal *{transition:none!important;animation:none!important}}

html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf-header-action-btn{max-width:none!important;min-width:100%!important;flex-basis:auto!important;flex-direction:row!important;justify-content:flex-start!important;grid-column:1/-1!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf9-preference-copy{flex:1 1 auto!important;width:auto!important;max-width:none!important;align-items:flex-start!important;text-align:left!important}
html body.hf-mobile-app[data-ui="v5"] .hf4-preference-options .hf9-preference-copy :is(strong,small){display:block!important;width:auto!important;max-width:none!important;white-space:nowrap!important;line-height:1.35!important;word-break:normal!important;overflow:visible!important}
html body.hf-mobile-app #alertsModal .hf9-alert-item p{font-size:12px!important;line-height:1.55!important}
html body.hf-mobile-app #alertsModal .hf9-alert-item time{font-size:10px!important}

/* A single scroll surface prevents list clipping on short phone viewports. */
html body.hf-mobile-app #alertsModal .hf-modal-content{display:block!important;overflow-y:auto!important;overscroll-behavior:contain;max-height:calc(100dvh - 24px)!important;scroll-padding-top:12px}
html body.hf-mobile-app #alertsModal .hf-modal-body{display:block!important;overflow:visible!important;max-height:none!important}
html body.hf-mobile-app #alertsModal .hf-modal-header{margin:0!important}
html body.hf-mobile-app #alertsModal .hf9-alert-group>header{position:static!important;transform:none!important;min-height:0!important}
html body.hf-mobile-app #alertsModal .hf9-delivery-status{grid-template-columns:28px minmax(0,1fr)!important}
html body.hf-mobile-app #alertsModal .hf9-delivery-status>a{grid-column:2;justify-self:start;min-height:40px;padding:0 12px;background:var(--hf4-paper);border-radius:10px;font-size:12px}
html body.hf-mobile-app [data-settings-native] #notificacoes{scroll-margin-top:90px}
html body.hf-mobile-app [data-settings-native] #notificacoes .hf-settings-form{display:flex!important;flex-direction:column!important;gap:16px!important}
html body.hf-mobile-app [data-settings-native] #notificacoes :is(input[type=time],select){width:100%!important;box-sizing:border-box;min-width:0}
html body.hf-mobile-app [data-settings-native] #notificacoes fieldset{min-width:0}
html body.hf-mobile-app [data-settings-native] #notificacoes .hf8-reminder-days{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
