.wppc-puzzle-container {
    width: 260px;
    margin: 15px 0;
    user-select: none;
    position: relative;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wppc-puzzle-track {
    width: 236px;
    height: 130px;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.wppc-puzzle-bg {
    width: 100%;
    height: 100%;
    background-image: url('../images/puzzle-bg.png');
    background-size: 236px 130px;   
    background-position: 0 0;
    background-repeat: no-repeat;
    position: relative;
    opacity: 1;
}

/* The Jigsaw Hole */
.wppc-puzzle-bg::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.75);
    top: 42px;
    right: 35px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.9);
    /* Jigsaw shape using clip-path */
    clip-path: polygon(0% 20%, 20% 20%, 20% 0%, 50% 0%, 50% 20%, 80% 20%, 80% 40%, 100% 40%, 100% 70%, 80% 70%, 80% 80%, 60% 80%, 60% 100%, 30% 100%, 30% 80%, 0% 80%);
}

/* The Jigsaw Piece */
.wppc-puzzle-piece {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 42px;
    left: 0;
    background-image: url('../images/puzzle-bg.png');
    background-size: 236px 130px;
    background-position: -96px -42px; 
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
    clip-path: polygon(0% 20%, 20% 20%, 20% 0%, 50% 0%, 50% 20%, 80% 20%, 80% 40%, 100% 40%, 100% 70%, 80% 70%, 80% 80%, 60% 80%, 60% 100%, 30% 100%, 30% 80%, 0% 80%);
    border: 1px solid rgba(255,255,255,0.6);
}

.wppc-puzzle-slider {
    width: 236px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-top: 12px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

.wppc-slider-text {
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 36px;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.wppc-slider-handle {
    position: absolute;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 50%;
    top: -1px;
    left: -1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.2s, border-color 0.2s;
}

.wppc-slider-handle:hover {
    background: #f1f3f5;
    border-color: #b5bfc9;
}

.wppc-slider-handle span {
    font-size: 18px;
    color: #444;
}

.wppc-puzzle-container.success .wppc-slider-handle {
    background: #28a745;
    border-color: #28a745;
}

.wppc-puzzle-container.success .wppc-slider-handle span {
    color: #fff;
}

.wppc-puzzle-container.success .wppc-slider-text {
    color: #28a745;
    font-weight: 600;
}

.wppc-puzzle-container.success .wppc-puzzle-piece {
    filter: drop-shadow(0 0 5px rgba(40, 167, 69, 0.8));
    border-color: #28a745;
}

@media (max-width: 300px) {
    .wppc-puzzle-container {
        width: 100%;
        box-sizing: border-box;
    }
    .wppc-puzzle-track, .wppc-puzzle-slider {
        width: 100%;
    }
}
