html.msg-sg-active,
html.msg-sg-active * {
    -webkit-tap-highlight-color: transparent !important;
}

html.msg-sg-no-select,
html.msg-sg-no-select body,
html.msg-sg-no-select body *:not(input):not(textarea):not(select):not(option):not([contenteditable="true"]):not([contenteditable=""]) {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

html.msg-sg-protect-images img,
html.msg-sg-protect-images picture,
html.msg-sg-protect-images video,
html.msg-sg-protect-images canvas,
html.msg-sg-protect-images svg {
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

#msg-sg-shield {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    background: rgba(4, 9, 20, 0.98) !important;
    color: #ffffff !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    pointer-events: all !important;
    box-sizing: border-box !important;
}

html.msg-sg-shield-active #msg-sg-shield {
    display: flex !important;
}

html.msg-sg-shield-active body > *:not(#msg-sg-shield):not(#wpadminbar) {
    filter: blur(18px) !important;
    opacity: 0.05 !important;
}

#msg-sg-shield .msg-sg-shield-box {
    max-width: 520px !important;
    width: min(92vw, 520px) !important;
    padding: 28px 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

#msg-sg-shield .msg-sg-shield-title {
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

@media (max-width: 767px) {
    #msg-sg-shield {
        padding: 18px !important;
    }

    #msg-sg-shield .msg-sg-shield-box {
        width: min(92vw, 420px) !important;
        padding: 22px 20px !important;
        border-radius: 18px !important;
    }

    #msg-sg-shield .msg-sg-shield-title {
        font-size: 16px !important;
    }
}

@media print {
    html.msg-sg-active,
    html.msg-sg-active body {
        background: #ffffff !important;
        color: #111111 !important;
    }

    html.msg-sg-active body * {
        visibility: hidden !important;
        display: none !important;
    }

    html.msg-sg-active body::before {
        content: "Protected content. Printing is disabled." !important;
        visibility: visible !important;
        display: flex !important;
        position: fixed !important;
        inset: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 40px !important;
        background: #ffffff !important;
        color: #111111 !important;
        font-family: Arial, sans-serif !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
}
