.ebmo-grid{display:grid;gap:22px}.ebmo-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ebmo-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ebmo-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ebmo-card,.ebmo-panel,.ebmo-offer-form,.ebmo-my-row{background:#151515;border:1px solid #272727;border-radius:14px;color:#fff;overflow:hidden}.ebmo-card-img{display:block;position:relative;aspect-ratio:16/10;background:#222}.ebmo-card-img img{width:100%;height:100%;object-fit:cover;display:block}.ebmo-card-body{padding:16px}.ebmo-card h3{font-size:19px;margin:0 0 10px}.ebmo-card h3 a{color:#fff;text-decoration:none}.ebmo-meta{display:flex;gap:18px;color:#aaa;font-size:14px}.ebmo-price{color:#ff7a24;font-weight:800;font-size:20px;margin:10px 0}.ebmo-btn,.ebmo-offer-form button,.ebmo-panel button,.ebmo-my-row button{display:inline-flex;justify-content:center;align-items:center;background:#ff7626;color:#fff;border:0;border-radius:7px;padding:12px 18px;font-weight:700;text-decoration:none;cursor:pointer}.ebmo-card .ebmo-btn{display:flex;width:100%}.ebmo-badge{position:absolute;top:12px;left:12px;background:#555;color:#fff;padding:6px 9px;border-radius:6px;font-weight:800;font-size:12px}.ebmo-card.is-sold img{filter:grayscale(1) brightness(.55)}.ebmo-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ebmo-panel{padding:24px}.ebmo-panel label,.ebmo-offer-form label{display:block;color:#ddd;font-weight:600;margin-bottom:14px}.ebmo-panel input,.ebmo-offer-form input,.ebmo-offer-form textarea,.ebmo-offer-form select{box-sizing:border-box;width:100%;margin-top:7px;background:#202020;color:#fff;border:1px solid #343434;border-radius:8px;padding:12px 13px}.ebmo-check{display:flex!important;gap:8px;align-items:flex-start;font-weight:400!important}.ebmo-check input{width:auto;margin-top:4px}.ebmo-offer-form{padding:28px}.ebmo-lang-tabs{display:flex;gap:8px;margin:20px 0}.ebmo-lang-tabs button{background:#252525}.ebmo-lang-tabs button.is-active{background:#ff7626}.ebmo-lang-panel{display:none}.ebmo-lang-panel.is-active{display:block}.ebmo-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;margin-top:22px}.ebmo-span-2{grid-column:span 2}.ebmo-submit{margin-top:10px}.ebmo-notice{padding:12px 15px;border-radius:8px;margin:0 0 18px}.ebmo-ok{background:#153b23;color:#bff3ce}.ebmo-err{background:#4a1d1d;color:#ffd0d0}.ebmo-accountbar{background:#151515;color:#fff;padding:12px 15px;border-radius:8px}.ebmo-accountbar a{color:#ff7626}.ebmo-my-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:center;padding:14px;margin:10px 0}.ebmo-single{color:inherit}.ebmo-single-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:30px}.ebmo-single-grid img{border-radius:14px;width:100%;height:auto}.ebmo-price-big{font-size:30px}.ebmo-single dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.ebmo-single dt{color:#999}.ebmo-single dd{margin:0;font-weight:700}.ebmo-badge-single{display:inline-block;background:#555;color:#fff;border-radius:6px;padding:7px 10px;font-weight:800;margin-bottom:14px}.ebmo-description{margin-top:28px}.ebmo-empty{padding:30px;text-align:center;background:#151515;border-radius:12px;color:#aaa}
@media(max-width:900px){.ebmo-cols-3,.ebmo-cols-4,.ebmo-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ebmo-single-grid{grid-template-columns:1fr}.ebmo-my-row{grid-template-columns:1fr 1fr}.ebmo-span-2{grid-column:span 2}}
@media(max-width:600px){.ebmo-auth-grid,.ebmo-cols-2,.ebmo-cols-3,.ebmo-cols-4,.ebmo-fields-grid{grid-template-columns:1fr}.ebmo-span-2{grid-column:auto}.ebmo-offer-form{padding:18px}.ebmo-my-row{grid-template-columns:1fr}}

/* v1.0.2 - równe zdjęcia kart niezależnie od proporcji pliku */
.ebmo-card-img{height:230px!important;aspect-ratio:auto!important;overflow:hidden!important}
.ebmo-card-img img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important}

