/* Koszyk Boczny - WEB33 — pasek darmowej dostawy (wartości przeniesione 1:1 z dotychczasowego kodu motywu) */
/* --- STICKY TOP BAR DARMOWEJ DOSTAWY --- */
body {
    padding-top: 38px !important;
}
#sticky-shipping-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 38px;
    background: #0d1117;
    color: #ffffff;
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    box-sizing: border-box;
    padding: 0 15px;
}
.sticky-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    width: 100%;
}
.sticky-topbar-text {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-align: center;
}
.sticky-topbar-bar-wrapper {
    flex: 1 1 200px;
    max-width: 260px;
    background: #21262d;
    height: 6px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.sticky-topbar-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* --- OBSŁUGA DLA ZALOGOWANEGO ADMINISTRATORA (WP ADMIN BAR) --- */
body.admin-bar {
    padding-top: 70px !important;
}
body.admin-bar #sticky-shipping-topbar {
    top: 32px !important;
}

@media (max-width: 782px) {
    body.admin-bar {
        padding-top: 94px !important;
    }
    body.admin-bar #sticky-shipping-topbar {
        top: 46px !important;
    }
}

@media (max-width: 767px) {
    body:not(.admin-bar) {
        padding-top: 48px !important;
    }
    #sticky-shipping-topbar {
        height: 48px;
        padding: 4px 12px;
    }
    .sticky-topbar-inner {
        flex-direction: column !important;
        gap: 4px !important;
        width: 100%;
    }
    .sticky-topbar-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
    .sticky-topbar-bar-wrapper {
        flex: none !important;
        width: 100% !important;
        max-width: 240px !important;
        height: 4px !important;
    }
}
