.flex_layout.country_switcher {
    --border-color: rgba(0, 0, 0, 0.25);
    --space-between: 4rem;
    --active-color: #a2fa00;
}

/* Subtitle */
.flex_layout.country_switcher .subtitel {
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Tabs */
.flex_layout.country_switcher .tab_container {
    position: relative;
    display: flex;
    border-block: 1px solid var(--border-color);
    margin-top: 3rem;
}
.flex_layout.country_switcher .tab_container .indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--circuit-blue);
    transition: all 0.3s ease;
}

.flex_layout.country_switcher .tab {
    cursor: pointer;
    flex-basis: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    isolation: isolate;
    padding-block: 2rem;
    transition: font-weight 300ms ease-in-out;
}
.flex_layout.country_switcher .tab:not(:last-child)::after {
    content: '';
    height: calc(100% + var(--space-between));
    width: 1px;
    position: absolute;
    top: 0;
    right: 0;
    background-image: linear-gradient(var(--border-color) calc(100% - var(--space-between)), transparent 100%);
}
.flex_layout.country_switcher .tab.active {
    font-weight: var(--weight-bold);
}
.flex_layout.country_switcher .tab::before {
    content: '';
    background-image: linear-gradient(transparent, rgba(0, 58, 81, 0.05));
    inset: 0;
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}
.flex_layout.country_switcher .tab.active::before {
    opacity: 1;
}
.flex_layout.country_switcher .tab .icon {
    width: 2rem;
    height: 2rem;
    position: relative;
    text-align: center;
}
.flex_layout.country_switcher .tab .icon svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.flex_layout.country_switcher .tab .icon svg path{
    fill: var(--tech-green);
}
.flex_layout.country_switcher .tab .title {
    font-size: var(--body-xl);
}

/* Layout */
.flex_layout.country_switcher .region-countries-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 3rem;
}
.flex_layout.country_switcher .region-countries-container > div {
    flex: 1;
}

/* Region image */
.flex_layout.country_switcher .region-image {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}
.flex_layout.country_switcher .region-image.active {
    display: flex;
}
.flex_layout.country_switcher .region-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    object-position: center;
}
 
/* Country list */
.flex_layout.country_switcher .countries-container {
    display: none;
}
.flex_layout.country_switcher .countries-container.active {
    display: block;
}
.flex_layout.country_switcher .country-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.flex_layout.country_switcher .country-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}
.flex_layout.country_switcher .country-container:hover {
    border-color: var(--circuit-blue);
}
.flex_layout.country_switcher .country-container .name {
    flex-grow: 1;
    margin: 0;
}
.flex_layout.country_switcher .country-container .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex_layout.country_switcher .country-container .arrow svg rect {
    transition: all 0.3s;
}
.flex_layout.country_switcher .country-container:hover .arrow svg rect {
    fill: var(--active-color);
}

/* Country link styling */
.flex_layout.country_switcher .country-container a.name-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    /* padding: 1.25rem 0; */
    /* border-bottom: 1px solid var(--border-color); */
    transition: all 0.3s ease;
}

/* .flex_layout.country_switcher .country-container a.name-link:hover {
    border-color: var(--circuit-blue);
}

.flex_layout.country_switcher .country-container a.name-link:hover svg rect {
    fill: var(--active-color);
} */

.flex_layout.country_switcher .country-container .name {
    margin: 0;
    flex-grow: 1;
}


@media only screen and (min-width: 768px) {
    .flex_layout.country_switcher .country-wrapper {
        max-height: 400px;
        overflow-y: scroll;
        padding-right: 20px;
    }
    .flex_layout.country_switcher .country-wrapper::-webkit-scrollbar {
        width: 3px !important;
    }
    
    .flex_layout.country_switcher .country-wrapper::-webkit-scrollbar-track {
        background: var(--border-color) !important;
        border-top: none;
        border-bottom: none;
    }
    
    .flex_layout.country_switcher .country-wrapper::-webkit-scrollbar-thumb {
        background: var(--circuit-blue) !important;
        transition: all 0.3s;
    }
    
    .content_column::-webkit-scrollbar-thumb:hover {
        background: var(--charcoal) !important;
    }
}
/* Mobile */
@media only screen and (max-width: 767px) {
    .flex_layout.country_switcher {
        --space-between: 1rem;
    }
    .flex_layout.country_switcher .tab_container {
        overflow-x: auto;
        overflow-y: hidden;
        margin-inline: -20px;
    }
    .flex_layout.country_switcher .tab {
        padding-block: 1rem;
        flex-shrink: 0;
        gap: 0.5rem;
        padding-inline: 1rem;
    }
    .flex_layout.country_switcher .tab .icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    .flex_layout.country_switcher .tab .title {
        font-size: var(--body-m);
        min-width: max-content;
    }
    .flex_layout.country_switcher .region-countries-container {
        flex-direction: column;
    }
}
