/* ==========================================
   Floating Video
========================================== */

.wcfv-floating-video{
    position:fixed;
    bottom:110px;
    width:100px;
    height:178px;
    border-radius:18px;
    overflow:hidden;
    cursor:pointer;
    z-index:9999;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
    background:#000;
}

.wcfv-floating-video video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ==========================================
   Badge
========================================== */

.wcfv-badge{
    position:absolute;
    top:8px;
    left:50%;
    transform:translateX(-50%);
    background:#000;
    color:#fff;
    font-size:11px;
    font-weight:600;
    padding:5px 10px;
    border-radius:30px;
    white-space:nowrap;
    z-index:10;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
}

/* ==========================================
   Overlay
========================================== */

.wcfv-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:flex-start;
    padding-top:40px;
    z-index:999999;
}

.wcfv-overlay.active{
    display:flex;
}

/* ==========================================
   Popup
========================================== */

.wcfv-popup{
    width:500px;
    max-width:95vw;
    max-height:92vh;
    overflow-y:auto;
    background:#fff;
    border-radius:24px;
    position:relative;
    box-shadow:0 25px 60px rgba(0,0,0,.35);
}

/* ==========================================
   Popup Video
========================================== */

.wcfv-popup video{
    width:100%;
    height:620px;
    display:block;
    object-fit:cover;
    background:#000;
}

/* ==========================================
   Close Button
========================================== */

.wcfv-close{
    position:absolute;
    top:12px;
    right:12px;
    width:40px;
    height:40px;
    line-height:40px;
    text-align:center;
    border-radius:50%;
    background:rgba(0,0,0,.7);
    color:#fff;
    font-size:22px;
    cursor:pointer;
    z-index:20;
    transition:.2s;
}

.wcfv-close:hover{
    transform:scale(1.08);
}

/* ==========================================
   Content
========================================== */

.wcfv-content{
    padding:22px;
}

.wcfv-field{
    margin-bottom:15px;
}

.wcfv-field label{
    display:block;
    margin-bottom:7px;
    font-size:14px;
    font-weight:600;
}

.wcfv-field select,
.wcfv-field input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    background:#fff;
    font-size:14px;
}

/* ==========================================
   Add To Cart
========================================== */

.wcfv-atc-btn{
    width:100%;
    border:none;
    padding:15px;
    border-radius:12px;
    background:#000;
    color:#fff;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    transition:.2s;
}

.wcfv-atc-btn:hover{
    opacity:.92;
}

.wcfv-atc-btn.loading{
    opacity:.6;
    pointer-events:none;
}

/* ==========================================
   Success State
========================================== */

.wcfv-success{
    text-align:center;
    padding:25px;
}

.wcfv-success-icon{
    width:72px;
    height:72px;
    margin:0 auto 16px;
    border-radius:50%;
    background:#28a745;
    color:#fff;
    font-size:34px;
    line-height:72px;
    font-weight:700;
}

.wcfv-success h3{
    margin:10px 0;
    font-size:24px;
}

.wcfv-success p{
    color:#666;
    margin-bottom:20px;
}

.wcfv-success-buttons{
    display:flex;
    gap:10px;
}

.wcfv-success-buttons button{
    flex:1;
    padding:13px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

.wcfv-continue{
    background:#f3f3f3;
}

.wcfv-view-cart{
    background:#000;
    color:#fff;
}

/* ==========================================
   Tablet
========================================== */

@media(max-width:1024px){

    .wcfv-popup{
        width:430px;
    }

    .wcfv-popup video{
        height:520px;
    }

}

/* ==========================================
   Mobile
========================================== */

@media(max-width:768px){

    .wcfv-floating-video{
        width:85px;
        height:150px;
        bottom:90px;
    }

    .wcfv-popup{
        width:92vw;
        border-radius:20px;
    }

    .wcfv-popup video{
        height:420px;
    }

    .wcfv-content{
        padding:18px;
    }

}
