.header-account-wrapper {
    display: flex;
    position: relative;
    float: right;
}

#select-container {
    width: 30px;
    height: 20px;
    transform: translateX(-70%);
    border-radius: 10px;
    margin-left: 1rem;
    overflow: hidden;
    transition: height 0.2s ease-in-out, border-radius 0.2s ease-in-out, box-shadow 0.2s ease-in-out;

    &:hover {
        height: 60px; /* Can't use height: auto & transition effect */
        border-radius: 20px;
        box-shadow: 0px 7px 10px rgba(79, 104, 113, 0.30);
    }
    ul {
        list-style-type: none;
        position: relative;
        li {
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
            &:first-child {
                img {
                    cursor: default;
                }
            }
            img {
                width: 18px;
                height: 18px;

                display: block;
                left: 50%;
                transform: translate(-170%, -70%);
                margin-bottom: 6px;

                border-radius: 50%;
                border: 1px solid #FFFFFF;
                box-shadow: 0px 0px 4px rgba(79, 104, 113, 0.30);

                cursor: pointer;
                transition: all 0.1s ease-in-out;
                &:hover {
                    box-shadow: 0px 4px 8px rgba(79, 104, 113, 0.30);
                    transform: translate(-170%, -70%) scale(1.05);
                }
            }
        }
    }
}

[tooltip] {
    position: relative;
    font-weight: bold;
}

/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
    bottom: 50%;
    border-bottom-width: 0;
    border-top-color: #465663;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
    bottom: calc(50% + 5px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before {
    left: -15.5px;
    bottom: 40px;
    transform: translate(-50%, -.5em);
}
[tooltip][flow^="up"]::after {
    left: -15.5px;
    bottom: 45px;
    transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
    top: 70%;
    border-top-width: 0;
    border-bottom-color: #465663;
}
[tooltip][flow^="down"]::after {
    top: calc(70% + 5px);
}
[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
    left: -15.5px;
    transform: translate(-50%, .5em);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
    to {
        opacity: .9;
        transform: translate(-50%, 0);
    }
}

/* FX All The Things */
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
    animation: tooltips-vert 300ms ease-out forwards;
}
