/* OSP Panel Strażaka - wersja bez JavaScriptu */
header.wp-block-template-part,
.wp-site-blocks > header,
header {
    position: relative;
}

.osp-mobile-panel-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1000 !important;
    min-height: 40px !important;
    padding: 9px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--osp-mobile-panel-bg, #111111) !important;
    color: var(--osp-mobile-panel-color, #ffffff) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.osp-mobile-panel-button:hover,
.osp-mobile-panel-button:focus,
.osp-mobile-panel-button:visited {
    color: var(--osp-mobile-panel-color, #ffffff) !important;
    text-decoration: none !important;
}

.osp-mobile-panel-fallback {
    position: fixed;
    right: 18px;
    top: 12px;
    z-index: 99999;
}

.osp-mobile-panel-fallback .osp-mobile-panel-button {
    position: static !important;
    transform: none !important;
}

body.admin-bar .osp-mobile-panel-fallback {
    top: 44px;
}

@media (max-width: 781px) {
    .osp-mobile-panel-button {
        right: 12px !important;
        min-height: 38px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .osp-mobile-panel-fallback {
        right: 12px;
        top: 10px;
    }

    body.admin-bar .osp-mobile-panel-fallback {
        top: 56px;
    }
}
