/* Styles pour le bloc Checklist Cookie - Adapté à la charte graphique */

.checklist-cookie-block {
    background: #efefef;
    border: 1px solid #ea7424;
    border-left: 4px solid #ea7424;
    border-radius: 0;
    padding: 20px;
    margin: 20px 0;
    max-width: 100%;
    font-family: 'Roboto', sans-serif;
}

.checklist-cookie-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #373737;
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.4em;
}

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

.checklist-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(234, 116, 36, 0.15);
}

.checklist-item:last-child {
    border-bottom: none;
}

.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;
    accent-color: #ea7424;
}

.checklist-item span {
    font-size: 1em;
    font-weight: 300;
    color: #373737;
    line-height: 1.4em;
}

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

.checklist-submit {
       display: inline-block;
    padding: 0.625rem 1rem;
    background-color: #ea7424;
    border: none;
    border-radius: 6px;
    color: #FFF;
    font: 400 1rem 'Roboto', sans-serif;
    outline: none;
    cursor: pointer;
}

.checklist-submit:hover,
.checklist-submit:focus {
   background-color: #373737;
}

.checklist-clear {
    display: inline-block;
    margin-top: 15px;
    margin-left: 10px;
    padding: 0.625rem 1rem;
    background-color: #FFF;
    border: 1px solid #373737;
    border-radius: 6px;
    color: #373737;
    font: 400 1rem 'Roboto', sans-serif;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.checklist-clear:hover,
.checklist-clear:focus {
    background-color: #373737;
    color: #FFF;
}

.checklist-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4em;
}

.checklist-message-success {
    background-color: #fff8f3;
    color: #373737;
    border: 1px solid #ea7424;
    border-left: 4px solid #ea7424;
}

.checklist-message-info {
    background-color: #f7f7f7;
    color: #373737;
    border: 1px solid #ddd;
    border-left: 4px solid #373737;
}

.checklist-message-error {
    background-color: #fff8f3;
    color: #721c24;
    border: 1px solid #dc3232;
    border-left: 4px solid #dc3232;
}

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

.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;
    }
}