.countries-list__custom-width {
    width: 60%;
}

.countries-list__cross-border .col-lg-4 {
    position: relative;
}

.countries-list__cross-border .col-lg-4::before{
    content: "";
    position: absolute;
    bottom: 0;
    right: -50%;
    transform: translateX(-50%);
    margin: 0 auto;
    height: 1px;
    width: calc(100% - 50%);
    background-color: var(--secondary-palette-warm-grey);
}

.countries-list__cross-border .col-lg-4::after{
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    margin: 0 auto;
    height: 100%;
    width: 1px;
    background-color: var(--secondary-palette-warm-grey);
}

.countries-list__card-flag{
    width: 32px;
}

.countries-list__country-name {
    width: calc(100% - 48px);
}

@media only screen and (width >=992px) {
    .countries-list__cross-border .col-lg-4:nth-child(3n)::before,
    .countries-list__cross-border .col-lg-4:nth-child(3n)::after {
        display: none;
    }

    .countries-list__cross-border .col-lg-4:nth-last-child(-n+3)::before {
        display: none;
    }
}

@media only screen and (width <=991px) {
    .countries-list__custom-width {
        width: 100%;
    }
}

@media only screen and (width >=768px) and (width <=991px) {
    .countries-list__cross-border .col-lg-4:nth-child(2n)::before,
    .countries-list__cross-border .col-lg-4:nth-child(2n)::after {
        display: none;
    }

    .countries-list__cross-border .col-lg-4:nth-last-child(-n+2)::before {
        display: none;
    }
}

@media screen and (width <=767.98px) {
    .countries-list__cross-border .col-lg-4::before{
        right: auto;
        transform: none;
        width: calc(100% - 50px);
        margin: 0 auto;
    }

    .countries-list__cross-border .col-lg-4:last-child::before{
        display: none;
    }

    .countries-list__cross-border .col-lg-4::after{
        display: none;
    }
}
