

*,
*::before,
*::after {
    box-sizing: border-box;
}

.accordion__item {
    margin-bottom: 1rem;
}

.accordion__header, .accordion__body {
    width: 100%;
}

.accordion__header, .accordion-fail-message {
    padding: 0.4rem 1rem;
    font-weight: 400;
    color: #222;
    background-color: #607cae;
}

.accordion__header:hover{
    background-color:#363380;
    color:#fff;
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #e5e7eb;
    transition: background-color 0.2s ease-out;
}

.accordion-fail-message {
    width: max-content;
}

.accordion__header::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    content: "";
    filter: brightness(0.5)
}


.accordion__header:hover::after {
    filter: brightness(1)
}

.accordion__item_show > .accordion__header::after {
    transform: rotate(-180deg);
}

.accordion__item_hidden .accordion__header {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion__body {
    padding: 0.75rem 1rem;
    overflow: hidden;
    background: #ffffff;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}

.accordion__item:not(.accordion__item_show) > .accordion__body {
    display: none;
}


.accordion__item .accordion__item[data-child="true"]{
    margin-top: 1rem;
}

.accordion__item[data-child="true"] .accordion__header{
    background-color:#88aaee;
}

.footer{
    padding: 1rem;
    justify-content: center;
    align-items: center;
    display: flex;
}