#locale-container {
    margin:0;
    padding:0;
}
#locale-container h2 {
    font-size:2rem;
}
#locale-selector-bg,
#locale-selector {
    display: none;
}

#locale-selector-bg.visible,
#locale-selector.visible {
    display: block;
}

#locale-selector-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 2147483646;
    background: rgba(247,193,189,.85);
    border: 1px solid black;
    cursor: pointer;
}

#locale-selector {
    position: fixed;
    z-index: 2147483647;
    top: 120px;
    right: 0;
    left: 0;
    width: 400px;
    max-width: 90vw;
    background: white;
    margin: auto;
}

#locale-selector .close-icon {
    background: url('../Icons/close_icon.svg') no-repeat center center;
    background-size: 14px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border: none;
}

#locale-container ul,
#locale-container li {
    list-style: none outside;
}

#locale-container .flag {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    margin-top:-1px;
    background-color: white;
    vertical-align: middle;
    overflow: hidden;
    object-fit: none;
    box-shadow: 0 0 3px rgba(0,0,0,.3);
    border:0px solid #f2f2f2;
    transition: all .1s ease-in-out;
}

#locale-container .country-selector {
    display: block;
    padding: 5px 0;
    transition: all .3s cubic-bezier(.77,0,.175,1)
}

#locale-container .country-selector.current {
    font-weight: bold;
    background: #f7dddf;
    padding-left:10px;
}

#locale-container .country-selector:hover {
    background: #db0c16;
    color:white;
    padding-left:10px;
}

#locale-container .country-selector:hover > .flag {
    border:2px solid #f2f2f2;
    transition: all .1s ease-in-out;
}

img.flag[src$="Flags/us.webp"] {
    content: url(/template/icons/world_icon.png);
    object-fit: contain !important;
}

/* Custom styling */
.frame-inner header {
    border-bottom: 1px solid #c3c3c3;
    margin-bottom:2rem;
}

#locale-container .suggested {
    background: white;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border: 1px solid #c3c3c3;
}

.locales {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap:1rem;
}

@media screen and (max-width: 768px) {
    .locales {
        display: flex;
        flex-direction: column;
    }
}

#locale-selector {
    padding:2rem;
    border-radius:6px;
    box-shadow: 1px 1px 4px rgba(0,0,0,.3);
}
#locale-selector.pop-up .inner > #locale-container .locales {
    display:flex;
    flex-direction: column;
}

#locale-selector.pop-up .inner > #locale-container .locales h2:after {
    display:none;
}

#locale-selector button {
    float:right;
    margin-top:1rem;
}
