/* MASTER CONTAINER */

.tl-switcher-container.hidden {
    display: none;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.tl-switcher-container {
    position: relative;
    z-index: 1; /*theme specific*/
    line-height: normal;
}

.tl-switcher-container.desktop {
    display: inline-flex;
    align-items: center;
}

.tl-switcher-container.mobile {
    display: block;
}

.tl-custom-position {
    position: absolute;
	z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
    border-radius: 3px;
    background-color: #fff;
}

/* WRAPPERS */

.tl-wrapper {
    position: relative;
}

.tl-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    min-width: 100%;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
    background-color: #fff;
    padding: 16px 15px 17px;
    font-weight: normal;
    color: #000;
}

.tl-dropdown.active {
    display: block;
}

.tl-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
}

.tl-overlay.active {
    display: flex;
}

.tl-overlay .tl-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 400px;
    max-width: 95%;
    min-height: 150px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .15);
    background-color: #fff;
    padding: 25px 5%;
}

/* SWITCHERS */

.tl-switcher {
    position: relative;
}

.tl-switcher form {
    margin: 0;
    overflow: visible;
}

.tl-select {
    display: flex;
    align-items: center;
    column-gap: 7px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 3px;
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
    text-transform: capitalize;
    white-space: nowrap;
    cursor: pointer;
}

.tl-select:after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 5px 0 auto;
    border-width: 0 1px 1px 0;
    border-style: solid;
    border-color: #000;
    opacity: 0.9;
    transform: rotate(45deg) translate(0, -40%);
    transition: 0.3s ease;
}

.tl-select.open:after {
    transform: rotate(-135deg) translate(-2px, 0);
}

.tl-flag {
    width: 18px;
    max-width: none;
    border-radius: 1px;
    vertical-align: middle;
    transition: 0.2s ease;
}

.tl-label {
    display: inline-block;
    vertical-align: middle;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.tl-name {
    text-transform: capitalize;
}

.tl-code {
    text-transform: uppercase;
}

/* DOUBLE SWITCHER */

.tl-selections {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 3px;
}

.tl-selections:hover {
    cursor: pointer;
}

.tl-selection {
    display: flex;
    align-items: center;
    column-gap: 7px;
    padding: 8px 10px;
    white-space: nowrap;
}

.tl-selection + .tl-selection {
    margin-left: -8px;
}

/* ICON MODE */

.tl-invert {
    filter: invert(100%);
}
.tl-select:has(.tl-icon):after {
    display: none;
}

/* DROPDOWN CONTENT */

.tl-close-btn {
    display: none;
}

.tl-title {
    margin: 0 0 7px;
    text-align: left;
    font-size: 14px;
}

.tl-switcher + .tl-title {
    margin-top: 14px;
}

.tl-options {
    display: none;
    list-style: none;
    position: absolute;
    bottom: auto;
    top: 100%;
    left: 0;
    z-index: 1;
    min-width: 100%;
    max-height: 170px;
    margin: 0 0;
    border-radius: 3px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, .15);
    overflow-y: auto;
    background-color: #fff;
    padding: 6px 1px;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
    color: #000;
}

.tl-options.open {
    display: block;
}

.tl-option {
    display: flex;
    align-items: center;
    column-gap: 7px;
    padding: 5px 10px;
    white-space: nowrap;
    text-transform: capitalize;
    cursor: pointer;
    transition: 0.2s ease;
}

.tl-option::before,
.tl-option::after {
    content: none !important;
}

.tl-option:hover img {
    opacity: 0.75;
}

.tl-btn-container {
    margin-top: 18px;
    text-align: center;
}

.tl-submit-btn {
    border: none;
    border-radius: 3px;
    outline: none;
    box-shadow: none;
    background-color: #333;
    padding: 9px 35px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.tl-submit-btn:hover {
    background-color: #222;
}

/* MODAL DIALOG */

.tl-overlay .tl-close-btn {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.tl-overlay .tl-switcher {
    margin-bottom: 5px;
}

.tl-overlay .tl-options {
    padding: 8px 1px;
}

/* SAFARI column gap FIX */

@supports (-webkit-hyphens:none) {

    .tl-select,
    .tl-selection,
    .tl-option {
        column-gap: 0;
    }
    .tl-select img + .tl-label,
    .tl-selection img + .tl-label,
    .tl-option img + .tl-label,
     div.tl-select:after {
        margin-left: 7px;
    }
}