.block-flow-boxes > .wrapper {
    max-width: 856px;
    border-radius: 8px;
}
.wp-block-post-content .block-flow-boxes > .wrapper { /* wp admin style */
    margin: 0;
}
.block-flow-boxes--header h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    font-family: Open-Sans-700, sans-serif;
}
.block-flow-boxes--text {
    color: var(--grey);
}

.block-flow-boxes-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 17px;
}
.block-flow-boxes-item a {
    position: relative;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 170px;
    border: 1px solid #D7D7D7;
    border-radius: 10px;
    transition: all .02s;

}
.block-flow-boxes-item a:hover {
    border-color: var(--yellow);
    border-width: 2px;
    color: #212721;
}


.block-flow-boxes-items h4 {
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    margin-bottom: 0;
}

.block-flow-boxes-item a:before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    width: 26px;
    height: 54px;
    transition: all .02s;
}
.block-flow-boxes-item a:after {
    content: '';
    position: absolute;
    right: -19px;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    width: 28px;
    height: 56px;
    transition: all .02s;
    z-index: 2;
}

.block-flow-boxes-item:nth-of-type(4) a:after {
    transform: rotate(90deg);
    bottom: -33px;
    top: unset;
    right: 83px;
}

.block-flow-boxes-item:nth-child(5) a:before{
    transform: rotate(90deg);
    top: -16px;
    left: 88px;
}

.block-flow-boxes-item:is(:nth-child(6),:nth-child(7), :nth-child(8)) a:before{
    transform: scaleX(-1);
    left: unset;
    right: -1px;
    top: 53px;
}
.block-flow-boxes-item:is(:nth-child(5),:nth-child(6),:nth-child(7)) a:after{
    transform: scaleX(-1);
    right: unset;
    left: -18px;
    top: 53px;
}
.block-flow-boxes-item:first-of-type a:before {
    display: none;
}
.block-flow-boxes-item:last-of-type a:after {
    display: none;
}

.block-flow-boxes-items {
    grid-template-columns: repeat(3, 1fr);
}
.block-flow-boxes-item a:hover {
    padding: 20px 24px;
}

.block-flow-boxes-item:nth-child(4) { order: 6; }
.block-flow-boxes-item:nth-child(5) { order: 5; }
.block-flow-boxes-item:nth-child(6) { order: 3; }
.block-flow-boxes-item:nth-child(7) { order: 7; }
.block-flow-boxes-item:nth-child(8) { order: 8; }
.block-flow-boxes-item:nth-child(9) { order: 9; }

.block-flow-boxes-item:nth-of-type(3) a:after {
    transform: rotate(90deg);
    bottom: -33px;
    top: unset;
    right: 123px;
}

.block-flow-boxes-item:nth-child(4) a:before {
    transform: rotate(90deg);
    top: -16px;
    left: 122px !important;
}
.block-flow-boxes-item:nth-child(4) a:after{
    transform: scaleX(-1);
    right: unset;
    left: -18px;
    top: 53px;
}
.block-flow-boxes-item:nth-child(5) a:before {
    transform: scaleX(-1);
    left: unset;
    right: -1px;
    top: 53px !important;
}
.block-flow-boxes-item:nth-child(6) a:after {
    transform: rotate(90deg);
    bottom: -33px;
    top: unset;
    right: 123px;
    left: unset;
}
.block-flow-boxes-item:nth-child(7) a:before {
    transform: rotate(90deg);
    top: -16px;
    left: 122px;
}
.block-flow-boxes-item:nth-child(8) a:before {
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 54px;
}
.block-flow-boxes-item:nth-child(7) a:after {
    right: -19px;
    left: unset;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 56px;
}

.block-flow-boxes-item:nth-child(4) a:hover:before,
.block-flow-boxes-item:nth-child(7) a:hover:before {
    top: -18px !important;
}
.block-flow-boxes-item:nth-child(8) a:hover:before {
    left: -4px;
}
@media (max-width: 769px) {
    .block-flow-boxes-items {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }
    .block-flow-boxes-item a {
        padding: 25px;
        min-height: 120px;
    }

    .block-flow-boxes-item {
        order: unset !important;
    }
    .block-flow-boxes-item a:after {
        right: 50% !important;
        left: unset  !important;
        top: calc(100% - 23px)  !important;
        transform: translateX(50%) rotate(90deg) !important;
    }
    .block-flow-boxes-item a:before {
        transform: translateX(-50%) rotate(90deg) !important;
        top: -15px  !important;
        left: 50%  !important;
        right: unset  !important;
    }
    .block-flow-boxes-item:nth-child(4) a:before,
    .block-flow-boxes-item:nth-child(5) a:before {
        top: -15px !important;
        left: 50%  !important;
    }
    .block-flow-boxes-item a:hover:before {
        top: -18px  !important;
    }
}
@media (max-width: 586px) {
    .block-flow-boxes-items h4 {
        font-size: 18px;
        line-height: 28px; 
    }
}