/* Styles pour le bloc Checklist Cookie */

.checklist-cookie-block {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    max-width: 600px;
}

.checklist-cookie-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3em;
}

.checklist-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item {
    padding: 8px 0;
}

.checklist-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checklist-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-item span {
    font-size: 1em;
    color: #555;
}

.checklist-item:hover span {
    color: #000;
}

.checklist-submit,
.checklist-clear {
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checklist-submit:hover {
    background-color: #005177;
}

.checklist-clear {
    background-color: #dc3232;
    margin-left: 10px;
}

.checklist-clear:hover {
    background-color: #a00;
}

.checklist-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.checklist-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.checklist-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.checklist-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Styles pour l'éditeur WordPress */
.wp-block-checklist-cookie-block-checklist {
    border: 2px dashed #ccc;
}

.wp-block-checklist-cookie-block-checklist .checklist-submit {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .checklist-cookie-block {
        padding: 15px;
    }

    .checklist-submit,
    .checklist-clear {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
}
