.wse,.wse-results-page{
  --wse-panel-bg:#f3f3f3;
  --wse-item-bg:#fff;
  --wse-subitem-bg:#f8f8f8;
  --wse-hover-bg:#eee;
  --wse-active-bg:#dedede;
  --wse-text:#2b2b2b;
  --wse-hover-text:#111;
  --wse-active-text:#111;
  --wse-border:#ddd;
  --wse-arrow:#6f6f6f;
  --wse-count-bg:#e1e1e1;
  --wse-count-text:#555;
  --wse-input-bg:#fff;
  --wse-button-bg:#2b2b2b;
  --wse-button-text:#fff;
  --wse-button-hover-bg:#444;
  --wse-hero-bg:#173f35;
  --wse-hero-text:#fff;
  --wse-hero-muted:#dbe9e4;
  --wse-hero-min-height:220px;
  --wse-radius:0px;
  --wse-control-gap:12px;
  --wse-result-gap:18px;
  --wse-font-size:15px;
  --wse-title-size:30px;
  --wse-product-title-size:17px;
  --wse-price-size:16px;
  box-sizing:border-box;
  color:var(--wse-text);
  font-size:var(--wse-font-size);
}
.wse *,.wse-results-page *{box-sizing:border-box}
.wse .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.wse{width:100%;overflow:hidden;background:var(--wse-panel-bg);border:1px solid var(--wse-border);border-radius:var(--wse-radius)}
.wse-title{margin:0 0 9px;color:var(--wse-text);font-size:var(--wse-title-size);font-weight:750;line-height:1.18}
.wse-intro{margin:0;color:var(--wse-count-text);font-size:inherit;line-height:1.55}
.wse-controls{padding:20px}
.wse-form{display:grid;gap:var(--wse-control-gap);align-items:end}
.wse-full .wse-form{grid-template-columns:minmax(185px,1.35fr) minmax(180px,1.15fr) minmax(130px,.78fr) minmax(105px,.62fr) minmax(165px,1fr) auto}
.wse-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0!important;padding:0;border:0;color:var(--wse-text);font-size:inherit;font-weight:600}
.wse-field>span,.wse-field-label{display:block;width:100%;margin:0!important;padding:0!important;line-height:1.25;font:inherit;font-weight:600;color:inherit}
.wse-field input,.wse-field select{width:100%;min-height:44px;margin:0!important;padding:8px 11px!important;background:var(--wse-input-bg)!important;border:1px solid var(--wse-border)!important;border-radius:var(--wse-radius)!important;color:var(--wse-text)!important;font:inherit!important;line-height:1.25!important;box-shadow:none!important}
.wse-field input:focus,.wse-field select:focus{border-color:var(--wse-arrow)!important;outline:2px solid rgba(111,111,111,.2)!important;outline-offset:0}
.wse-view-switch{display:grid;grid-template-columns:1fr 1fr;width:100%;min-height:44px;background:var(--wse-input-bg);border:1px solid var(--wse-border);border-radius:var(--wse-radius);overflow:hidden}
.wse-view-switch label{position:relative;display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;color:var(--wse-arrow)}
.wse-view-switch label+label{border-left:1px solid var(--wse-border)}
.wse-view-switch input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;opacity:0;pointer-events:none}
.wse-view-icon{display:flex;align-items:center;justify-content:center;width:100%;height:42px;transition:background-color .18s ease,color .18s ease}
.wse-view-icon svg{display:block;width:21px;height:21px;fill:currentColor}
.wse-view-switch input:checked+.wse-view-icon{background:var(--wse-active-bg);color:var(--wse-active-text)}
.wse-view-switch label:hover .wse-view-icon{background:var(--wse-hover-bg);color:var(--wse-hover-text)}
.wse-view-switch input:focus-visible+.wse-view-icon{outline:2px solid var(--wse-arrow);outline-offset:-2px}
.wse-submit-wrap{display:flex;align-items:flex-end}
.wse-submit,.wse-product-link,.wse-cart-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:1px solid var(--wse-button-bg)!important;border-radius:var(--wse-radius)!important;background:var(--wse-button-bg)!important;color:var(--wse-button-text)!important;text-decoration:none!important;font:inherit!important;font-weight:700!important;line-height:1.2!important;cursor:pointer;white-space:nowrap;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.wse-submit:hover,.wse-submit:focus,.wse-product-link:hover,.wse-product-link:focus,.wse-cart-button:hover,.wse-cart-button:focus{border-color:var(--wse-button-hover-bg)!important;background:var(--wse-button-hover-bg)!important;color:var(--wse-button-text)!important}
.wse-reset{display:inline-block;margin-top:12px;color:var(--wse-count-text)!important;text-decoration:underline;text-underline-offset:3px}

