/* BUILD 5.4.1 - horizontal catalog + category tree */
*{box-sizing:border-box}
html{font-family:Arial,Helvetica,sans-serif;color:#15263a;background:#f5f7f9}
body{margin:0;background:#f5f7f9}
a{color:inherit}
img{max-width:100%;display:block}
.public-wrap{width:min(1420px,calc(100% - 40px));margin:0 auto}
.public-header{background:#fff;border-bottom:1px solid #e2e8ee;position:relative;z-index:10}
.public-header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.public-logo{font-weight:900;text-decoration:none;color:#1a4b7d;font-size:20px}
.public-logo span{display:block;font-size:10px;font-weight:600;color:#74899e;letter-spacing:.08em;text-transform:uppercase}
.public-header nav{display:flex;gap:24px}
.public-header nav a{text-decoration:none;font-size:13px;font-weight:700}
.hero,.category-hero{padding:56px 0;background:linear-gradient(135deg,#0f3e70,#1f68ae);color:#fff}
.hero-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;opacity:.7}
.hero h1,.category-hero h1{font-size:42px;margin:8px 0 8px;line-height:1.05}
.hero p,.category-hero p{margin:0;font-size:16px;opacity:.8}
.search-section{margin-top:-24px;position:relative;z-index:3}
.machine-search{display:grid;grid-template-columns:2fr 1.3fr 1fr .75fr .75fr auto;gap:10px;align-items:end;padding:18px;background:#fff;border-radius:14px;box-shadow:0 14px 35px rgba(10,42,76,.12)}
.machine-search label{display:block;font-size:10px;font-weight:700;color:#63778b}
.machine-search input,.machine-search select{width:100%;height:42px;margin-top:5px;border:1px solid #d7e0e8;border-radius:8px;padding:0 10px;background:#fff}
.machine-search button{height:42px;border:0;border-radius:8px;padding:0 22px;background:#9b6735;color:#fff;font-weight:800;cursor:pointer}
.listing-section{padding:42px 0 70px}
.listing-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}
.listing-head h2{margin:0 0 3px;font-size:26px}
.listing-head p{margin:0;color:#75889b;font-size:12px}
.machine-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.machine-card{background:#fff;border:1px solid #dde5ec;border-radius:13px;overflow:hidden;box-shadow:0 5px 18px rgba(18,47,76,.04)}
.machine-photo{position:relative;display:block;aspect-ratio:4/3;background:#eef2f5;overflow:hidden}
.machine-photo img{width:100%;height:100%;object-fit:cover;transition:.25s}
.machine-card:hover .machine-photo img{transform:scale(1.02)}
.no-photo{display:flex;align-items:center;justify-content:center;height:100%;color:#8899aa;font-size:12px}
.urgent-badge{position:absolute;top:12px;left:12px;background:#d83434;color:#fff;padding:5px 8px;border-radius:5px;font-size:9px;font-weight:900}
.urgent-badge.static{position:static;display:inline-block;margin-bottom:9px}
.machine-card-body{padding:15px}
.machine-category{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#6f91ae}
.machine-card h3{margin:6px 0 9px;font-size:17px;line-height:1.25}
.machine-card h3 a{text-decoration:none}
.rating-line{font-size:12px;color:#d39400;margin:4px 0}
.rating-line span{color:#7c8d9f}
.rating-line.large{font-size:15px}
.machine-meta{display:flex;justify-content:space-between;gap:8px;color:#8495a5;font-size:10px;margin-top:10px}
.machine-price{margin-top:13px;font-size:18px;font-weight:900;color:#143f6e}
.pagination{display:flex;justify-content:center;gap:6px;margin-top:28px}
.pagination a{display:flex;width:36px;height:36px;align-items:center;justify-content:center;background:#fff;border:1px solid #d9e2ea;border-radius:7px;text-decoration:none}
.pagination a.active{background:#9b6735;color:#fff;border-color:#9b6735}
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.category-card{display:flex;justify-content:space-between;gap:10px;padding:18px;background:#fff;border:1px solid #dde5ec;border-radius:10px;text-decoration:none}
.category-card span{font-size:11px;color:#8092a3}
.category-text{padding:20px;margin-bottom:20px;background:#fff;border-radius:12px;border:1px solid #dde5ec}
.breadcrumbs{display:flex;align-items:center;gap:8px;min-height:46px;font-size:10px;color:#708397}
.breadcrumbs a{text-decoration:none}
.product-page{padding:28px 0 70px}
.product-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:26px;align-items:start}
.product-gallery,.product-description,.product-parameters,.product-card{background:#fff;border:1px solid #dce5ed;border-radius:13px}
.product-gallery{padding:12px}
.product-main-photo{aspect-ratio:4/3;background:#eef2f5;border-radius:9px;overflow:hidden}
.product-main-photo img{width:100%;height:100%;object-fit:contain;background:#fff}
.product-thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:9px}
.product-thumbs button{padding:0;border:1px solid #d7e1ea;background:#fff;border-radius:6px;overflow:hidden;cursor:pointer}
.product-thumbs img{aspect-ratio:1/1;object-fit:cover}
.product-description,.product-parameters{padding:22px;margin-top:18px}
.product-description h2,.product-parameters h2{margin:0 0 14px;font-size:20px}
.rich-text{line-height:1.65;color:#384d62}
.product-parameters dl{margin:0}
.product-parameters dl>div,.product-facts>div{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:9px 0;border-top:1px solid #edf1f4}
.product-parameters dl>div:first-child,.product-facts>div:first-child{border-top:0}
dt{font-size:11px;color:#71859a}
dd{margin:0;font-size:12px;font-weight:700;text-align:right}
.product-card{padding:24px;position:sticky;top:20px}
.product-card h1{font-size:26px;line-height:1.15;margin:7px 0 12px}
.product-price{font-size:28px;font-weight:900;color:#123e70;margin:18px 0}
.product-contact{display:grid;gap:8px}
.product-contact a{display:block;padding:12px;background:#9b6735;color:#fff;text-align:center;text-decoration:none;border-radius:8px;font-weight:800}
.product-facts{margin-top:17px}
.public-footer{padding:30px 0;background:#11283f;color:#fff;margin-top:30px}
.public-footer .public-wrap{display:flex;gap:12px;justify-content:space-between}
.empty-list{grid-column:1/-1;padding:30px;text-align:center;background:#fff;border-radius:12px;color:#748799}
@media(max-width:1150px){.machine-grid,.category-grid{grid-template-columns:repeat(3,1fr)}.machine-search{grid-template-columns:repeat(3,1fr)}.product-layout{grid-template-columns:1fr 330px}}
@media(max-width:820px){.public-wrap{width:min(100% - 24px,1420px)}.machine-grid,.category-grid{grid-template-columns:repeat(2,1fr)}.machine-search{grid-template-columns:1fr 1fr}.product-layout{grid-template-columns:1fr}.product-card{position:static}.hero h1,.category-hero h1{font-size:34px}}
@media(max-width:560px){.machine-grid,.category-grid,.machine-search{grid-template-columns:1fr}.public-header-inner{min-height:64px}.public-header nav{gap:12px}.hero,.category-hero{padding:38px 0}.hero h1,.category-hero h1{font-size:29px}.product-thumbs{grid-template-columns:repeat(4,1fr)}}


/* Etap 5.3 – SEO friendly filters */
.machine-search.category-search{
    margin-bottom:22px;
}
@media(min-width:1151px){
  .machine-search{
      grid-template-columns:1.6fr 1.2fr 1fr 1fr .75fr .75fr auto;
  }
  .machine-search.category-search{
      grid-template-columns:1.6fr 1fr 1fr .75fr .75fr auto;
  }
}


/* Etap 5.3.3 – brak wyników */
.no-results-box{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:70px minmax(0,1fr);
    gap:20px;
    padding:28px;
    margin:4px 0 26px;
    border:1px solid #d9e4ee;
    border-radius:14px;
    background:linear-gradient(135deg,#f8fbff,#fff);
}
.no-results-icon{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#eaf3fc;
    color:#9b6735;
    font-size:30px;
}
.no-results-copy h2{
    margin:5px 0 9px;
    font-size:24px;
}
.no-results-copy p{
    margin:5px 0;
    color:#62778d;
    line-height:1.5;
}
.active-filter-chips{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    margin:10px 0 12px;
}
.active-filter-chips span{
    display:inline-flex;
    padding:6px 9px;
    border-radius:999px;
    background:#edf4fb;
    color:#315d87;
    font-size:10px;
    font-weight:700;
}
.no-results-tip{
    font-size:12px;
}
.no-results-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:16px;
}
.public-button{
    display:inline-flex;
    min-height:40px;
    align-items:center;
    justify-content:center;
    padding:0 15px;
    border-radius:8px;
    background:#9b6735;
    color:#fff;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
}
.public-button.secondary{
    background:#fff;
    color:#9b6735;
    border:1px solid #bfd3e7;
}
.retry-search{
    grid-column:1/-1;
    margin:0 0 32px;
}
.retry-search h2{
    margin:0 0 12px;
    font-size:21px;
}
.retry-search .machine-search{
    box-shadow:none;
    border:1px solid #dce5ed;
}
.suggested-products{
    grid-column:1/-1;
    width:100%;
    margin-top:12px;
}
.suggested-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:820px){
    .no-results-box{
        grid-template-columns:1fr;
    }
    .suggested-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:560px){
    .suggested-grid{
        grid-template-columns:1fr;
    }
}


/* =====================================================
   Etap 5.4 – katalog poziomy + drzewo kategorii + oceny
   ===================================================== */
.catalog-layout{
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    gap:20px;
    align-items:start;
}
.category-sidebar{
    min-width:0;
}
.category-sidebar-box{
    position:sticky;
    top:16px;
    padding:15px 14px;
    background:#f2eee9;
    border:1px solid #e0d8ce;
    border-radius:4px;
}
.category-sidebar-box h3{
    margin:0 0 10px;
    font-size:13px;
    font-weight:700;
    color:#3a3a3a;
}
.category-tree-list{
    list-style:none;
    padding:0;
    margin:0;
}
.category-tree-list .category-tree-list{
    margin-left:18px;
    padding-top:3px;
}
.category-tree-item{
    margin:0;
}
.category-tree-row{
    display:flex;
    align-items:center;
    min-height:28px;
}
.category-tree-row>a{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
    flex:1;
    text-decoration:none;
    font-size:12px;
    color:#4a4a4a;
}
.category-tree-item.is-active>.category-tree-row>a{
    font-weight:800;
    color:#9a642c;
}
.category-count{
    color:#7f8b97;
    font-size:10px;
}
.category-toggle,
.category-toggle-spacer{
    width:18px;
    height:22px;
    flex:0 0 18px;
}
.category-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    background:transparent;
    color:#8b633d;
    cursor:pointer;
    font-size:16px;
    transition:transform .18s ease;
}
.category-toggle.is-open,
.category-toggle[aria-expanded="true"]{
    transform:rotate(90deg);
}
.category-children{
    display:none;
}
.category-children.is-open{
    display:block;
}

.machine-list-horizontal{
    display:grid;
    gap:12px;
    min-width:0;
}
.machine-row-card{
    display:grid;
    grid-template-columns:280px minmax(0,1fr) 210px;
    gap:0;
    min-height:220px;
    background:#fff;
    border:1px solid #d8dde2;
    box-shadow:0 2px 7px rgba(24,45,66,.08);
}
.machine-row-media{
    padding:10px 0 10px 10px;
}
.machine-row-photo{
    position:relative;
    display:block;
    width:100%;
    height:170px;
    overflow:hidden;
    border-radius:4px;
    background:#eef1f4;
}
.machine-row-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.machine-row-content{
    padding:12px 18px;
    min-width:0;
}
.machine-row-topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    padding-bottom:7px;
    border-bottom:1px solid #e5e7e9;
}
.machine-row-content h3{
    margin:8px 0 10px;
    font-size:19px;
    line-height:1.25;
}
.machine-row-content h3 a{
    text-decoration:none;
    color:#9c6730;
}
.machine-row-description{
    margin:0 0 12px;
    color:#1f2933;
    font-size:13px;
    line-height:1.5;
    font-weight:600;
}
.machine-row-facts{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    color:#3d4c59;
    font-size:11px;
}
.machine-row-location{
    color:#5f6d7a;
    font-size:11px;
}
.machine-row-pricebox{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    padding:18px 18px 14px;
    background:#fcfcfc;
}
.machine-row-price{
    text-align:right;
    line-height:1;
}
.machine-row-price strong{
    display:inline;
    font-size:28px;
    font-weight:900;
    color:#cc1717;
}
.machine-row-price span{
    margin-left:4px;
    font-size:20px;
    font-weight:800;
    color:#182431;
}
.machine-row-price small{
    display:block;
    margin-top:4px;
    font-size:11px;
    font-weight:800;
    color:#263849;
}
.machine-row-more{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:39px;
    padding:0 14px;
    border-radius:5px;
    background:#9b6735;
    color:#fff;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
}

/* ratings */
.rating-widget{
    padding:9px 6px 0;
    text-align:center;
}
.rating-stars-interactive{
    display:flex;
    justify-content:center;
    gap:1px;
}
.rating-star{
    appearance:none;
    padding:0;
    border:0;
    background:transparent;
    color:#1c232b;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    text-shadow:0 1px 1px rgba(0,0,0,.18);
}
.rating-star.is-filled,
.rating-star.is-hovered{
    color:#f2a000;
}
.rating-star:disabled{
    cursor:wait;
    opacity:.65;
}
.rating-caption{
    margin-top:4px;
    color:#6d7d8d;
    font-size:10px;
}
.rating-message{
    min-height:14px;
    margin-top:3px;
    color:#277247;
    font-size:9px;
}

/* empty results inside horizontal column */
.machine-list-horizontal .no-results-box,
.machine-list-horizontal .retry-search,
.machine-list-horizontal .suggested-products{
    grid-column:auto;
}
.machine-list-horizontal .suggested-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

@media(max-width:1100px){
    .catalog-layout{
        grid-template-columns:220px minmax(0,1fr);
    }
    .machine-row-card{
        grid-template-columns:230px minmax(0,1fr);
    }
    .machine-row-pricebox{
        grid-column:2;
        flex-direction:row;
        align-items:center;
        border-top:1px solid #edf0f2;
    }
}
@media(max-width:820px){
    .catalog-layout{
        grid-template-columns:1fr;
    }
    .category-sidebar-box{
        position:static;
    }
    .machine-row-card{
        grid-template-columns:220px minmax(0,1fr);
    }
}
@media(max-width:620px){
    .machine-row-card{
        grid-template-columns:1fr;
    }
    .machine-row-media{
        padding:10px;
    }
    .machine-row-photo{
        height:auto;
        aspect-ratio:4/3;
    }
    .machine-row-pricebox{
        grid-column:auto;
        align-items:flex-start;
    }
    .machine-row-price{
        text-align:left;
    }
}


/* =====================================================
   Etap 5.4.2 – uporządkowanie ofert
   ===================================================== */
.machine-row-card{
    grid-template-columns:340px minmax(0,1fr) !important;
    min-height:285px !important;
}
.machine-row-media{
    padding:12px 0 12px 12px !important;
}
.machine-row-photo{
    height:215px !important;
}
.machine-row-content{
    padding:14px 22px 15px !important;
    display:flex;
    flex-direction:column;
}
.machine-row-content h3{
    font-size:20px !important;
    margin:9px 0 10px !important;
}
.machine-row-description{
    max-width:900px;
    font-size:13px !important;
    line-height:1.55 !important;
    margin-bottom:10px !important;
}
.machine-row-facts{
    margin-top:2px;
}
.machine-row-price.inline-price{
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid #e7eaed;
    text-align:left !important;
}
.machine-row-price.inline-price strong{
    font-size:29px !important;
    color:#cf1717 !important;
}
.machine-row-price.inline-price span{
    font-size:20px !important;
}
.machine-row-price.inline-price small{
    display:inline-block !important;
    margin-left:5px !important;
}
.machine-row-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:auto;
    padding-top:10px;
}
.machine-row-more{
    min-width:120px;
}
.rating-message{
    font-weight:700;
}
.rating-widget.has-voted .rating-message{
    color:#177245;
    background:#eaf8f0;
    display:inline-block;
    padding:4px 7px;
    border-radius:5px;
    margin-top:5px;
}
.rating-widget.has-voted .rating-stars-interactive{
    opacity:.92;
}

@media(max-width:1150px){
    .machine-row-card{
        grid-template-columns:290px minmax(0,1fr) !important;
    }
    .machine-row-photo{
        height:190px !important;
    }
}
@media(max-width:700px){
    .machine-row-card{
        grid-template-columns:1fr !important;
    }
    .machine-row-media{
        padding:10px !important;
    }
    .machine-row-photo{
        height:auto !important;
        aspect-ratio:4/3;
    }
    .machine-row-content{
        padding:12px 14px 15px !important;
    }
    .machine-row-actions{
        justify-content:stretch;
    }
    .machine-row-more{
        width:100%;
    }
}


/* =====================================================
   BUILD 5.4.3 – desktop cena pod opisem + średnia gwiazdek
   ===================================================== */
.machine-row-card{
    grid-template-columns:330px minmax(0,1fr) !important;
    min-height:300px !important;
}
.machine-row-media{
    grid-column:1 !important;
    grid-row:1 !important;
    padding:12px !important;
}
.machine-row-photo{
    height:220px !important;
}
.machine-row-content{
    grid-column:2 !important;
    grid-row:1 !important;
    min-width:0 !important;
    padding:15px 22px 17px !important;
    display:flex !important;
    flex-direction:column !important;
}
.machine-row-content h3{
    margin:8px 0 10px !important;
}
.machine-row-description{
    max-width:980px !important;
    margin-bottom:11px !important;
}
.machine-row-pricebox{
    display:none !important;
}
.machine-row-price.inline-price{
    display:flex !important;
    align-items:baseline !important;
    flex-wrap:wrap !important;
    gap:5px !important;
    width:100% !important;
    margin:15px 0 0 !important;
    padding:13px 0 0 !important;
    border-top:1px solid #e6e9ec !important;
    background:transparent !important;
    text-align:left !important;
}
.machine-row-price.inline-price strong{
    font-size:30px !important;
    line-height:1 !important;
    color:#d01717 !important;
    white-space:nowrap !important;
}
.machine-row-price.inline-price .price-currency{
    margin:0 !important;
    font-size:20px !important;
    font-weight:900 !important;
    line-height:1 !important;
    color:#142435 !important;
    white-space:nowrap !important;
}
.machine-row-price.inline-price .price-tax{
    display:inline-block !important;
    margin:0 0 0 2px !important;
    font-size:12px !important;
    font-weight:900 !important;
    line-height:1 !important;
    color:#142435 !important;
    white-space:nowrap !important;
    text-transform:lowercase !important;
}
.machine-row-actions{
    display:flex !important;
    justify-content:flex-start !important;
    margin-top:auto !important;
    padding-top:13px !important;
}

/* Dokładna średnia 0–5: część gwiazdek jest wypełniana procentowo. */
.rating-stars-visual{
    position:relative !important;
    display:inline-block !important;
    height:33px !important;
    line-height:33px !important;
    font-size:32px !important;
    letter-spacing:1px !important;
    white-space:nowrap !important;
}
.rating-stars-bg{
    color:#17212b !important;
}
.rating-stars-fill{
    position:absolute !important;
    left:0 !important;
    top:0 !important;
    width:var(--rating-fill,0%) !important;
    overflow:hidden !important;
    color:#f2a000 !important;
    white-space:nowrap !important;
}
.rating-caption{
    margin-top:0 !important;
    font-size:10px !important;
}
.rating-vote-label{
    margin-top:5px;
    color:#6f8192;
    font-size:9px;
}
.rating-stars-interactive{
    margin-top:1px !important;
}
.rating-stars-interactive .rating-star{
    font-size:17px !important;
    color:#a8b0b8 !important;
    text-shadow:none !important;
}
.rating-stars-interactive .rating-star.is-hovered{
    color:#f2a000 !important;
}
.rating-widget.has-voted .rating-vote-label,
.rating-widget.has-voted .rating-stars-interactive{
    opacity:.55;
}

@media(max-width:700px){
    .machine-row-card{
        grid-template-columns:1fr !important;
    }
    .machine-row-media,
    .machine-row-content{
        grid-column:1 !important;
        grid-row:auto !important;
    }
    .machine-row-photo{
        height:auto !important;
        aspect-ratio:4/3 !important;
    }
}


/* Etap 5.4.4 – komunikat po oddaniu głosu */
.rating-message{
    min-height:18px;
    margin-top:4px;
    font-size:11px;
    font-weight:700;
}
.rating-widget.has-voted .rating-message{
    color:#237a42;
}


/* =========================================================
   Etap 5.6 – wyszukiwarka zgodna z legacy
   ========================================================= */
.legacy-search-section{padding:18px 0 8px;background:#fff}
.search-account-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:12px}
.search-utility,.search-add-offer{border:1px solid #ddd2c6;background:#f7f3ee;color:#443321;padding:9px 13px;font:inherit;text-decoration:none}
.search-add-offer{background:#946737;color:#fff;border-color:#946737;font-weight:700}
.legacy-machine-search{background:#eee7df;padding:14px}
.legacy-search-row{display:grid;grid-template-columns:minmax(210px,1.3fr) minmax(215px,1fr) 95px auto 135px 135px minmax(190px,.95fr) auto;align-items:stretch;gap:8px}
.legacy-machine-search input,.legacy-machine-search select,.location-trigger{width:100%;height:52px;border:1px solid #ddd;background:#fff;padding:0 12px;font:inherit;color:#222}
.legacy-search-query,.legacy-price,.legacy-category,.legacy-radius{position:relative;margin:0}
.legacy-search-query input{padding-left:35px}
.legacy-icon{position:absolute;z-index:2;left:12px;top:50%;transform:translateY(-50%);color:#946737}
.legacy-radius select{padding:0 9px}
.legacy-price-label{display:flex;align-items:center;justify-content:center;white-space:nowrap;font-size:13px}
.legacy-price{display:grid;grid-template-columns:28px 1fr;align-items:center;background:#fff}
.legacy-price span{padding-left:10px;font-size:13px}
.legacy-price input{border:0;padding-left:4px}
.legacy-search-submit{border:0;background:#946737;color:#fff;padding:0 16px;font-weight:700;font-size:15px;white-space:nowrap}
.legacy-search-options{display:flex;gap:22px;align-items:center;margin-top:13px;font-size:13px}
.legacy-search-options label{display:flex;align-items:center;gap:7px}
.legacy-search-options input{width:19px;height:19px;margin:0}
.legacy-search-secondary{display:flex;justify-content:flex-end;align-items:center;gap:28px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(120,90,60,.12)}
.account-filter{display:flex;gap:3px}
.account-filter button{border:0;background:transparent;padding:7px 9px;font-size:12px;cursor:pointer}
.account-filter button.active{font-weight:700;color:#946737}
.legacy-sort{font-size:12px;display:flex;align-items:center;gap:8px}
.legacy-sort select{height:36px;width:auto;min-width:190px;padding:0 8px}

/* Location dropdown */
.location-picker{position:relative}
.location-trigger{position:relative;text-align:left;padding-left:35px;cursor:pointer}
.location-dropdown{position:absolute;left:0;top:calc(100% + 1px);z-index:800;width:320px;max-height:420px;overflow:auto;background:#fff;border:1px solid #d5c5b5;box-shadow:0 8px 20px rgba(0,0,0,.16)}
.location-dropdown[hidden]{display:none}
.location-all,.location-state-button,.location-city-list button{width:100%;border:0;background:#fff;text-align:left;padding:12px 18px;cursor:pointer}
.location-all{border-bottom:1px solid #ddd;font-weight:600}
.location-state-button{display:flex;justify-content:space-between;border-bottom:1px solid #eee}
.location-state-button:hover,.location-city-list button:hover,.location-all:hover{background:#f5efe8}
.location-city-list{padding-left:13px;background:#faf8f5}
.location-city-list[hidden]{display:none}
.location-city-list button{padding:9px 18px;font-size:12px;background:#faf8f5;border-bottom:1px solid #eee}

@media(max-width:1180px){
  .legacy-search-row{grid-template-columns:1.4fr 1.1fr 90px 120px 120px 1fr auto}
  .legacy-price-label{display:none}
}
@media(max-width:850px){
  .search-account-actions{display:none}
  .legacy-machine-search{padding:10px}
  .legacy-search-row{grid-template-columns:1fr 1fr}
  .legacy-search-query,.location-picker,.legacy-category,.legacy-search-submit{grid-column:1/-1}
  .legacy-search-submit{height:48px}
  .legacy-search-options{display:grid;grid-template-columns:1fr;margin-top:12px}
  .legacy-search-secondary{align-items:stretch;flex-direction:column;gap:8px}
  .account-filter{justify-content:center}
  .legacy-sort{justify-content:space-between}
  .location-dropdown{width:100%}
}

/* Etap 5.6.2 */
.best-match-products{margin-top:28px;padding-top:22px;border-top:1px solid #dce4ed}
.best-match-products .listing-head{margin-bottom:14px}
.best-match-products .listing-head h2{margin:4px 0}
.legacy-radius select:disabled{opacity:.48;cursor:not-allowed;background:#f5f5f5}


/* =========================================================
   ETAP 5.7 – kategoria + pełna karta ogłoszenia
   ========================================================= */

/* Category H1: kompaktowy brąz zamiast niebieskiego full width */
.category-hero{
  background:transparent!important;
  color:#31261b!important;
  padding:18px 0 26px!important;
}
.category-hero .public-wrap{
  max-width:1100px!important;
}
.category-hero .public-wrap>div,
.category-hero .hero-inner{
  background:linear-gradient(135deg,#f3ece3,#e8d6c1)!important;
  border-left:6px solid #946737;
  padding:22px 28px!important;
  border-radius:8px;
  box-shadow:0 5px 18px rgba(93,64,36,.08);
}
.category-hero .hero-kicker{color:#946737!important}
.category-hero h1{color:#5d4024!important;font-size:36px!important;margin:4px 0!important}
.category-hero p{color:#6d5a47!important;margin:4px 0 0!important}

.product-page-v57{background:#f5f6f8;padding:26px 0 50px}
.product-layout-v57{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
.product-main-v57{min-width:0;display:grid;gap:20px}
.product-sidebar-v57{position:static;top:auto}
.product-content-card,.product-card-v57{background:#fff;border:1px solid #e3e5e8;border-radius:8px;box-shadow:0 5px 18px rgba(26,39,55,.06)}
.product-content-card{padding:26px}
.product-card-v57{padding:24px}
.product-card-v57 h1{font-size:27px;line-height:1.18;margin:8px 0 12px;color:#182536}
.product-gallery-v57{background:#fff;border:1px solid #e3e5e8;padding:12px;border-radius:8px}
.product-main-photo-v57{display:block;position:relative;width:100%;padding:0;border:0;background:#eef1f4;cursor:zoom-in;overflow:hidden;border-radius:6px}
.product-main-photo-v57 img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain;background:#f2f2f2}
.gallery-zoom-label{position:absolute;right:14px;bottom:14px;padding:8px 11px;background:rgba(0,0,0,.72);color:#fff;border-radius:4px;font-size:12px}
.product-thumbs-v57{display:flex;gap:8px;overflow-x:auto;padding:11px 2px 2px;scrollbar-width:thin}
.product-thumbs-v57 button{flex:0 0 92px;height:68px;border:2px solid transparent;background:#fff;padding:2px;cursor:pointer;border-radius:4px}
.product-thumbs-v57 button.active{border-color:#946737}
.product-thumbs-v57 img{width:100%;height:100%;object-fit:cover}
.product-price-v57{font-size:32px;font-weight:800;color:#c5161d;margin:18px 0}
.product-price-v57 small{display:block;color:#555;font-size:12px;text-transform:uppercase;margin-top:2px}
.product-actions-v57{display:grid;gap:9px}
.brown-button,.secondary-brown-button{display:flex;align-items:center;justify-content:center;text-decoration:none;border:0;cursor:pointer;font:700 14px/1.2 Arial,sans-serif;border-radius:4px}
.brown-button{background:#946737;color:#fff;padding:14px 16px}
.brown-button.alt{background:#b17b43}
.secondary-brown-button{background:#f5efe8;color:#704a25;border:1px solid #d7c3ad;padding:11px 15px}
.seller-box-v57{margin:18px 0;padding:15px;background:#f7f3ef;border-left:4px solid #946737}
.seller-box-v57 span,.seller-box-v57 small{display:block;color:#737373;font-size:11px}.seller-box-v57 strong{display:block;margin:4px 0;font-size:17px}
.product-facts-v57{margin:16px 0}.product-facts-v57>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #eee}.product-facts-v57 dt{color:#737373;font-size:12px}.product-facts-v57 dd{margin:0;font-weight:700;text-align:right;font-size:12px}
.security-box{margin-top:18px;background:#282828;color:#fff;padding:16px}.security-box strong{font-size:15px}.security-box ul{margin:10px 0 0;padding-left:18px;font-size:12px;line-height:1.55}
.report-toggle{margin-top:12px;width:100%;border:1px solid #ddd;background:#fff;padding:9px;color:#555;cursor:pointer}
.report-panel{margin-top:12px;padding:14px;background:#faf9f7;border:1px solid #e6ddd3}.report-panel form{display:grid;gap:9px}.report-panel label{font-size:12px}.report-panel input,.report-panel select,.report-panel textarea{width:100%;box-sizing:border-box;margin-top:4px;padding:9px;border:1px solid #d8d8d8;background:#fff}
.section-heading-v57 span{color:#946737;font-size:11px;font-weight:800;letter-spacing:1.2px}.section-heading-v57 h2{margin:4px 0 18px;font-size:25px;color:#1d2936}
.product-message-form{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.product-message-form label{display:grid;gap:5px;font-size:12px}.product-message-form input,.product-message-form textarea{width:100%;box-sizing:border-box;border:1px solid #d8dde3;padding:11px;font:inherit}.product-message-form .full{grid-column:1/-1}.form-consent{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important}.form-consent input{width:auto!important}.captcha-field{max-width:220px}.honeypot-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.public-alert{padding:12px 14px;margin:0 0 16px;border-radius:4px}.public-alert.success{background:#e8f7ec;color:#176a31;border:1px solid #bde6c7}.public-alert.error{background:#fff0f0;color:#9b1c1c;border:1px solid #f0baba}
.location-line{font-size:14px;margin-bottom:13px}.lazy-map{height:330px;background:linear-gradient(135deg,#e8ece6,#d7e1d4);display:flex;align-items:center;justify-content:center;border:1px solid #d8ded4;overflow:hidden}.lazy-map .leaflet-map{width:100%;height:100%}.map-placeholder-button{background:#946737;color:#fff;border:0;padding:13px 20px;font-weight:700;cursor:pointer}.map-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.related-carousel-wrap{position:relative}.related-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 9px}.related-carousel::-webkit-scrollbar{display:none}.related-card{flex:0 0 245px;scroll-snap-align:start;border:1px solid #e1e4e7;background:#fff}.related-card>a{display:block;color:#222;text-decoration:none;padding-bottom:14px}.related-image{height:150px;background:#edf0f2;overflow:hidden}.related-image img{width:100%;height:100%;object-fit:cover}.related-card h3{font-size:14px;line-height:1.35;padding:10px 12px 4px;margin:0;min-height:48px}.related-card strong{display:block;color:#c5161d;font-size:18px;padding:4px 12px}.related-card span{display:inline-block;margin:8px 12px 0;background:#946737;color:#fff;padding:8px 11px;font-size:11px;font-weight:700}.related-arrow{position:absolute;top:72px;z-index:2;width:38px;height:50px;border:0;background:rgba(52,53,54,.88);color:#fff;font-size:31px;cursor:pointer}.related-arrow.prev{left:-7px}.related-arrow.next{right:-7px}

/* fullscreen */
.gallery-lightbox{position:fixed;z-index:99999;inset:0;background:rgba(10,10,10,.96);display:grid;grid-template-columns:80px 1fr 80px;grid-template-rows:1fr 100px;align-items:center;padding:25px;box-sizing:border-box}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox>img{grid-column:2;grid-row:1;max-width:100%;max-height:calc(100vh - 145px);justify-self:center;object-fit:contain}
.gallery-close{position:absolute;right:25px;top:14px;background:none;border:0;color:#fff;font-size:54px;font-weight:200;cursor:pointer}
.gallery-nav{background:rgba(0,0,0,.55);border:0;color:#fff;font-size:64px;height:90px;cursor:pointer}.gallery-nav.prev{grid-column:1;grid-row:1}.gallery-nav.next{grid-column:3;grid-row:1}
.gallery-lightbox-thumbs{grid-column:1/-1;grid-row:2;display:flex;gap:7px;overflow-x:auto;justify-content:center}.gallery-lightbox-thumbs button{flex:0 0 85px;height:64px;padding:2px;border:2px solid transparent;background:#222}.gallery-lightbox-thumbs button.active{border-color:#b17b43}.gallery-lightbox-thumbs img{width:100%;height:100%;object-fit:cover}

@media(max-width:980px){
  .product-layout-v57{grid-template-columns:1fr}.product-sidebar-v57{position:static;order:-1}.product-card-v57 h1{font-size:24px}
  .product-message-form{grid-template-columns:1fr 1fr}.product-message-form label:nth-child(3){grid-column:1/-1}
  .gallery-lightbox{grid-template-columns:45px 1fr 45px;padding:10px}.gallery-nav{font-size:42px}
}
@media(max-width:620px){
  .category-hero{padding:10px 0 16px!important}.category-hero .hero-inner,.category-hero .public-wrap>div{padding:16px 18px!important}.category-hero h1{font-size:29px!important}
  .product-page-v57{padding-top:12px}.product-content-card,.product-card-v57{padding:17px}.product-message-form{grid-template-columns:1fr}.product-message-form label:nth-child(3),.product-message-form .full{grid-column:auto}.map-actions{grid-template-columns:1fr}
  .product-thumbs-v57 button{flex-basis:76px;height:57px}.related-card{flex-basis:210px}.gallery-lightbox{grid-template-columns:35px 1fr 35px;grid-template-rows:1fr 82px}.gallery-lightbox-thumbs{justify-content:flex-start}.gallery-close{font-size:44px;right:10px}
}


/* =========================================================
   ETAP 5.7.2 – galeria w układzie referencyjnym + sidebar statyczny
   ========================================================= */
.product-gallery-v57{padding:14px}
.main-photo-wrap-v572{position:relative}
.product-main-photo-v57{border-radius:10px}
.product-main-photo-v57 img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  max-height:none;
  object-fit:contain;
  background:#f2f2f2;
  border-radius:10px
}
.gallery-inline-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  width:46px;
  height:68px;
  border:0;
  background:rgba(255,255,255,.94);
  color:#aaa;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  font-size:42px;
  cursor:pointer
}
.gallery-inline-arrow.prev{left:-14px}
.gallery-inline-arrow.next{right:-14px}
.gallery-inline-arrow:hover{color:#946737}

.thumb-strip-wrap-v572{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  align-items:center;
  gap:6px;
  margin-top:14px
}
.product-thumbs-v57{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:2px;
  scroll-behavior:smooth;
  scrollbar-width:none
}
.product-thumbs-v57::-webkit-scrollbar{display:none}
.product-thumbs-v57 button{
  flex:0 0 154px;
  height:108px;
  padding:0;
  border:2px solid transparent;
  background:#f3f3f3;
  border-radius:10px;
  overflow:hidden
}
.product-thumbs-v57 button.active{
  border-color:#946737;
  box-shadow:0 0 0 1px rgba(148,103,55,.18)
}
.product-thumbs-v57 img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-strip-arrow{
  border:0;
  background:#fff;
  color:#bbb;
  font-size:34px;
  height:42px;
  padding:0;
  cursor:pointer
}
.thumb-strip-arrow:hover{color:#946737}

.gallery-rating-v572{
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 4px 2px
}
.stars-v572{display:flex;gap:1px;font-size:34px;line-height:1}
.stars-v572 span{color:#27374a}
.stars-v572 span.filled{color:#f0a000}
.gallery-rating-text-v572{font-size:14px;color:#6d737b}

.product-sidebar-v57{
  position:static!important;
  top:auto!important;
  align-self:start
}

@media(max-width:980px){
  .product-thumbs-v57 button{flex-basis:125px;height:88px}
}
@media(max-width:620px){
  .product-gallery-v57{padding:9px}
  .product-thumbs-v57{gap:8px}
  .product-thumbs-v57 button{flex-basis:92px;height:68px}
  .thumb-strip-wrap-v572{grid-template-columns:28px minmax(0,1fr) 28px}
  .gallery-inline-arrow{width:38px;height:56px;font-size:34px}
  .gallery-inline-arrow.prev{left:-9px}
  .gallery-inline-arrow.next{right:-9px}
  .stars-v572{font-size:28px}
}


/* =========================================================
   ETAP 5.7.3 – kategoria: pełna wyszukiwarka + opis pod ofertami
   ========================================================= */
.category-hero-v573{
  padding:18px 0 14px!important;
  background:#f5f6f8!important;
}
.category-hero-v573 .public-wrap{
  max-width:1320px!important;
  width:calc(100% - 32px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
.category-hero-v573 .hero-kicker{
  color:#a3784d!important;
}
.category-hero-v573 h1{
  margin:3px 0 2px!important;
  color:#5d4024!important;
  font-size:36px!important;
  line-height:1.1!important;
}
.category-hero-v573 p{
  margin:0!important;
  color:#887664!important;
}

.category-legacy-search{
  padding-top:0!important;
  background:#f5f6f8!important;
}
.category-legacy-search .public-wrap,
.category-listing-v573>.public-wrap{
  max-width:1320px!important;
  width:calc(100% - 32px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.category-listing-v573{
  padding-top:14px!important;
}

.category-text-bottom-v573{
  margin:28px 0 8px!important;
  padding:26px 30px!important;
  background:#fff!important;
  border:1px solid #e0e5eb!important;
  border-radius:8px!important;
  box-shadow:0 4px 14px rgba(25,39,55,.04)!important;
  color:#2e3741!important;
  line-height:1.7!important;
}
.category-text-bottom-v573 h2,
.category-text-bottom-v573 h3{
  color:#5d4024!important;
}

@media(max-width:620px){
  .category-hero-v573 .public-wrap,
  .category-legacy-search .public-wrap,
  .category-listing-v573>.public-wrap{
    width:calc(100% - 20px)!important;
  }
  .category-hero-v573 h1{font-size:29px!important}
  .category-text-bottom-v573{padding:18px!important}
}


/* =========================================================
   ETAP 5.9.1 – mobilny układ karty produktu
   kolejność: GALERIA -> PRAWA KOLUMNA -> TREŚĆ
   ========================================================= */

@media(max-width:980px){

  .product-page-v57,
  .product-page-v57 .public-wrap{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }

  .product-page-v57 .public-wrap{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .product-layout-v57{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  /*
   * Na desktop galeria jest wewnątrz product-main.
   * Na mobile ustawiamy cały layout jako contents,
   * żeby można było ustawić kolejność elementów niezależnie.
   */
  .product-main-v57{
    display:contents!important;
  }

  .product-gallery-v57{
    grid-column:1!important;
    grid-row:1!important;
    order:1!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  .product-sidebar-v57{
    grid-column:1!important;
    grid-row:2!important;
    order:2!important;
    position:static!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .product-sidebar-v57 > *,
  .product-card-v57{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  /* Wszystkie pozostałe elementy lewej kolumny po sidebarze */
  .product-main-v57 > .product-description,
  .product-main-v57 > .product-parameters,
  .product-main-v57 > .product-message-section,
  .product-main-v57 > .product-location,
  .product-main-v57 > .related-section,
  .product-main-v57 > .product-content-card{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .product-main-v57 > .product-description{order:3!important}
  .product-main-v57 > .product-parameters{order:4!important}
  .product-main-v57 > .product-message-section{order:5!important}
  .product-main-v57 > .product-location{order:6!important}
  .product-main-v57 > .related-section{order:7!important}

  .product-main-photo-v57,
  .main-photo-wrap-v572{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .product-main-photo-v57 img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    box-sizing:border-box!important;
  }

  .thumb-strip-wrap-v572{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .product-thumbs-v57{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
  }

  .product-content-card,
  .product-card-v57{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }

  .rich-text,
  .rich-text img,
  .product-description img,
  .product-content-card img{
    max-width:100%!important;
    height:auto!important;
  }

  .product-message-form,
  .map-actions{
    max-width:100%!important;
    min-width:0!important;
  }

  .product-message-form input,
  .product-message-form textarea,
  .product-message-form select,
  .report-panel input,
  .report-panel textarea,
  .report-panel select{
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  .related-carousel-wrap,
  .related-carousel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}

@media(max-width:620px){

  .product-page-v57 .public-wrap{
    padding-left:6px!important;
    padding-right:6px!important;
  }

  .product-gallery-v57{
    padding:6px!important;
    border-radius:6px!important;
  }

  .product-card-v57,
  .product-content-card{
    padding:14px!important;
    border-radius:6px!important;
  }

  .product-card-v57 h1{
    font-size:22px!important;
    line-height:1.22!important;
  }

  .product-price-v57{
    font-size:27px!important;
  }

  .gallery-inline-arrow{
    width:34px!important;
    height:50px!important;
    font-size:30px!important;
  }

  .gallery-inline-arrow.prev{left:-6px!important}
  .gallery-inline-arrow.next{right:-6px!important}

  .product-thumbs-v57 button{
    flex:0 0 82px!important;
    height:60px!important;
  }

  .gallery-rating-v572{
    flex-wrap:wrap!important;
  }

  .stars-v572{
    font-size:25px!important;
  }

  .product-actions-v57{
    grid-template-columns:1fr!important;
  }

  .brown-button,
  .secondary-brown-button{
    width:100%!important;
    box-sizing:border-box!important;
  }

  .product-facts-v57 > div{
    gap:8px!important;
  }

  .product-facts-v57 dt,
  .product-facts-v57 dd{
    font-size:11px!important;
  }

  .related-card{
    flex-basis:78vw!important;
    max-width:280px!important;
  }
}

/* ETAP 6.1 – publiczne dodawanie ogłoszenia / konto */
.public-add-page,.public-account-page{background:#f4f5f7;padding:34px 0 60px}.public-add-wrap{max-width:1050px;margin:0 auto;padding:0 16px}.public-add-intro{text-align:center;margin-bottom:24px}.public-add-intro>span,.account-dashboard-head>div>span{font-size:11px;font-weight:800;letter-spacing:1.2px;color:#9a6b3b}.public-add-intro h1{font-size:34px;margin:5px 0;color:#30271f}.public-add-intro p{color:#66717d}.add-step-card,.account-card,.add-success-card{background:#fff;border:1px solid #e1e5ea;border-radius:12px;padding:24px;margin-bottom:16px;box-shadow:0 4px 16px rgba(20,30,40,.04)}.add-step-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}.add-step-head>b{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#946737;color:#fff}.add-step-head h2{margin:0;font-size:21px}.add-step-head p{margin:4px 0 0;color:#74808d;font-size:13px}.add-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.add-grid label,.account-card label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#46515e}.add-grid .full{grid-column:1/-1}.add-grid input,.add-grid select,.add-grid textarea,.account-card input{width:100%;box-sizing:border-box;border:1px solid #cfd7e1;border-radius:7px;padding:12px;background:#fff;font:inherit}.public-photo-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;border:2px dashed #c9d1da;border-radius:10px;background:#fafbfc;cursor:pointer;text-align:center}.public-photo-drop input{display:none}.photo-plus{display:flex;width:48px;height:48px;border-radius:50%;align-items:center;justify-content:center;background:#946737;color:#fff;font-size:30px;margin-bottom:8px}.public-photo-preview{display:flex;gap:10px;overflow-x:auto;margin-top:12px}.public-photo-preview img{width:120px;height:90px;object-fit:cover;border-radius:7px;border:1px solid #dde2e8}.add-consents label{display:flex;gap:9px;align-items:flex-start}.add-consents p{color:#6f7882;font-size:12px}.public-add-submit{display:block;width:100%;border:0;border-radius:7px;background:#946737;color:#fff;padding:16px;font-size:16px;font-weight:800;cursor:pointer}.public-add-errors{margin-bottom:16px;background:#fff0f0;border:1px solid #e9b8b8;color:#9c2525;border-radius:8px;padding:12px}.hp-field{position:absolute;left:-9999px}.add-success-card{text-align:center;padding:48px}.success-icon{width:64px;height:64px;border-radius:50%;background:#e3f4e8;color:#237440;display:flex;align-items:center;justify-content:center;font-size:34px;margin:0 auto 16px}.success-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}.success-actions a,.account-dashboard-head a,.account-card button{background:#946737;color:#fff;text-decoration:none;border:0;padding:11px 15px;border-radius:6px;font-weight:700}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.account-card form{display:grid;gap:12px}.account-dashboard-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.account-dashboard-head h1{margin:4px 0}.account-dashboard-head>div:last-child{display:flex;gap:8px}.account-dashboard-head .account-logout{background:#555}.my-ads-list{display:grid;gap:8px}.my-ads-list article{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid #e5e8ec;padding:13px;border-radius:8px}.my-ads-list strong,.my-ads-list small{display:block}.my-ads-list small{color:#7c8793;margin-top:4px}.my-ad-status{padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.status-pending{background:#fff2cd;color:#8b6300}.status-accepted{background:#e1f4e7;color:#287242}.status-rejected{background:#fbe5e5;color:#9f2b2b}@media(max-width:700px){.add-grid,.account-grid{grid-template-columns:1fr}.add-grid .full{grid-column:auto}.account-dashboard-head{align-items:flex-start;flex-direction:column;gap:12px}.my-ads-list article{grid-template-columns:1fr}.success-actions{flex-direction:column}}

/* ETAP 6.2 – mapa lokalizacji + drzewko kategorii */
.public-category-tree-field{position:relative;display:grid;gap:7px}
.public-category-tree-field>label{font-size:12px;font-weight:700;color:#46515e}
.optional-note{font-weight:400;color:#87919c}
.category-tree-trigger{width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid #cfd7e1;border-radius:7px;padding:12px;background:#fff;color:#33404c;cursor:pointer;text-align:left}
.category-tree-dropdown{position:absolute;left:0;right:0;top:70px;z-index:30;max-height:380px;overflow:auto;background:#fff;border:1px solid #cfd7e1;border-radius:9px;box-shadow:0 12px 30px rgba(25,35,45,.14);padding:8px}
.category-tree-clear{width:100%;border:0;border-bottom:1px solid #eceff3;background:#fff8eb;color:#8a5b25;padding:11px;text-align:left;font-weight:700;cursor:pointer}
.category-tree-row{display:flex;align-items:center;min-height:36px}
.category-tree-toggle{width:30px;height:30px;border:0;background:transparent;color:#946737;font-size:18px;cursor:pointer}
.category-tree-spacer{width:30px}
.category-tree-choice{flex:1;border:0;background:transparent;padding:8px 6px;text-align:left;cursor:pointer;color:#33404c;border-radius:5px}
.category-tree-choice:hover{background:#f5f1eb;color:#6f4724}
.category-tree-children{padding-left:18px;border-left:1px solid #eee4d7;margin-left:14px}
.category-tree-help{color:#7c8792;font-size:11px;line-height:1.45}
.public-location-tools{margin-top:15px}
.location-actions-row{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}
.location-map-button{border:0;border-radius:6px;background:#946737;color:#fff;font-weight:700;padding:10px 14px;cursor:pointer}
.location-actions-row span{font-size:12px;color:#73808d}
.public-location-map{height:360px;border-radius:10px;border:1px solid #d5dde6;overflow:hidden;background:#eef2f5}
.location-map-help{display:block;margin-top:8px;color:#77838e}
@media(max-width:700px){.category-tree-dropdown{top:68px}.public-location-map{height:280px}.location-actions-row{align-items:flex-start;flex-direction:column}}

/* ETAP 6.3 – aktywacja konta / edycja / wyświetlenia */
.create-account-option{padding:12px;border:1px solid #e5d8c7;border-radius:8px;background:#fbf7f1}.create-account-option span{display:grid;gap:3px}.create-account-option small{font-weight:400;color:#6f7882}.activation-card{max-width:520px;margin:0 auto}.account-success{background:#e6f5ea;border:1px solid #bcdcc5;color:#27653b;padding:12px;border-radius:8px;margin-bottom:12px}.product-views-box{display:flex;align-items:center;gap:12px;padding:14px;background:#f7f3ee;border-left:3px solid #946737;margin:12px 0}.product-views-icon{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:#946737;color:#fff}.product-views-box div{display:grid}.product-views-box small{color:#74695f}.product-views-box strong{font-size:24px;color:#5a3c22}


/* =========================================================
   ETAP 6.3.1 – poprawione drzewko kategorii i mapa
   ========================================================= */

/* ---------- DRZEWKO KATEGORII ---------- */
.public-category-tree-field{
  position:relative;
  display:grid;
  gap:8px;
  width:100%;
  min-width:0;
}
.category-field-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.category-field-head label{
  font-size:12px;
  font-weight:700;
  color:#46515e;
}
.category-field-hint{
  font-size:11px;
  color:#7b8792;
}
.optional-note{
  color:#946737;
  font-weight:500;
}
.category-tree-trigger{
  appearance:none;
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 14px;
  border:1px solid #cbd5df;
  border-radius:8px;
  background:#fff;
  color:#263442;
  font:inherit;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(20,30,40,.03);
}
.category-tree-trigger:hover,
.category-tree-trigger[aria-expanded="true"]{
  border-color:#a87948;
  box-shadow:0 0 0 3px rgba(148,103,55,.10);
}
.category-trigger-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.category-trigger-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  border-radius:6px;
  background:#f5eee6;
  color:#946737;
  font-size:14px;
}
.category-trigger-left [data-category-label]{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.category-trigger-arrow{
  color:#946737;
  font-size:20px;
}
.category-tree-dropdown{
  position:absolute;
  left:0;
  right:0;
  top:76px;
  z-index:1000;
  background:#fff;
  border:1px solid #d7dee6;
  border-radius:12px;
  box-shadow:0 20px 45px rgba(25,35,45,.18);
  overflow:hidden;
}
.category-tree-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 15px;
  border-bottom:1px solid #edf0f3;
  background:#fafbfc;
}
.category-tree-top strong{
  font-size:13px;
  color:#2e3a46;
}
.category-tree-close{
  width:30px;
  height:30px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#73808b;
  font-size:22px;
  cursor:pointer;
}
.category-tree-close:hover{background:#eef1f4}
.category-tree-clear{
  width:calc(100% - 16px);
  margin:8px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #ecd9bd;
  border-radius:8px;
  background:#fff8ed;
  color:#795020;
  padding:10px 12px;
  text-align:left;
  cursor:pointer;
}
.category-tree-clear>span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#946737;
  color:#fff;
  font-weight:800;
}
.category-tree-clear div{display:grid;gap:2px}
.category-tree-clear strong{font-size:12px}
.category-tree-clear small{font-size:10px;color:#8b7257}
.category-tree-scroll{
  max-height:360px;
  overflow:auto;
  padding:5px 8px 10px;
}
.category-tree-node{display:block}
.category-tree-row{
  display:flex;
  align-items:center;
  min-height:38px;
}
.category-tree-toggle,
.category-tree-spacer{
  width:32px;
  flex:0 0 32px;
}
.category-tree-toggle{
  height:32px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#946737;
  font-size:18px;
  cursor:pointer;
}
.category-tree-toggle:hover{background:#f6f1eb}
.category-tree-choice{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#34414d;
  padding:8px 9px;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.category-tree-choice:hover{
  background:#f7f3ee;
  color:#6d4524;
}
.category-dot{
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#c8ad8b;
}
.category-tree-children{
  margin-left:15px;
  padding-left:10px;
  border-left:1px solid #eadfce;
}
.category-tree-help{
  color:#77838f;
  font-size:11px;
}

/* ---------- LEAFLET: niezbędne reguły awaryjne ---------- */
.leaflet-container{
  position:relative;
  overflow:hidden;
  outline:0;
  background:#dfe8ef;
  font-family:inherit;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas{
  position:absolute;
  left:0;
  top:0;
}
.leaflet-container .leaflet-control{
  position:relative;
  z-index:800;
  pointer-events:auto;
}
.leaflet-top,.leaflet-bottom{
  position:absolute;
  z-index:1000;
  pointer-events:none;
}
.leaflet-top{top:0}
.leaflet-right{right:0}
.leaflet-bottom{bottom:0}
.leaflet-left{left:0}
.leaflet-control{
  float:left;
  clear:both;
}
.leaflet-right .leaflet-control{float:right}
.leaflet-top .leaflet-control{margin-top:10px}
.leaflet-left .leaflet-control{margin-left:10px}
.leaflet-right .leaflet-control{margin-right:10px}
.leaflet-bottom .leaflet-control{margin-bottom:10px}
.leaflet-tile{
  visibility:hidden;
}
.leaflet-tile-loaded{visibility:inherit}
.leaflet-zoom-animated{transform-origin:0 0}

/* ---------- MAPA ---------- */
.public-location-tools{
  margin-top:18px;
  padding:16px;
  border:1px solid #dce3ea;
  border-radius:12px;
  background:#fafbfc;
}
.location-actions-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.location-map-button{
  appearance:none;
  border:0;
  border-radius:7px;
  background:#946737;
  color:#fff;
  padding:11px 15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(80,50,20,.15);
}
.location-map-button:hover{background:#7f572f}
.location-actions-row span{
  font-size:12px;
  color:#6f7c88;
}
.public-location-map{
  position:relative!important;
  width:100%!important;
  height:360px!important;
  min-height:360px!important;
  max-width:100%!important;
  border:1px solid #cfd8e1;
  border-radius:10px;
  overflow:hidden!important;
  background:#dfe8ef;
  isolation:isolate;
}
.public-location-map .leaflet-map-pane,
.public-location-map .leaflet-tile-pane,
.public-location-map .leaflet-overlay-pane,
.public-location-map .leaflet-shadow-pane,
.public-location-map .leaflet-marker-pane,
.public-location-map .leaflet-tooltip-pane,
.public-location-map .leaflet-popup-pane{
  position:absolute!important;
  left:0!important;
  top:0!important;
}
.public-location-map .leaflet-tile{
  width:256px!important;
  height:256px!important;
  max-width:none!important;
  max-height:none!important;
}
.public-location-map img{
  max-width:none!important;
}
.location-map-help{
  display:block;
  margin-top:9px;
  color:#78848f;
  font-size:11px;
}

@media(max-width:700px){
  .category-field-head{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }
  .category-tree-dropdown{
    position:fixed;
    left:10px;
    right:10px;
    top:80px;
    bottom:20px;
    max-height:none;
  }
  .category-tree-scroll{
    max-height:calc(100vh - 245px);
  }
  .public-location-tools{
    padding:10px;
  }
  .location-actions-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .public-location-map{
    height:300px!important;
    min-height:300px!important;
  }
}

/* ETAP 6.3.2 */
.category-hero-v573{padding:30px 0 22px!important}.category-hero-v573 .public-wrap,.category-legacy-search .public-wrap,.category-listing-v573>.public-wrap{max-width:1460px!important;width:calc(100% - 48px)!important}.category-hero-inner{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:30px!important}.category-hero-copy{flex:1 1 auto;min-width:0;max-width:calc(100% - 430px)}.category-hero-v573 h1{max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}.category-hero-actions{flex:0 0 auto;margin:0!important;padding-bottom:2px}.search-account-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;box-sizing:border-box}.favorite-toggle{width:42px;height:38px;border:1px solid #dbcbb9;border-radius:5px;background:#fff;color:#946737;font-size:22px;line-height:1;cursor:pointer}.favorite-toggle:hover,.favorite-toggle.is-favorite{background:#946737;color:#fff;border-color:#946737}.favorite-product-button{cursor:pointer;border:0}.favorite-product-button.is-favorite{background:#754c28!important}.machine-row-actions{display:flex!important;align-items:center!important;gap:9px!important}.favorites-page{background:#f4f6f8;padding:32px 0 55px}.favorites-head{margin-bottom:20px}.favorites-head h1{margin:4px 0;font-size:34px;color:#30271f}.favorites-head p{color:#6c7883}.favorites-empty{background:#fff;border:1px solid #dfe5eb;border-radius:10px;padding:34px;text-align:center}.newsletter-wrap{margin-top:28px}.newsletter-box{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:24px;margin:34px 0 20px;padding:28px 34px;border:1px solid #d9d9d9;background:#fff}.newsletter-icon{display:flex;align-items:center;justify-content:center;width:110px;height:110px;border:5px solid #aaa;border-radius:50%;color:#946737;font-size:56px;opacity:.7}.newsletter-content h2{margin:0 0 12px;font-size:25px;font-weight:500;color:#161616}.newsletter-form{display:grid;grid-template-columns:minmax(0,1fr) auto;max-width:720px}.newsletter-form input{min-width:0;height:44px;padding:0 14px;border:1px solid #ccc;font:inherit}.newsletter-form button{border:0;background:#946737;color:#fff;min-width:130px;padding:0 18px;font-weight:700;letter-spacing:.04em;cursor:pointer}.newsletter-content>p{max-width:760px;margin:18px 0 0;font-size:11px;line-height:1.55;color:#333}.newsletter-msg{margin:0 0 9px;padding:8px 10px;border-radius:5px;font-size:12px}.newsletter-msg.success{background:#e6f5ea;color:#27653b}.newsletter-msg.error{background:#fdeaea;color:#9f2929}.retry-search{display:none!important}@media(max-width:980px){.category-hero-inner{align-items:flex-start!important;flex-direction:column!important;gap:14px!important}.category-hero-copy{max-width:100%}.category-hero-actions{display:flex!important}}@media(max-width:700px){.category-hero-v573 .public-wrap,.category-legacy-search .public-wrap,.category-listing-v573>.public-wrap{width:calc(100% - 20px)!important}.category-hero-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr!important}.category-hero-actions .search-add-offer{grid-column:1/-1}.newsletter-box{grid-template-columns:1fr;padding:20px}.newsletter-icon{display:none}.newsletter-content h2{font-size:21px}.newsletter-form{grid-template-columns:1fr}.newsletter-form button{height:44px}}

.announcement-submit-success{
 margin:22px auto;padding:18px 22px;border-left:5px solid #966737;
 background:#fff8ec;border-radius:7px;box-shadow:0 2px 10px rgba(0,0,0,.06);
 display:flex;flex-direction:column;gap:5px;color:#3d3025
}
.announcement-submit-success strong{font-size:18px;color:#7b522d}
.announcement-submit-success span{font-size:14px;line-height:1.5}


/* =========================================================
   ETAP 6.3.4 – poprawki widoku kategorii i formularza
   ========================================================= */

/* KATEGORIA: bez kolorowego tła pod H1 */
.category-hero-v573{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding-top:22px!important;
  padding-bottom:18px!important;
}
.category-hero-v573 .public-wrap,
.category-hero-inner{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.category-hero-v573::before,
.category-hero-v573::after,
.category-hero-inner::before,
.category-hero-inner::after{
  display:none!important;
}
.category-hero-copy{
  background:transparent!important;
  border:0!important;
  padding:0!important;
}
.category-hero-v573 h1{
  margin-top:2px!important;
  color:#30271f!important;
}
.category-hero-v573 p{
  color:#7b7065!important;
}

/* Okruszki */
.breadcrumbs,
.breadcrumb,
.public-breadcrumbs,
.breadcrumbs-v57,
.category-breadcrumbs{
  font-size:14px!important;
  line-height:1.55!important;
}
.breadcrumbs a,
.breadcrumb a,
.public-breadcrumbs a,
.breadcrumbs-v57 a,
.category-breadcrumbs a{
  font-size:14px!important;
}

/* Lewa kolumna - Kategorie ogłoszeń */
.category-sidebar,
.category-tree-sidebar,
.categories-sidebar,
.sidebar-categories,
.category-listing-sidebar{
  font-size:14px!important;
}
.category-sidebar a,
.category-tree-sidebar a,
.categories-sidebar a,
.sidebar-categories a,
.category-listing-sidebar a{
  font-size:14px!important;
  line-height:1.5!important;
}
.category-sidebar h3,
.category-tree-sidebar h3,
.categories-sidebar h3,
.sidebar-categories h3,
.category-listing-sidebar h3{
  font-size:16px!important;
}

/* Publiczne drzewko kategorii w formularzu */
.public-category-tree-field{
  position:relative!important;
  z-index:40;
}
.category-tree-trigger{
  width:100%!important;
  min-height:48px!important;
  padding:0 14px!important;
  border:1px solid #c8d2dc!important;
  border-radius:8px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  cursor:pointer!important;
}
.category-tree-dropdown[hidden]{
  display:none!important;
}
.category-tree-dropdown{
  display:block;
  position:absolute!important;
  top:76px!important;
  left:0!important;
  right:0!important;
  z-index:9999!important;
  background:#fff!important;
  border:1px solid #d1dae3!important;
  border-radius:10px!important;
  box-shadow:0 18px 40px rgba(20,30,40,.18)!important;
}
.category-tree-scroll{
  max-height:360px!important;
  overflow:auto!important;
}
.category-tree-row{
  display:flex!important;
  align-items:center!important;
}
.category-tree-choice{
  flex:1!important;
  text-align:left!important;
  border:0!important;
  background:transparent!important;
  padding:9px 8px!important;
  cursor:pointer!important;
}
.category-tree-choice:hover{
  background:#f6f1eb!important;
}
.category-tree-toggle{
  width:34px!important;
  height:34px!important;
  border:0!important;
  background:transparent!important;
  color:#946737!important;
  cursor:pointer!important;
}
.category-tree-children[hidden]{
  display:none!important;
}

/* Mapa */
.public-location-map{
  position:relative!important;
  width:100%!important;
  height:360px!important;
  min-height:360px!important;
  overflow:hidden!important;
  background:#dbe5ed!important;
  border-radius:10px!important;
}
.public-location-map .leaflet-container{
  width:100%!important;
  height:100%!important;
}
.public-location-map img{
  max-width:none!important;
}
.korbanek-map-marker{
  background:transparent!important;
  border:0!important;
}
.korbanek-map-pin{
  width:40px;
  height:48px;
  position:relative;
  background:#966737;
  border:3px solid #fff;
  border-radius:50% 50% 50% 8px;
  transform:rotate(-45deg);
  box-shadow:0 3px 8px rgba(0,0,0,.28);
}
.korbanek-map-pin span{
  position:absolute;
  inset:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#fff;
  color:#966737;
  font-size:18px;
  font-weight:800;
  transform:rotate(45deg);
}
.map-load-error{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:25px;
  color:#5f6b76;
  font-size:14px;
}

/* nie pokazuj starego beżowego bloku pod hero kategorii */
.category-hero-actions{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

@media(max-width:700px){
  .breadcrumbs,
  .breadcrumb,
  .public-breadcrumbs,
  .breadcrumbs-v57,
  .category-breadcrumbs,
  .breadcrumbs a,
  .breadcrumb a,
  .public-breadcrumbs a,
  .breadcrumbs-v57 a,
  .category-breadcrumbs a{
    font-size:13px!important;
  }
  .public-location-map{
    height:300px!important;
    min-height:300px!important;
  }
}


/* =========================================================
   ETAP 6.3.5 – FINALNE poprawki kategorii i formularza
   ========================================================= */

/* Usuń całe beżowe tło z hero kategorii i bloku akcji */
.category-hero-v573,
.category-hero-v573 .public-wrap,
.category-hero-inner,
.category-hero-copy,
.category-hero-actions,
.category-page-hero,
.category-header,
.category-head,
.category-title-box,
.category-actions-box,
.category-top,
.category-top-actions{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}

/* Usuń brązową belkę po lewej */
.category-hero-v573,
.category-page-hero,
.category-header,
.category-head,
.category-title-box,
.category-actions-box{
  border-left:0!important;
  border-right:0!important;
  border-top:0!important;
  border-bottom:0!important;
}

/* Gdy tło jest na bezpośrednich dzieciach hero */
.category-hero-v573 > *,
.category-hero-v573 .public-wrap > *{
  box-shadow:none!important;
}
.category-hero-v573 .category-hero-copy,
.category-hero-v573 .category-hero-actions{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* H1 zostaje duży, bez tła */
.category-hero-v573 h1,
.category-page-hero h1,
.category-header h1{
  background:transparent!important;
  color:#30271f!important;
  margin-top:2px!important;
}

/* Drzewko: dropdown musi fizycznie pojawiać się nad formularzem */
.public-category-tree-field{
  position:relative!important;
  z-index:5000!important;
  overflow:visible!important;
}
.add-step-card{
  overflow:visible!important;
}
.category-tree-trigger{
  position:relative!important;
  z-index:5001!important;
}
.category-tree-dropdown{
  position:absolute!important;
  display:block;
  top:100%!important;
  left:0!important;
  right:0!important;
  margin-top:6px!important;
  z-index:99999!important;
  max-height:430px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #d3dbe3!important;
  border-radius:10px!important;
  box-shadow:0 18px 46px rgba(0,0,0,.20)!important;
}
.category-tree-dropdown[hidden]{
  display:none!important;
}
.category-tree-scroll{
  max-height:350px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.category-tree-children[hidden]{
  display:none!important;
}

/* Mapa: wymuś poprawne wymiary i warstwy */
.public-location-tools{
  position:relative!important;
  overflow:visible!important;
}
.public-location-map{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:360px!important;
  min-height:360px!important;
  overflow:hidden!important;
  background:#dce6ee!important;
}
.public-location-map.leaflet-container{
  width:100%!important;
  height:360px!important;
}
.public-location-map .leaflet-pane,
.public-location-map .leaflet-tile-pane,
.public-location-map .leaflet-overlay-pane,
.public-location-map .leaflet-marker-pane,
.public-location-map .leaflet-shadow-pane,
.public-location-map .leaflet-tooltip-pane,
.public-location-map .leaflet-popup-pane{
  position:absolute!important;
  left:0!important;
  top:0!important;
}
.public-location-map .leaflet-tile{
  width:256px!important;
  height:256px!important;
  max-width:none!important;
  max-height:none!important;
}
.public-location-map img{
  max-width:none!important;
}
@media(max-width:700px){
  .public-location-map,
  .public-location-map.leaflet-container{
    height:300px!important;
    min-height:300px!important;
  }
  .category-tree-dropdown{
    position:fixed!important;
    top:90px!important;
    left:10px!important;
    right:10px!important;
    bottom:20px!important;
    margin:0!important;
    max-height:none!important;
  }
  .category-tree-scroll{
    max-height:calc(100vh - 250px)!important;
  }
}

/* ETAP 6.3.6 – przypomnienie hasła */
.forgot-password-link{
  display:inline-block;
  margin-top:-4px;
  color:#946737;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.forgot-password-link:hover{text-decoration:underline}
.account-back-link{
  color:#946737;
  font-weight:700;
  text-decoration:none;
}

/* ETAP 6.3.9 - newsletter + CMP cookies */
.newsletter-icon{border:0!important;border-radius:0!important;width:110px!important;height:90px!important;font-size:0!important;opacity:1!important;color:#946737!important}
.newsletter-icon svg{width:88px;height:88px;display:block;stroke:currentColor}
.cookie-settings-trigger{border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
.cmp-backdrop{position:fixed;inset:0;background:rgba(16,24,32,.68);z-index:99990;display:none;align-items:center;justify-content:center;padding:20px}
.cmp-backdrop.is-open{display:flex}
.cmp-dialog{width:min(730px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.28);color:#202833}
.cmp-head{display:flex;gap:16px;align-items:flex-start}.cmp-cookie-icon{width:52px;height:52px;border-radius:15px;background:#f3e8da;display:grid;place-items:center;font-size:28px;flex:0 0 auto}.cmp-title{margin:0 42px 6px 0;font-size:27px}.cmp-intro{margin:0;color:#5d6975;line-height:1.5}.cmp-close{position:absolute;right:25px;top:20px;border:0;background:none;font-size:30px;color:#66717c;cursor:pointer}.cmp-dialog{position:relative}.cmp-options{margin:22px 0 16px;border:1px solid #dbe2e8;border-radius:16px;overflow:hidden}.cmp-row{display:grid;grid-template-columns:1fr auto;gap:18px;padding:15px 17px;border-bottom:1px solid #e4e9ed}.cmp-row:last-child{border-bottom:0}.cmp-row strong{display:block;margin-bottom:3px}.cmp-row small{display:block;color:#63707c;line-height:1.35}.cmp-row input{width:22px;height:22px;accent-color:#a66d32}.cmp-policy{display:inline-block;color:#946737;text-decoration:underline;margin:2px 0 18px}.cmp-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.cmp-btn{min-height:43px;border-radius:11px;padding:0 18px;font-weight:700;cursor:pointer;border:1px solid #946737}.cmp-btn.reject{background:#eef2f4;border-color:#eef2f4;color:#26313a}.cmp-btn.save{background:#fff;color:#946737}.cmp-btn.accept{background:#946737;color:#fff}.cmp-floating{margin-left:70px;position:fixed;left:18px;bottom:18px;z-index:99980;width:48px;height:48px;border-radius:50%;border:1px solid #d6c2ad;background:#fff;color:#946737;box-shadow:0 5px 18px rgba(0,0,0,.18);font-size:22px;cursor:pointer}
@media(max-width:650px){.cmp-dialog{padding:21px 17px;border-radius:17px}.cmp-title{font-size:22px}.cmp-cookie-icon{width:44px;height:44px}.cmp-actions{display:grid;grid-template-columns:1fr}.cmp-btn{width:100%}.cmp-row{padding:13px}.cmp-backdrop{padding:10px}.cmp-floating{left:10px;bottom:10px}}

/* ETAP 6.4.0 – przycisk cookies odsunięty od CallPage */
.cookie-settings-trigger,
.cookie-preferences-trigger,
.cmp-settings-trigger,
.cookie-floating-button,
[data-cookie-settings],
[data-cmp-settings]{
  left:92px!important;
  right:auto!important;
  bottom:18px!important;
  z-index:9997!important;
}
@media(max-width:700px){
  .cookie-settings-trigger,
  .cookie-preferences-trigger,
  .cmp-settings-trigger,
  .cookie-floating-button,
  [data-cookie-settings],
  [data-cmp-settings]{
    left:82px!important;
    bottom:14px!important;
  }
}


/* ETAP 6.4.1 – ikonka cookies przesunięta poza CallPage */
.cookie-settings-trigger,
.cookie-preferences-trigger,
.cmp-settings-trigger,
.cookie-floating-button,
[data-cookie-settings],
[data-cmp-settings]{
    left:190px !important;
    right:auto !important;
    bottom:18px !important;
    z-index:9997 !important;
}
@media (max-width:700px){
    .cookie-settings-trigger,
    .cookie-preferences-trigger,
    .cmp-settings-trigger,
    .cookie-floating-button,
    [data-cookie-settings],
    [data-cmp-settings]{
        left:150px !important;
        right:auto !important;
        bottom:14px !important;
    }
}