/* Galeria oferty */
.ebmo-gallery{width:100%;min-width:0}
.ebmo-gallery-main{display:block;width:100%;height:500px;padding:0;border:0;border-radius:14px;overflow:hidden;background:#171717;cursor:zoom-in}
.ebmo-gallery-main img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important}
.ebmo-gallery-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:10px}
.ebmo-gallery-thumb{height:88px;padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:#1b1b1b;cursor:pointer;opacity:.72;transition:.18s ease}
.ebmo-gallery-thumb:hover,.ebmo-gallery-thumb.is-active{opacity:1;border-color:#ff7626}
.ebmo-gallery-thumb img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.ebmo-lightbox{position:fixed;z-index:999999;inset:0;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:30px}
.ebmo-lightbox[hidden]{display:none}
.ebmo-lightbox img{max-width:min(94vw,1600px);max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:8px}
.ebmo-lightbox-close{position:absolute;right:24px;top:18px;width:46px;height:46px;border:0;border-radius:50%;background:#1e1e1e;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.ebmo-offer-form small{display:block;margin-top:7px;color:#999;font-weight:400;line-height:1.45}
@media(max-width:900px){.ebmo-card-img{height:220px!important}.ebmo-gallery-main{height:420px}.ebmo-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.ebmo-card-img{height:210px!important}.ebmo-gallery-main{height:300px}.ebmo-gallery-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.ebmo-gallery-thumb{height:64px}.ebmo-lightbox{padding:12px}.ebmo-lightbox-close{right:12px;top:12px}}


/* v1.0.3 - kolor tekstu przycisków po najechaniu */
.ebmo-btn:hover,.ebmo-btn:focus,.ebmo-offer-form button:hover,.ebmo-offer-form button:focus,.ebmo-panel button:hover,.ebmo-panel button:focus,.ebmo-my-row button:hover,.ebmo-my-row button:focus{color:#E9EBEC!important;text-decoration:none!important}


/* v1.0.6 - Elementor: prawdziwe kwadratowe kafelki 1:1 dla rozmiaru ebmo-square-1000
   Działa również wtedy, gdy oryginały mają różne proporcje. */
.elementor-widget-image-gallery .gallery-size-ebmo-square-1000 .gallery-item .gallery-icon,
.elementor-widget-image-gallery .gallery-size-ebmo-square-1000 .gallery-item .gallery-icon a{
    display:block!important;
    width:100%!important;
    aspect-ratio:1 / 1!important;
    overflow:hidden!important;
}
.elementor-widget-image-gallery .gallery-size-ebmo-square-1000 .gallery-item img,
.elementor-widget-image-gallery img.attachment-ebmo-square-1000,
.elementor-widget-image-gallery img.size-ebmo-square-1000{
    display:block!important;
    width:100%!important;
    height:100%!important;
    aspect-ratio:1 / 1!important;
    object-fit:cover!important;
    object-position:center center!important;
    max-width:none!important;
}

/* Fallback dla galerii, w których Elementor nie zachowuje klasy gallery-size-*,
   ale obraz ma klasę wybranego rozmiaru. */
.elementor-widget-image-gallery .gallery-item:has(img.attachment-ebmo-square-1000) .gallery-icon,
.elementor-widget-image-gallery .gallery-item:has(img.size-ebmo-square-1000) .gallery-icon{
    aspect-ratio:1 / 1!important;
    overflow:hidden!important;
}

/* Elementor Pro / nowy widget Gallery - jeśli pozycja korzysta z wygenerowanego pliku
   ebmo-1000x1000, kafelek pozostaje kwadratem. */
.elementor-widget-gallery .e-gallery-item[style*="ebmo-1000x1000"],
.elementor-widget-gallery .e-gallery-image[style*="ebmo-1000x1000"]{
    aspect-ratio:1 / 1!important;
}
.elementor-widget-gallery .e-gallery-image[style*="ebmo-1000x1000"]{
    background-size:cover!important;
    background-position:center center!important;
}