/* Pełna wersja z HERO. */
.wse-full{padding:0}
.wse-full .wse-hero{display:flex;align-items:center;min-height:var(--wse-hero-min-height);padding:38px 42px;background-color:var(--wse-hero-bg);background-position:center;background-size:cover;background-repeat:no-repeat}
.wse-full .wse-hero-inner{width:min(760px,100%)}
.wse-full .wse-hero .wse-title{color:var(--wse-hero-text)}
.wse-full .wse-hero .wse-intro{max-width:720px;color:var(--wse-hero-muted)}

/* Kompaktowy widget. */
.wse-widget{padding:18px}
.wse-widget .wse-title{margin-bottom:7px}
.wse-widget .wse-intro{margin-bottom:16px}
.wse-widget .wse-controls{padding:0}
.wse-widget .wse-form{grid-template-columns:1fr}
.wse-widget .wse-submit-wrap,.wse-widget .wse-submit{width:100%}
.wse-widget .wse-field-display{width:100%;max-width:none}

/* Wyniki. */
.wse-results-page>.wse{margin-bottom:22px}
.wse-results-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0 0 16px;padding:10px 0;border-bottom:1px solid var(--wse-border);color:var(--wse-text)}
.wse-results-summary span{color:var(--wse-count-text)}
.wse-products{display:grid;gap:var(--wse-result-gap)}
.wse-products-grid{grid-template-columns:repeat(var(--wse-columns,3),minmax(0,1fr))}
.wse-product{display:flex;min-width:0;overflow:hidden;background:var(--wse-item-bg);border:1px solid var(--wse-border);border-radius:var(--wse-radius);transition:background-color .18s ease,border-color .18s ease,transform .18s ease}
.wse-products-grid .wse-product{flex-direction:column}
.wse-product:hover{background:var(--wse-hover-bg);border-color:var(--wse-arrow)}
.wse-product-image{display:block;position:relative;overflow:hidden;background:var(--wse-subitem-bg);text-decoration:none!important}
.wse-products-grid .wse-product-image{aspect-ratio:1/1}
.wse-product-image img{display:block;width:100%;height:100%;margin:0!important;object-fit:contain;transition:transform .25s ease}
.wse-product:hover .wse-product-image img{transform:scale(1.025)}
.wse-product-content{display:flex;flex:1;flex-direction:column;min-width:0;padding:15px}
.wse-product-categories{margin:0 0 6px;color:var(--wse-count-text);font-size:12px;line-height:1.4}
.wse-product-categories a{color:inherit!important;text-decoration:none!important}
.wse-product-title{margin:0 0 10px!important;color:var(--wse-text)!important;font-size:var(--wse-product-title-size)!important;font-weight:700!important;line-height:1.3!important}
.wse-product-title a{color:inherit!important;text-decoration:none!important}
.wse-rating{min-height:20px;margin:0 0 10px}
.wse-rating .star-rating{float:none;margin:0}
.wse-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.wse-price{color:var(--wse-active-text);font-size:var(--wse-price-size);font-weight:750;line-height:1.25}
.wse-price del{opacity:.55;font-size:.85em}
.wse-price ins{text-decoration:none}
.wse-product-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.wse-product-link{min-height:36px;padding:8px 12px;font-size:13px!important}
.wse-cart-button{flex:0 0 36px;width:36px;min-width:36px;min-height:36px;height:36px;padding:0!important}
.wse-cart-button svg{display:block;width:19px;height:19px;fill:currentColor}
.wse-cart-button.loading{opacity:.65;pointer-events:none}
.wse-cart-button.added svg{display:none}
.wse-cart-button.added::after{content:"✓";font-size:18px;line-height:1}
.wse-product-actions .added_to_cart{display:none!important}
.wse-products-list{grid-template-columns:1fr}
.wse-products-list .wse-product{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr)}
.wse-products-list .wse-product-image{min-height:180px}
.wse-products-list .wse-product-content{padding:20px}
.wse-empty{padding:22px;background:var(--wse-subitem-bg);border:1px solid var(--wse-border);border-radius:var(--wse-radius);color:var(--wse-text);text-align:center}
.wse-pagination{margin:26px 0 0}
.wse-pagination ul{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:0!important;padding:0!important;list-style:none!important}
.wse-pagination li{margin:0!important;padding:0!important}
.wse-pagination a,.wse-pagination span{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:6px 10px;border:1px solid var(--wse-border);border-radius:var(--wse-radius);background:var(--wse-item-bg);color:var(--wse-text)!important;text-decoration:none!important}
.wse-pagination .current,.wse-pagination a:hover{background:var(--wse-active-bg);color:var(--wse-active-text)!important}

/* Style prezentacji zgodne z widgetem kategorii. */
.wse-presentation-cards{background:var(--wse-panel-bg);border:1px solid var(--wse-border)}
.wse-presentation-soft{background:var(--wse-panel-bg);border:0}
.wse-presentation-separators{background:transparent;border:0;border-top:1px solid var(--wse-border);border-bottom:1px solid var(--wse-border);border-radius:0}
.wse-presentation-minimal{background:transparent;border:0}
.wse-presentation-tree{background:transparent;border:0;border-left:3px solid var(--wse-border);border-radius:0}
.wse-presentation-separators .wse-controls,.wse-presentation-minimal .wse-controls{padding-left:0;padding-right:0}
.wse-presentation-separators .wse-field input,.wse-presentation-separators .wse-field select,.wse-presentation-minimal .wse-field input,.wse-presentation-minimal .wse-field select{border-width:0 0 1px!important;border-radius:0!important;background:transparent!important}

