.jigsaw-captcha-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.jigsaw-captcha-container.active {
    display: flex;
}

.jigsaw-captcha-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jigsaw-captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.jigsaw-captcha-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.jigsaw-captcha-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.jigsaw-captcha-close:hover {
    color: #333;
}

.jigsaw-canvas-container {
    position: relative;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.jigsaw-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.jigsaw-slider-container {
    position: relative;
    background: #f0f0f0;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.jigsaw-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #45a049);
    border-radius: 20px;
    width: 0;
    transition: width 0.3s;
}

.jigsaw-slider-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 40px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.jigsaw-slider-button:active {
    cursor: grabbing;
}

.jigsaw-slider-button:hover {
    border-color: #4CAF50;
}

.jigsaw-slider-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 40px;
    color: #999;
    font-size: 14px;
    user-select: none;
    pointer-events: none;
}

.jigsaw-captcha-message {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.jigsaw-captcha-message.success {
    color: #4CAF50;
}

.jigsaw-captcha-message.error {
    color: #f44336;
}

.jigsaw-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jigsaw-refresh:hover {
    background: #fff;
    transform: rotate(180deg);
}
