/* Only the actual mobile mode is changed. Desktop and explicit desktop preview stay intact. */
#no54MobileSections[hidden],#no54MobileSections a[hidden]{display:none!important}
body.no54-mobile-sections:not(.zago37-desktop-preview) #no54MobileSections{display:block;position:relative;margin:8px 0 0;padding:8px;min-width:0;max-width:100%;background:var(--panel);border:1px solid var(--line);border-radius:6px;color:var(--text)}
#no54MobileSections h2{margin:0 0 6px;text-align:center;font-size:13px;color:var(--accent);line-height:1.3}
#no54MobileSections .no54-section-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
#no54MobileSections a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:4px 5px;font-size:12px;line-height:1.2;font-weight:600;background:var(--tile);border:1px solid var(--line);color:var(--text);border-radius:4px;text-decoration:none;overflow-wrap:anywhere;min-width:0}
#no54MobileSections a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body.no54-mobile-sections:not(.zago37-desktop-preview) .masthead .mastactions{flex-wrap:wrap!important;min-width:0;justify-content:center!important}
body.no54-mobile-sections:not(.zago37-desktop-preview) .wrap > :is(.quickbar,#offerpanel){margin-top:12px;width:100%;min-width:0;max-width:100%}
body.no54-mobile-sections:not(.zago37-desktop-preview) .wrap > .quickbar{display:flex;flex-wrap:wrap;overflow:hidden;padding:8px}
body.no54-mobile-sections:not(.zago37-desktop-preview) .wrap > .quickbar #quick{min-width:0;max-width:100%}
body.no54-mobile-sections:not(.zago37-desktop-preview) :is(.layout .panel,.wrap > .quickbar,.wrap > #offerpanel,#zago26-old-tools){scroll-margin-top:8px}

#no54MobileSections a{gap:5px}
#no54MobileSections .no54-section-icon{color:var(--accent);flex:0 0 auto;font-size:15px;line-height:1}
/* Retain the approved offer-card container rules when the original panel moves below main. */
body.no54-mobile-sections .wrap > #offerpanel{container-type:inline-size}
body.no54-mobile-sections .wrap > #offerpanel #offers{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:6px!important}
body.no54-mobile-sections .wrap > #offerpanel #offers>a{display:flex!important;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:40px;white-space:normal!important;overflow-wrap:anywhere;padding:5px 3px!important;line-height:1.3}
body.no54-mobile-sections .wrap > #offerpanel #offers>.zago50-empty-category{grid-column:1/-1}
@container (max-width:720px){body.no54-mobile-sections .wrap > #offerpanel #offers{grid-template-columns:repeat(4,minmax(0,1fr))!important}body.no54-mobile-sections .wrap > #offerpanel #offers>a:nth-last-child(2):nth-child(4n+1),body.no54-mobile-sections .wrap > #offerpanel #offers>a:last-child:nth-child(4n+2){grid-column:span 2}}
@container (max-width:390px){body.no54-mobile-sections .wrap > #offerpanel #offers{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.no54-mobile-sections .wrap > #offerpanel #offers>a:nth-last-child(2):nth-child(4n+1),body.no54-mobile-sections .wrap > #offerpanel #offers>a:last-child:nth-child(4n+2){grid-column:auto}body.no54-mobile-sections .wrap > #offerpanel #offers>a:last-child:nth-child(odd){grid-column:1/-1}}
@container (max-width:175px){body.no54-mobile-sections .wrap > #offerpanel #offers{grid-template-columns:1fr!important}body.no54-mobile-sections .wrap > #offerpanel #offers>a{grid-column:auto!important}}
body.festive.no54-mobile-sections .wrap > :is(#offerpanel,.quickbar){border-color:#716a49!important}
body.light.festive.no54-mobile-sections .wrap > :is(#offerpanel,.quickbar){border-color:#b49d68!important}
body.no54-mobile-sections .wrap > .quickbar .quicktitle{display:none!important}
body.no54-mobile-sections .wrap > .quickbar #quick{flex:1 1 100%;width:100%;overflow-x:auto;min-height:32px;gap:3px!important}
