#rtShade {
    --rtShade-padding: 20px;
}

#rtShade {
    display: none;
    opacity: 0;
    transition: opacity .25s ease-out;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 320px;
    padding: var(--rtShade-padding);
    background-color: #80808080;
    z-index: 10000;
    background-image: url(/images/ui/pattern_8x8_dark_transparent.png);
    backdrop-filter: blur(20px);
    align-content: center;
    box-sizing: border-box;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    container-type: inline-size;
}

#rtShade.show {
    opacity: 1;
}

/* close button */
#rtShade > div.close {
    cursor: pointer;
    background-image: url(/images/ui/rtVideo.close.svg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    position: fixed;
    aspect-ratio: 1 / 1;
    width: 48px;
    top: 0px;
    right: 0;
    float: right;
    margin: 5px;
}

#rtShadeInner {
    overflow: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
}

#rtShadeInner.pseudoiframe {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    background-color: #ffffff;
    max-width: 960px;
    margin: auto;
    border: 1px solid #808080;
    border-radius: 5px;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.5);
}

#rtShadeInner {
    .ppCart {
        display: none;
    }
    
    div.box.main.ppDiv {
        box-shadow: none;
        border: 0;
        margin: 0;
    }
    
}

@media only screen and (max-width: 360px) {
    #rtShade {
        --rtShade-padding: 5px;
    }
    #rtShadeInner {
        max-height: calc(100vh - 10px);
        max-height: calc(100dvh - 10px);
        container-type: inline-size;
    }
}

img.rtShade-popup-img {
    width: 90cqi;
    height: 90cqi;
    object-fit: contain;
}