@media(max-width:1180px){
  .wse-full .wse-form{grid-template-columns:minmax(190px,1.3fr) minmax(175px,1.05fr) minmax(130px,.76fr) minmax(105px,.62fr) minmax(160px,1fr)}
  .wse-full .wse-submit-wrap{grid-column:1/-1}
  .wse-full .wse-submit{width:100%}
}
@media(max-width:900px){
  .wse-full .wse-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wse-full .wse-submit-wrap{grid-column:1/-1}
  .wse-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
  .wse-full .wse-hero{min-height:170px;padding:28px 22px}
  .wse-controls{padding:15px}
  .wse-full .wse-form{grid-template-columns:1fr}
  .wse-submit-wrap,.wse-submit{width:100%}
  .wse-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wse-products-list .wse-product{grid-template-columns:120px minmax(0,1fr)}
  .wse-products-list .wse-product-image{min-height:140px}
  .wse-products-list .wse-product-content{padding:14px}
  .wse-product-bottom{align-items:flex-start;flex-direction:column}
  .wse-product-actions{width:100%;justify-content:flex-start}
}
@media(max-width:480px){
  .wse-products-grid{grid-template-columns:1fr}
  .wse-products-list .wse-product{display:flex;flex-direction:column}
  .wse-products-list .wse-product-image{aspect-ratio:1/1;min-height:0}
}

/* Podpowiedzi produktów w pełnej wyszukiwarce. */
.wse-autocomplete-enabled{position:relative;overflow:visible;z-index:20}
.wse-autocomplete-enabled .wse-controls{position:relative;z-index:20}
.wse-autocomplete-field{position:relative;z-index:30}
.wse-autocomplete-field.is-open{z-index:60}
.wse-suggestions[hidden]{display:none!important}
.wse-suggestions{position:absolute;top:calc(100% + 7px);left:0;width:min(var(--wse-suggestion-width,680px),calc(100vw - 48px));max-height:min(480px,70vh);overflow:auto;background:var(--wse-item-bg);border:1px solid var(--wse-border);border-radius:var(--wse-radius);box-shadow:0 16px 38px rgba(0,0,0,.18);z-index:1000}
.wse-suggestions-list{display:flex;flex-direction:column}
.wse-suggestion-item{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:12px;min-height:74px;padding:8px 11px;border:0;border-bottom:1px solid var(--wse-border);background:var(--wse-item-bg);color:var(--wse-text)!important;text-decoration:none!important;transition:background-color .15s ease,color .15s ease}
.wse-suggestion-item:hover,.wse-suggestion-item:focus,.wse-suggestion-item.is-active{background:var(--wse-hover-bg);color:var(--wse-hover-text)!important;outline:0}
.wse-suggestion-image{display:flex;align-items:center;justify-content:center;width:58px;height:58px;overflow:hidden;background:var(--wse-subitem-bg);border-radius:max(0px,var(--wse-radius))}
.wse-suggestion-image img{display:block;width:100%;height:100%;margin:0!important;object-fit:contain}
.wse-suggestion-content{display:flex;flex-direction:column;min-width:0;gap:4px}
.wse-suggestion-title{display:block;overflow:hidden;color:inherit;font-size:14px;font-weight:700;line-height:1.32;text-overflow:ellipsis}
.wse-suggestion-price{display:block;color:var(--wse-count-text);font-size:13px;font-weight:650;line-height:1.2}
.wse-suggestion-price del{opacity:.55;font-size:.9em}
.wse-suggestion-price ins{text-decoration:none}
.wse-suggestion-more{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;background:var(--wse-subitem-bg);color:var(--wse-text)!important;font-size:13px;font-weight:750;text-align:center;text-decoration:none!important}
.wse-suggestion-more:hover,.wse-suggestion-more:focus{background:var(--wse-active-bg);color:var(--wse-active-text)!important;outline:0}
.wse-suggestions-message{padding:15px;background:var(--wse-item-bg);color:var(--wse-count-text);font-size:13px;font-weight:500;line-height:1.45}
.wse-suggestions-message.is-loading::before{content:"";display:inline-block;width:13px;height:13px;margin:0 8px -2px 0;border:2px solid var(--wse-border);border-top-color:var(--wse-button-bg);border-radius:50%;animation:wse-spin .7s linear infinite}
.wse-suggestions-message.is-error{color:#b32d2e}
@keyframes wse-spin{to{transform:rotate(360deg)}}

@media(max-width:767px){
  .wse-suggestions{width:100%;max-height:60vh}
  .wse-suggestion-item{grid-template-columns:52px minmax(0,1fr);min-height:68px}
  .wse-suggestion-image{width:52px;height:52px}
}
