/* P11 V3: usuwa konflikt zagnieżdżonego gridu i minimalnych szerokości V2.
 * Tylko istniejące natywne widoki: index, product, category ID19, >=992px.
 * Brak overflow:hidden na stronie: elementy mają mieścić się w kontenerze.
 */
@media (min-width: 992px) {
 body:is(#index,#category,#product) #wrapper > .container {
   box-sizing: border-box;
   width: calc(100% - 32px) !important;
   max-width: 1510px !important;
   min-width: 0;
   padding-left: 0;
   padding-right: 0;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive {
   box-sizing: border-box;
   width: calc(100% - 32px);
   max-width: 1510px;
   min-width: 0;
   grid-template-columns: max-content minmax(0,1fr) max-content minmax(160px,240px);
 }
 /* Istnieje dokładnie jeden grid układający logo/adres/godziny/search. */
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header.p11-header-desktop,
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header > .cb4-inner,
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-top.p11-hours-active {
   display: contents !important;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-address {
   min-width: 0 !important;
   max-width: 100%;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-address strong {
   white-space: normal !important;
   overflow-wrap: break-word;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-phones {
   display: flex;
   flex-wrap: wrap !important;
   min-width: 0;
   gap: 6px 14px;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive .p11-header-native #search_widget,
 body:is(#index,#category,#product) #header .p11-header-responsive .p11-header-native #search_widget form {
   box-sizing: border-box;
   min-width: 0;
   max-width: 100%;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive .p11-header-native #search_widget input {
   box-sizing: border-box;
   flex: 1 1 0%;
   width: 0;
   min-width: 0;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-benefits {
   min-width: 0;
   grid-template-columns: minmax(0,230px) repeat(4,minmax(0,1fr)) minmax(0,1.2fr);
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-benefits > * {
   min-width: 0;
   box-sizing: border-box;
   overflow-wrap: break-word;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-directions {
   white-space: normal;
 }
 body#index .p11-home-grid {
   box-sizing: border-box;
   width: 100%;
   min-width: 0;
   grid-template-columns: minmax(0,270px) minmax(0,1fr);
 }
 body#index #content-wrapper,
 body#index #main,
 body#index #content,
 body#index .p11-home-main,
 body#index .p11-home-hook,
 body#index .featured-products,
 body#category #js-product-list-header,
 body#category #search_filters_wrapper,
 body#category #products {
   min-width: 0;
   max-width: 100%;
 }
 body#index .featured-products .products,
 body#category #js-product-list > .products {
   box-sizing: border-box;
   min-width: 0;
   max-width: 100%;
 }
 body#category #search_filters .facet:has(> .p11-p07-sort),
 body#category .p11-p07-sort,
 body#category #search_filters .facet.cb4-p07-capacity-row,
 body#category #search_filters .facet > .cb4-p07-sort-row {
   min-width: 0;
   flex-wrap: wrap !important;
   row-gap: 8px;
   max-width: 100%;
 }
}
/* Węższy desktop: zachowane rozmiary telefonów, wyszukiwarka w pełnym wierszu. */
@media (min-width: 992px) and (max-width: 1279px) {
 body:is(#index,#category,#product) #header .p11-header-responsive {
   grid-template-columns: max-content minmax(0,1fr) max-content;
   row-gap: 14px;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive .p11-header-native #search_widget {
   grid-column: 1 / -1 !important;
   grid-row: 2 !important;
   max-width: none !important;
   justify-self: stretch;
 }
 body:is(#index,#category,#product) #header .p11-header-responsive #p11-category-header .cb4-benefits {
   grid-column: 1 / -1;
   grid-row: 3;
   grid-template-columns: repeat(3,minmax(0,1fr));
   row-gap: 10px;
 }
}
