/* POL.FAN / M5 BAZAR — homepage filters and promoted-section correction 2026-11-28.
 * No changes to AJAX endpoints, forms, transaction actions, photos or PWA navigation. */
/* Avoid a giant empty promoted card on any viewport, including AJAX-refresh results. */
@supports selector(section:has(> .m5b-featured-grid > .m5b-empty)) {
 #m5b-root [data-m5b-home-content] > section.m5b-panel:has(> .m5b-featured-grid > .m5b-empty){display:none!important}
}
@media (max-width: 760px) {
 html body #m5b-root.m5hero-neon{box-sizing:border-box!important;width:calc(100% - 24px)!important;max-width:100%!important;min-width:0!important;margin:10px auto 28px!important;overflow-x:clip}
 html body #m5b-root.m5hero-neon .m5b-hero:not(.m5hero-artwork-failed-v3){border-radius:14px!important}
 html body #m5b-root.m5hero-neon .m5b-main-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-panel{margin-bottom:12px!important;border-radius:14px!important;padding:13px!important;min-width:0!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-head{margin-bottom:10px!important;gap:7px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-head h2{font-size:19px!important;line-height:1.3!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-head p{font-size:12px!important;line-height:1.35!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] form.m5b-search{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:end!important;margin:0 0 12px!important;padding:0!important;min-width:0!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] form.m5b-search > label{min-width:0!important;margin:0!important;padding:0!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] form.m5b-search > label:first-child{grid-column:1/-1!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] form.m5b-search input[name=q],html body #m5b-root.m5hero-neon [data-m5b-home-content] form.m5b-search > label select{box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:44px!important;padding:8px 10px!important;font-size:13px!important;border-radius:10px!important;color:#30215a!important;background:#fff!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] form.m5b-search > button.m5b-btn{grid-column:1/-1!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;min-height:44px!important;margin:0!important;padding:9px!important;border-radius:11px!important;background:linear-gradient(110deg,#bf28ec,#6b34db)!important;border:0!important;font-size:14px!important;box-shadow:none!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-location-filter-row{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;padding:10px!important;margin:0!important;border-radius:11px!important;background:#f8f5fe!important;border-color:#e7d8f8!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-location-filter-row > label{min-width:0!important;font-size:12px!important;gap:5px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-location-filter-row select{box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:44px!important;height:44px!important;padding:8px 8px!important;font-size:12px!important;color:#30215a!important;border-radius:9px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-radius-options{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-radius-options .m5b-radius-check{display:flex!important;flex:1 1 175px!important;min-width:0!important;align-items:center!important;gap:7px!important;font-size:12px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-radius-options .m5b-radius-check input{flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important;accent-color:#7f36e4!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-radius-options > label:last-child{flex:0 0 90px!important;margin:0!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-search-note{grid-column:1/-1!important;margin:0!important;font-size:11px!important;line-height:1.4!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] a.m5b-category{min-width:0!important;min-height:68px!important;padding:8px 5px!important;gap:5px!important;border-radius:11px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-category-icon{width:28px!important;height:28px!important;font-size:17px!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-category-name{font-size:11px!important;line-height:1.2!important;overflow-wrap:anywhere!important}
 html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-empty{padding:15px 9px!important;font-size:13px!important;line-height:1.5!important}
}
@media (max-width:350px){html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-location-filter-row{grid-template-columns:1fr!important}html body #m5b-root.m5hero-neon [data-m5b-home-content] .m5b-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* The artwork already prints the 'Wystaw ofertę' control. Keep the real link as a
 * transparent, large click target instead of a second oversized visible button. */
@media (max-width:760px){
 html body #m5b-root.m5hero-neon .m5b-hero:not(.m5hero-artwork-failed-v3) > a.m5hero-image-cta{display:block!important;position:absolute!important;z-index:10!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:24%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;opacity:1!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:transparent!important;font-size:0!important;line-height:0!important;overflow:hidden!important;text-decoration:none!important}
 html body #m5b-root.m5hero-neon .m5b-hero:not(.m5hero-artwork-failed-v3) > a.m5hero-image-cta:focus-visible{outline:2px solid #fff!important;outline-offset:-3px!important;box-shadow:inset 0 0 0 3px #8f34e3!important}
 html body #m5b-root.m5hero-neon .m5b-hero.m5hero-artwork-failed-v3 > a.m5hero-image-cta{opacity:1!important;position:relative!important;width:auto!important;min-height:42px!important;color:#fff!important;font-size:13px!important;background:#8337da!important;padding:10px 14px!important}
}
