/* ================================================
   WC Gallery Video — Admin / Dokan Styles
   ================================================ */

.wcgv-hidden { display: none !important; }

/* Panel wrapper */
#wcgv-video-panel {
    margin-top: 16px;
    padding: 12px 14px 14px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fafafa;
}

.wcgv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.wcgv-label {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

/* Add button */
.wcgv-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s;
}
.wcgv-add-btn:hover { background: #135e96; color: #fff; }

/* Video list */
.wcgv-video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 32px;
}

/* Individual item */
.wcgv-video-item {
    position: relative;
    width: 90px;
    cursor: grab;
}
.wcgv-video-item:active { cursor: grabbing; }

.wcgv-thumb {
    position: relative;
    width: 90px;
    height: 68px;
    background: #000;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #c3c4c7;
}
.wcgv-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.wcgv-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    pointer-events: none;
}

.wcgv-video-title {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #646970;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 88px;
}

/* Remove button */
.wcgv-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cc1818;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    display: none;
    z-index: 10;
}
.wcgv-video-item:hover .wcgv-remove { display: block; }

/* Sortable placeholder */
.wcgv-sortable-placeholder {
    width: 90px;
    height: 68px;
    border: 2px dashed #2271b1;
    border-radius: 3px;
    background: #f0f6fc;
}

/* Dokan frontend dashboard adjustments */
.dokan-wcgv-wrap #wcgv-video-panel {
    margin-top: 0;
}
