.ls-container {
    position: fixed;
    /* Centered in the gap above the Bridge panel, and never taller than that gap. */
    top: calc((40 * var(--vh) - min(40px, 40 * var(--vh))) / 2);
    height: min(40px, calc(40 * var(--vh)));
    width: min(40px, calc(40 * var(--vh)));
    right: 70px;
    z-index: 999;
}

.ls-container.stand {
    right: 1rem !important;
    top: calc(25* var(--vh) + 1rem) !important;
    width: calc(80* var(--vh));
    height: calc(80* var(--vh))  !important;
}

/* Because the live does not have the environment beam at the top */
.ls-container.stand.live {
    top: calc(25px) !important;
}

.ls-container.mob:not(.stand) {
    /* Same box as .menuButton (top 19px, 40px) so the flag sits on its horizontal line, to its left. */
    top: 19px !important;
    right: 63px !important;
    width: 40px !important;
    height: 40px !important;
}

.ls-container.stand.refreshbtn {
    right: calc(80* var(--vh) + 2rem) !important;
}

.ls-badge-flag {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.ls-badge-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ls-container.pc:not(.static):hover,
.ls-container.mob.touched:not(.static) {
    width: calc(60 * var(--vw)) !important;
    height: auto !important;
    background-color: darkgray;
    border-radius: 10px;
    transition: width 0.5s;
}

.ls-container.mob.touched:not(.static) {
    width: 100px !important;
}

.ls-container .ls-dropdown-container {
    display: none;
}


.ls-container.pc:not(.static):hover .ls-dropdown-container,
.ls-container.mob.touched:not(.static) .ls-dropdown-container {
    display: flex !important;
    flex-direction: column;
}

.ls-container.pc:not(.static):hover .ls-badge-flag,
.ls-container.mob.touched:not(.static) .ls-badge-flag {
    display: none;
}

.ls-dropdown-item {
    display: flex;
    flex-direction: row;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 10px;
    overflow: hidden;
}

.ls-dropdown-item:first-of-type {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.ls-dropdown-item:last-of-type {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


.ls-container.pc .ls-dropdown-item:hover {
    background-color: orangered;
    color: white;
}

.ls-dropdown-item-flag {
    height: 30px;
    width: 30px;
    min-width: 30px;
}

.ls-dropdown-item-code {
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    min-width: 30px;
}

img.spin {
    animation: lng-loading 4s linear infinite;
}

@keyframes lng-loading {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.1;
    }
}