.nml-checklist {
    margin: 40px 0;
    background: var(--color-bg);
}

.nml-checklist__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #889CF1;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    border-radius: 8px;
}

/* ── Header ── */
.nml-checklist__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0 0 8px;
    border-bottom: 1px solid #D5DAFA;
}

.nml-checklist__heading {
    margin: 0!important;
    color: var(--color-text-primary);
}

.nml-checklist__pdf {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(22, 47, 111, 0.04);
    border: 1px solid #D5DAFA;
    border-radius: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: #162F6F;
    text-decoration: none;
    transition: all 0.3s;
}

.nml-checklist__pdf:hover {
    background: #F5F6FA;
    border: 1px solid #889CF1;
}

.nml-checklist__pdf:active {
    background: #EEF0FD;
    border: 1px solid #6281EC;
}

.nml-checklist__pdf svg {
    flex-shrink: 0;
}

/* The PDF button shows in the header on desktop, below the list on mobile. */
.nml-checklist__pdf--bottom {
    display: none;
}

/* ── List ── */
.nml-checklist__list {
    display: flex;
    flex-direction: column;
    gap: 12px!important;
    margin: 0!important;
    padding: 0!important;
    list-style: none!important;
}

.nml-checklist__item {
    padding-left: 0!important;
}

.nml-checklist__item::before {
    display: none;
}

.nml-checklist__item + .nml-checklist__item {
    margin-top: 4px;
}

.nml-checklist__row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nml-checklist__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.nml-checklist__box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #D5DAFA;
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nml-checklist__box svg {
    opacity: 0;
    transition: all 0.3s;
}

/* Hover (Selected: False / Hover) */
.nml-checklist__row:hover .nml-checklist__box {
    border-color: #889CF1;
}

/* Selected: True */
.nml-checklist__input:checked + .nml-checklist__box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.nml-checklist__input:checked + .nml-checklist__box svg {
    opacity: 1;
}

/* Selected: True / Hover */
.nml-checklist__row:hover .nml-checklist__input:checked + .nml-checklist__box {
    background: #0F204D;
    border-color: #0F204D;
}

.nml-checklist__input:focus-visible + .nml-checklist__box {
    outline: 2px solid #0F204D;
    outline-offset: 2px;
}

.nml-checklist__text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #303D60;
}

.nml-checklist__input:checked ~ .nml-checklist__text {
    color: var(--color-text-primary);
}

@media (max-width: 768px) {
    .nml-checklist__card {
        padding: 20px;
    }

    .nml-checklist__heading {
        font-size: 24px;
    }

    .nml-checklist__text {
        font-size: 16px;
    }

    .nml-checklist__box {
        width: 24px;
        height: 24px;
    }

    /* Move the PDF button below the list: hide the header one, show the bottom. */
    .nml-checklist__pdf--top {
        display: none;
    }

    .nml-checklist__pdf--bottom {
        display: flex;
        width: 100%;
        margin-top: 20px;
    }
}
