styleguide/components/15-molecules/criteria-card/_criteria-card.scss
.m-criteriaCard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: $color-white;
    border-radius: 8px;

    &:not(.-checked) {
        .m-criteriaCard__checkedIcon {
            display: none;
        }
    }
}

.m-criteriaCard__checkedIcon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    color: var(--secondary-color-green);
    opacity: 0.1;
    pointer-events: none;
    transform: rotate(-12.5deg);
}

.m-criteriaCard__top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.m-criteriaCard__top__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-criteriaCard__criteriaNumber {
    padding: 4px;
    border-radius: 4px;
    background-color: var(--color-grey-6);
    font-size: 12px;
    font-weight: 700;
}

.m-criteriaCard__verification {
    &:empty {
        display: none;
    }

    width: 100%;
    // min-height: 100px;
    border: 1px solid currentColor;
    background-color: var(--color-grey-6);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.4;
    // resize: vertical;

    span {
        font-weight: 700;
    }
}
.m-criteriaCard__text {
    font-size: 10px;
    line-height: 1.6;
    color: var(--text-color);

    a {
        font-weight: 700;
    }
}

.m-criteriaCard__bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.m-criteriaCard__seeTestsLink {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color-1);
    text-decoration: underline;

    &[aria-expanded='true'] {
        .m-criteriaCard__seeTestsLink__chevron {
            transform: rotate(180deg);
        }
    }
}

.m-criteriaCard__seeTestsLink__chevron {
    width: 12px;
    height: 12px;
    transition: transform 220ms $easing-standard;
}

.m-criteriaCard__testListWrapper {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 220ms $easing-standard;

    &:not(.-expanded) {
        grid-template-rows: 0fr;
    }
}

.m-criteriaCard__testList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.m-criteriaCard__test {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    font-size: 10px;
    line-height: 1.2;
    color: var(--color-grey-2);
    text-align: left;
}

.m-criteriaCard__test__number {
    padding: 4px;
    border-radius: 4px;
    background-color: var(--color-grey-6);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    &[data-status='C'] {
        background-color: var(--secondary-color-green-soft);
        color: var(--secondary-color-green);
    }

    &[data-status='NC'] {
        background-color: var(--secondary-color-red-soft);
        color: var(--secondary-color-red);
    }

    &[data-status='NA'] {
        background-color: var(--secondary-color-orange-soft);
        color: var(--secondary-color-orange);
    }
}

.m-criteriaCard__test__content {
    p {
        &:not(:last-child) {
            margin-bottom: 4px;
        }
    }

    a {
        font-weight: 700;
    }
}
