/* ==========================================================================
   TOP
   ========================================================================== */

.location-selector-top {
    font-size: 12px;
}

.location-selector-top .location-selector-top__selection {
    background-color: transparent;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    display: inline-block;
    height: var(--header-element-height);
    line-height: var(--header-element-height);
    padding: 0 12px;
}

.location-selector-top .location-selector-top__selection .location-selection__element:not(:last-of-type):after {
    content: "/";
    font-weight: normal;
    color: #d1d1d1;
    margin: 0 2px;
}

.location-selector-top .location-selector-top__selection .location-selection__element.location-selection__element--country:after {
    margin-left: 4px;
}

.location-selector-top .location-selector-top__selection .location-selection__element--country img {
    position: relative;
    top: -1px;
}

/* ==========================================================================
   NAV
   ========================================================================== */

.location-selector-nav {
    order: 3;
    margin-left: 18px;
}

@media (min-width: 1200px) {
    .location-selector-nav {
        margin-left: 30px;
    }
}

.location-selector-nav .location-selector-nav__selection {
    background: none;
    border: none;
    display: block;
    height: var(--header-topbar-height);
    line-height: var(--header-topbar-height);
    right: -5px;
    opacity: 0;
    padding: 0;
    position: relative;
    transition-delay: 0;
    transition-duration: 0;
    visibility: hidden;
}

.header-topbar.header-topbar--sticky .location-selector-nav .location-selector-nav__selection {
    right: 0;
    opacity: 1;
    transition-duration: var(--header-topbar-transition);
    transition-delay: .35s;
    visibility: visible;
}

.location-selector-nav .location-selector-nav__selection img {
    max-width: none;
}

/* --------------------------------------------------------------------------
   DROPDOWN
   -------------------------------------------------------------------------- */

@media (min-width: 576px) {
    .location-selector-nav .location-selector__menu {
        right: -9px;
    }
}

.location-selector-nav .location-selector__menu a:hover {
    color: #666;
}

/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.location-selector__menu {
    border-radius: 4px;
    color: #666;
    font-size: 12px;
    left: 20px;
    padding: 15px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

@media (min-width: 576px) {
    .location-selector__menu {
        width: 250px;
        position: absolute;
        transform: none;
        left: inherit;
        right: 0;
        border-radius: inherit;
        top: inherit;
    }

    .location-selector.pull-right > .location-selector__menu {
        right: 0;
        left: auto;
    }
}

.location-selector__menu .location-selector__wrapper {
    margin-bottom: 0;
}

.location-selector__menu .location-selector__option {
    margin-bottom: 20px;
}

.location-selector__menu .location-selector__option:last-of-type {
    margin-bottom: 0;
}

.location-selector__menu .location-selector__option .location-selector__label {
    font-weight: bold;
    display: block;
    line-height: 12px;
}

.location-selector__menu .location-selector__option .location-selector__select {
    width: 100%;
}

.location-selector__menu .location-selector__option .location-selector__select.select2-container-disabled {
    opacity: 0.7;
}

.location-selector__menu .location-selector__option .location-selector__select .select2-choice {
    background: #f0f5f7;
    background-image: none;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    box-shadow: none;
    font-size: 12px;
    height: 32px;
    line-height: 32px;
    padding: 0 8px;
}

.location-selector__menu .location-selector__option .location-selector__select:not(.select2-container-disabled) .select2-choice::after {
    color: #5B5B5B;
    content: "\F078";
    font-family: 'FontAwesome';
    font-size: 10px;
    height: inherit;
    line-height: 28px;
    margin-right: 8px;
    position: absolute;
    right: 0;
    top: 0;
}

.location-selector__menu .location-selector__option .location-selector__select .select2-choice .select2-arrow {
    display: none;
}

.location-selector__menu .location-selector__option .location-selector__select .location-selector__flag {
    margin-right: 5px;
    position: relative;
    top: -2px;
}

.location-selector__menu .location-selector__option .location-selector__submit {
    border: 1px solid #007299;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   SELECT2
   -------------------------------------------------------------------------- */

.location-selector__drop.select2-drop {
    border-color: #e5e5e5;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    line-height: 18px;
    padding-top: 4px;
}

.location-selector__drop .select2-search {
    display: none;
}

.location-selector__drop .select2-search::after {
    color: #d2d2d2;
    content: "\F002";
    display: inline-block;
    font-family: 'FontAwesome';
    font-size: 14px;
    line-height: 14px;
    margin-top: -8px;
    position: absolute;
    right: 5px;
    text-align: center;
    top: 50%;
    vertical-align: bottom;
    width: 24px;
}

.location-selector__drop .select2-search .select2-input {
    background: none;
    background-image: none !important;
    border: 1px solid #d2d2d2;
    font-family: inherit;
}

.location-selector__drop .location-selector__result {
    position: relative;
    min-height: 24px;
    box-sizing: content-box;
}

.location-selector__drop .location-selector__result .select2-result-label {
    padding: 7px;
}

.location-selector__drop .location-selector__result .location-selector__flag {
    position: absolute;
    left: 7px;
    margin-top: -12px;
    top: 50%;
}

.location-selector__drop .location-selector__result .location-selector__country-name {
    padding-left: 33px;
    display: inline-block;
}


/* ==========================================================================
   COMMONS
   ========================================================================== */

.location-selector-top.open::after,
.location-selector-nav.open::after {
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 990;
}

@media (min-width: 576px) {
    .location-selector-top.open::after,
    .location-selector-nav.open::after {
        display: none;
    }
}
