:root {
    --pk-admin-bar-offset: 0px;
    --pk-header-only-height: 0px;
    --pk-header-solid-bg: #fff;
    --pk-header-solid-top: #f3f4f5;
    --pk-header-solid-text: #26313b;
    --pk-header-solid-border: rgba(245,130,24,.42);
}

body.admin-bar { --pk-admin-bar-offset: 32px; }

body.pk-space-header-only #header,
body.pk-space-header-only header.ct-header,
body.pk-space-header-only .ct-header {
    position: fixed !important;
    top: var(--pk-admin-bar-offset) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: var(--pk-header-solid-bg) !important;
    color: var(--pk-header-solid-text) !important;
    box-shadow: 0 8px 30px rgba(15, 24, 35, .12) !important;
}

body.pk-space-header-only #header [data-row="top"],
body.pk-space-header-only header.ct-header [data-row="top"],
body.pk-space-header-only .ct-header [data-row="top"] {
    background: var(--pk-header-solid-top) !important;
    border-color: rgba(20, 30, 40, .08) !important;
}

body.pk-space-header-only #header [data-row]:not([data-row="top"]),
body.pk-space-header-only header.ct-header [data-row]:not([data-row="top"]),
body.pk-space-header-only .ct-header [data-row]:not([data-row="top"]) {
    background: var(--pk-header-solid-bg) !important;
    border-color: var(--pk-header-solid-border) !important;
}

body.pk-space-header-only #header a,
body.pk-space-header-only #header button,
body.pk-space-header-only #header [class*="ct-icon"],
body.pk-space-header-only #header [class*="ct-toggle"],
body.pk-space-header-only #header .ct-header-text,
body.pk-space-header-only header.ct-header a,
body.pk-space-header-only header.ct-header button {
    color: var(--pk-header-solid-text) !important;
}

body.pk-space-header-only #header svg,
body.pk-space-header-only header.ct-header svg {
    fill: currentColor !important;
    stroke: currentColor;
}

.pk-space-header-only-spacer {
    display: block !important;
    width: 100% !important;
    height: var(--pk-header-only-height) !important;
    min-height: var(--pk-header-only-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 782px) {
    body.admin-bar { --pk-admin-bar-offset: 46px; }
}

/* v1.1: treść pełnoekranowego menu mobilnego nie wchodzi pod górną belkę z przyciskiem zamknięcia. */
@media (max-width: 999.98px) {
    body.pk-space-header-only #offcanvas,
    body.pk-space-header-only [data-id="offcanvas"],
    body.pk-space-header-only .ct-panel {
        z-index: 100000 !important;
    }

    body.pk-space-header-only #offcanvas .ct-panel-content,
    body.pk-space-header-only [data-id="offcanvas"] .ct-panel-content,
    body.pk-space-header-only .ct-panel .ct-panel-content {
        padding-top: calc(var(--pk-mobile-menu-offset, 88px) + env(safe-area-inset-top, 0px)) !important;
        box-sizing: border-box;
    }

    body.pk-space-header-only #offcanvas .ct-panel-actions,
    body.pk-space-header-only [data-id="offcanvas"] .ct-panel-actions {
        position: relative;
        z-index: 100002 !important;
    }
}
