/* Popup Overlay */
#cpw-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* Popup Box */
#cpw-popup-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
    font-family: inherit;
}

#cpw-popup-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

#cpw-popup-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Close Button */
#cpw-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

#cpw-popup-close:hover {
    color: #f00;
}

/* Input Group */
.cpw-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#cpw-pin-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

#cpw-pin-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

#cpw-check-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#cpw-check-btn:hover {
    background: #005a8c;
}

#cpw-check-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Result Message */
#cpw-result-message {
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}

/* Notice Styling */
.cpw-notice-wrapper {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
