html.pfr-bloquear-selecao body,
html.pfr-bloquear-selecao body *:not(input):not(textarea):not(select):not([contenteditable="true"]):not(.pfr-permitir-copia) {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

html.pfr-devtools-bloqueado {
    overflow: hidden !important;
}

html.pfr-devtools-bloqueado body > *:not(#pfr-devtools-overlay) {
    visibility: hidden !important;
    pointer-events: none !important;
}

#pfr-devtools-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #111827;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
}

#pfr-devtools-overlay[hidden] {
    display: none !important;
}

#pfr-devtools-overlay .pfr-devtools-caixa {
    width: min(560px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

#pfr-devtools-overlay strong {
    display: block;
    margin-bottom: 10px;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.15;
}

#pfr-devtools-overlay p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

@media print {
    html.pfr-bloquear-impressao body {
        visibility: hidden !important;
    }

    html.pfr-bloquear-impressao body::before {
        content: "Impressão desativada neste site.";
        visibility: visible !important;
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        font: 700 22px/1.4 system-ui, sans-serif;
        color: #000000;
    }
}
