.paragraph--type--text,
.paragraph--type--image,
.paragraph--type--file,
.paragraph--type--step-by-step
{
    margin-bottom: 2rem;
}
@media(min-width:62rem){
    .paragraph--type--text,
    .paragraph--type--image,
    .paragraph--type--file,
    .paragraph--type--step-by-step{
        margin-bottom: 4rem;
    }
}

/* Media image */

.paragraph--type--image{
    background-color: white;
    padding: 2.5rem;
}

.paragraph--type--image > div > div{
    text-align: center;
}

.paragraph--type--image img{
    margin-top: 1.15rem;
    width: 100%;
    height: auto;
}
@media(min-width:48rem){
    .paragraph--type--image img{
        max-width: 48rem;
    }
}

/* Step by step */

.paragraph--type--step-by-step .field_step_by_step_items{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media(min-width:62rem){
    .paragraph--type--step-by-step .field_step_by_step_items{
        display: grid;
        grid-template-columns: 20rem 1fr;
        gap: 2.5rem;
    }
}

.paragraph--type--step-by-step .field_step_by_step_items .list-index{
    display: flex;
    gap: 2px;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
@media(min-width:62rem){
    .paragraph--type--step-by-step .field_step_by_step_items .list-index{
        gap: 1rem;
    }
}

.paragraph--type--step-by-step img{
    width: 100%;
    height: auto;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a{
    display: flex;
    text-decoration: none;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: white;
}
@media(min-width:62rem){
    .paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a{
        padding: 1.125rem 1.5rem;
        box-shadow: var(--box-shadow);
    }
}

.paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a:after{
    content: url('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="18" height="18" rx="9" fill="%23A13636"/><path d="M7.5 12L10.5 9L7.5 6" stroke="white" stroke-width="1.5" stroke-linecap="round"/></svg>');
    display: block;
    margin-top: 0.225rem;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a > div{
    display: flex;
    flex-direction: column;
    font: var(--f-p-big);
    flex-grow: 1;
}
@media(min-width:62rem){
    .paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a > div{
        font: var(--f-p-responsive);
    }
}

.paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a > div > span:first-child{
    font: var(--f-p);
    font-weight: 700;
}
@media(min-width:62rem){
    .paragraph--type--step-by-step .field_step_by_step_items .list-index > li > a > div > span:first-child{
        font: var(--f-p-big);
        font-weight: 700;
    }
}


.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index{
    margin-bottom: 1.5rem;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index button{
    background-color: initial;
    color: var(--c-primary);
    border: 0;
    display: flex;
    cursor: pointer;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--c-primary);
    padding-top: 1.5rem;
    padding-left: 0;
    width: 100%;
    gap: 1rem;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index button > div{
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
    font: var(--f-p-big);
    flex-grow: 1;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index button > div > span:first-child{
    font-weight: 700;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index button svg{
    margin-top: 0.35rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index button.opened svg{
    transform: rotate(180deg);
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index button svg path{
    fill: var(--c-primary);
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index .text-index-content{
    display: none;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index.opened .text-index-content{
    display: block;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index .text-index-content table p{
    font-size: 0.85rem;
    margin-bottom: 0;
}

.paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index .text-index-content p{
    font: var(--f-p);
}
@media(min-width: 48rem){
    .paragraph--type--step-by-step .field_step_by_step_items .list-components .text-index .text-index-content p{
        font: var(--f-p-responsive);
    }
}
