img.wpio-protected-image,
.wpio-protect-wrap img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.wpio-protect-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    overflow: hidden;
}

.wpio-protect-wrap picture,
.wpio-protect-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wpio-protect-wrap .wpio-protect-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.wpio-protect-wrap .wpio-protect-watermark {
    position: absolute;
    z-index: 6;
    pointer-events: none;
}

.wpio-protect-wrap .wpio-protect-watermark-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.wpio-protect-wrap .wpio-watermark-text {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.wpio-protect-wrap .wpio-watermark-image {
    display: block;
    object-fit: contain;
    object-position: center;
    max-width: none;
    height: auto;
}

.wpio-protect-wrap.is-top-left .wpio-protect-watermark {
    top: 10px;
    left: 10px;
    right: auto;
    align-items: flex-start;
}

.wpio-protect-wrap.is-top-right .wpio-protect-watermark {
    top: 10px;
    right: 10px;
    left: auto;
    align-items: flex-end;
}

.wpio-protect-wrap.is-center .wpio-protect-watermark {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
}

.wpio-protect-wrap.is-bottom-left .wpio-protect-watermark {
    left: 10px;
    bottom: 10px;
    right: auto;
    align-items: flex-start;
}

.wpio-protect-wrap.is-bottom-right .wpio-protect-watermark {
    right: 10px;
    bottom: 10px;
    left: auto;
    align-items: flex-end;
}

html.wpio-devtools-open .wpio-protect-wrap img {
    filter: blur(14px) grayscale(1);
}

.wpio-screen-shield {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.wpio-screen-shield .wpio-screen-shield-card {
    width: min(380px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.wpio-screen-shield .wpio-screen-shield-message {
    display: block;
    font-weight: 700;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wpio-screen-shield .wpio-screen-shield-hint {
    display: block;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-transform: none;
    opacity: 0.92;
}

.wpio-screen-shield .wpio-screen-shield-restore {
    appearance: none;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 9px 12px;
    min-height: 36px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wpio-screen-shield .wpio-screen-shield-restore:hover:not(:disabled) {
    background: #dcdcdc;
    border-color: #dcdcdc;
}

.wpio-screen-shield .wpio-screen-shield-restore:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    background: #707070;
    border-color: #707070;
    color: #fff;
}

html.wpio-screen-shield-active .wpio-screen-shield {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.wpio-screen-shield-active .wpio-protect-wrap img {
    filter: blur(18px) grayscale(1) brightness(0.45);
}

html.wpio-screen-capture-active .wpio-protect-wrap,
html.wpio-screen-capture-active img.wpio-protected-image {
    background: #000 !important;
}

html.wpio-screen-capture-active .wpio-protect-wrap img,
html.wpio-screen-capture-active img.wpio-protected-image {
    opacity: 0 !important;
    visibility: hidden !important;
    filter: none !important;
}

html.wpio-screen-capture-active .wpio-protect-wrap .wpio-protect-overlay,
html.wpio-screen-capture-active .wpio-protect-wrap .wpio-protect-watermark {
    display: none !important;
}

html.wpio-screen-capture-active body {
    background: #000 !important;
}

html.wpio-screen-capture-active body > *:not(.wpio-screen-shield) {
    visibility: hidden !important;
}

html.wpio-screen-capture-active body > .wpio-screen-shield,
html.wpio-screen-capture-active body > .wpio-screen-shield * {
    visibility: visible !important;
}
