.shop-vidorev-player-placeholder {
    height: 0;
}

#video-player-wrap-control.shop-vidorev-is-sticky {
    position: fixed;
    right: 16px;
    top: 64px; /* Leaves room for typical mobile header */
    width: min(320px, calc(100vw - 32px));
    z-index: 99999;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    aspect-ratio: 16 / 9;
    transform: translateY(-120%);
    animation: shopVidorevSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shopVidorevSlideDown {
    to { transform: translateY(0); }
}

#video-player-wrap-control .shop-vidorev-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    flex: 0 0 26px !important;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    appearance: none;
    -webkit-appearance: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
}

#video-player-wrap-control .shop-vidorev-close svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

#video-player-wrap-control.shop-vidorev-is-sticky .shop-vidorev-close {
    top: 6px;
    right: 6px;
    opacity: 1;
    pointer-events: auto;
}

#video-player-wrap-control .shop-vidorev-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Simplify native controls when sticky to fit small box */
#video-player-wrap-control.shop-vidorev-is-sticky .plyr__controls .plyr__controls__item:not([data-plyr="play"]):not(.plyr__time) {
    display: none !important;
}
#video-player-wrap-control.shop-vidorev-is-sticky .plyr__video-wrapper::after {
    display: none !important;
}
#video-player-wrap-control.shop-vidorev-is-sticky iframe,
#video-player-wrap-control.shop-vidorev-is-sticky .plyr {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px; /* match container inner radius */
}

.shop-vidorev-centered-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.shop-vidorev-centered-content p,
.shop-vidorev-centered-content ul,
.shop-vidorev-centered-content ol {
    text-align: left; /* Keep text readable while centering the block */
}

.shop-vidorev-download-gate {
    background-color: #ffffff;
    color: #000000;
    padding: 24px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    border: 6px solid #00ff00;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.pdf-download-inner {
    max-width: 100%;
    margin: 0 auto;
}

.pdf-download-status-text {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.pdf-timer-bar-wrap {
    height: 4px;
    background-color: #cccccc;
    margin: 0 auto 30px;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.pdf-timer-bar {
    height: 100%;
    width: 0%;
    background-color: #1976d2;
    transition: width 0.25s linear;
}

.pdf-sheet-queue {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
    max-width: 500px;
}

.pdf-sheet-queue li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #555;
}

.pdf-sheet-queue li:last-child {
    border-bottom: none;
}

.pdf-item-label {
    display: flex;
    align-items: center;
}

.pdf-status-wait {
    color: #999;
}

.pdf-download-timer-box.is-ready .pdf-timer-bar-wrap {
    display: none;
}

.pdf-download-timer-box.is-ready .pdf-sheet-queue li {
    border-bottom: none;
    padding: 10px 0;
    justify-content: center;
}

.pdf-download-timer-box.is-ready .pdf-item-label,
.pdf-download-timer-box.is-ready .pdf-status-wait {
    display: none;
}

.pdf-download-timer-box.is-ready .pdf-download-btn-ready {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s;
    width: auto;
    min-width: 200px;
    margin: 10px auto;
    text-align: center;
    box-sizing: border-box;
}

.pdf-download-timer-box.is-ready .pdf-download-btn-ready:hover {
    background: #333333;
    color: #ffffff;
}

@media (max-width: 767px) {
    #video-player-wrap-control.shop-vidorev-is-sticky {
        right: 16px;
        top: 64px; /* Safe area below mobile menu bar */
        width: 240px; /* More compact on mobile to not obscure reading */
        box-shadow: 0 12px 36px rgba(0,0,0,0.6);
        border: 2px solid rgba(255,255,255,0.2);
    }

    .shop-vidorev-download-gate {
        padding: 18px 10px;
        border-width: 4px;
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .pdf-download-status-text {
        font-size: 15px;
        line-height: 1.45;
    }

    .pdf-download-timer-box.is-ready .pdf-download-btn-ready {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 8px 0;
    }
}
