.loc {
    position: relative;
    cursor: pointer;
    flex: 1 1 100%;
}
.top-line .top-menu a{
    margin-right: 15px;
}

/*select строка в хедере --start*/

.loc-confirm {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 250px;
    width: 250px;
    padding: 16px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
    z-index: 98;
    transition: none;
    white-space: normal;
    border-radius: 6px;
    margin-top: 10px;
    cursor: default;
    box-sizing: border-box;
}

.loc-confirm:before {
    content: '';
    position: absolute;
    left: 20px;
    bottom: 100%;
    display: block;
    border: 6px solid transparent;
    border-bottom-color: #fff;
    z-index: 1;
}

.loc-confirm .loc-subtitle{
    font-size: 14px;
    font-weight: 600;
    color: #373435;
}

.loc-confirm .loc-btn{
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.loc-confirm .loc-btn .loc-yes{
    background: #EF6B01;
    color: #fff;
    padding: 10px 15px;
    line-height: 10px;
    font-weight: normal;
    font-size: 14px;
}

.loc-confirm .loc-btn .loc-no{
    color: #595959;
    cursor: pointer;
    text-decoration: none;
    transition: .05s;
    line-height: 10px;
    font-weight: normal;
    font-size: 12px;
}

.loc-confirm .loc-btn .loc-yes:hover{
    background: rgba(239, 107, 1, .9);
}

.loc-confirm .loc-btn .loc-no:hover{
    color: #EF6B01;
}

.loc .loc-current{
    position: relative;
    cursor: pointer;
    line-height: normal;
    vertical-align: -webkit-baseline-middle;
    text-decoration: none;
    font-size: 14px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.loc .loc-current.cart{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.loc .loc-current .loc-current-name{
    color: #ef6b01;
    border-bottom: 1px dashed rgba(239, 107, 1, .3);
    position: relative;
    font-weight: 600;
    text-decoration: none;
}

.loc .loc-current .loc-current-name:hover{
    color: #f79546;
    border-bottom: 1px dashed rgba(247, 149, 70, .3);
}

/*select строка в хедере --end*/

/*попап --start*/
.popup-window {
    width: auto !important;
    max-width: calc(100vw - 40px) !important;
}
#locPopupContent{
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
/* Заголовок */
.popup-location-select{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 30px 0 30px;
}

.popup-location-select h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: normal;
}

/* Подзаголовок */
.popup_secondary {
    color: #9294a5;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: normal;
}
/*Выбрано*/
.popup-selected {
    margin-bottom: 30px;
    font-size: 14px;
}

.popup-selected b {
    font-weight: 600;
}

/* Инпут */
#popup-city-search {
    width: 100%;
    height: 44px;
    border-radius: 6px;
    border: 1px solid #b6b8c3;
    padding: 0 45px 0 14px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

#popup-city-search:focus {
    border-color: #ef6b01;
}

/* Результаты поиска */

.search-results {
    display: none;
    overflow-y: auto;
    box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.08),
            0 4px 10px rgba(0, 0, 0, 0.05);

    border: 1px solid #f1f1f1;
    border-radius: 6px;

    position: absolute;
    z-index: 1;
    background-color: #fff;
    width: 100%;
}

/* Популярные города */
.popular-cities {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-group{
    margin-top: 40px;
}

.popular-city__text {
    color: #0b66c3;
    cursor: pointer;
    border-bottom: 1px dashed rgba(11, 102, 195, 0.4);
    font-size: 15px;
    display: inline;
    line-height: 1.5;
}

.popular-city__text:hover {
    color: #EF6B01;
    border-bottom-color: rgba(239,107,1,0.4);
}

.popular-city.is-current {
    font-weight: 600;
}

/*Футер попапа*/
.popup-footer {
    display: block;
    margin: 40px -30px 0 -30px;
    padding: 15px 30px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
}

.footer-highlight {
    border-bottom: 1px solid rgba(255,255,255,0.6);
}

.popup-footer:hover .footer-highlight {
    border-bottom-color: #fff;
}

/*Убрать крестик*/
.popup-window-close-icon {
    background: none !important;
}

/*свой */
.popup-window-close-icon::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;

    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239294a5'>\
<path fill-rule='evenodd' clip-rule='evenodd' d='M7.31571 6.18431C7.00329 5.87189 6.49676 5.87189 6.18434 6.18431C5.87192 6.49673 5.87192 7.00327 6.18434 7.31569L10.8687 12L6.18434 16.6843C5.87192 16.9967 5.87192 17.5033 6.18434 17.8157C6.49676 18.1281 7.00329 18.1281 7.31571 17.8157L12 13.1314L16.6843 17.8157C16.9968 18.1281 17.5033 18.1281 17.8157 17.8157C18.1281 17.5033 18.1281 16.9967 17.8157 16.6843L13.1314 12L17.8157 7.31568C18.1281 7.00327 18.1281 6.49673 17.8157 6.18431C17.5033 5.87189 16.9968 5.87189 16.6843 6.18431L12 10.8686L7.31571 6.18431Z'/>\
</svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
}

.popup-window-close-icon {
    width: 40px;
    height: 40px;
}

.popup-window-close-icon:hover::before {
    opacity: .7;
}

.popup-window {
    padding: 0 !important;
}

/*попап --end*/

/*выдача поисковая --start*/
.loc-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eceef3;
}

.loc-item:hover {
    background: #f5f7fa;
}

.loc-item-title {
    font-size: 14px;
    color: #000;
}

.loc-item-subtitle {
    font-size: 12px;
    color: #9294a5;
    margin-top: 2px;
}

/*крестик в поисковой строке*/
.city-search-wrap {
    position: relative;
}

#popup-city-search {
    width: 100%;
    padding-right: 36px;
}

.city-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: .5;
}

.city-search-clear::before,
.city-search-clear::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
    background: #999;
}

.city-search-clear::before {
    transform: rotate(45deg);
}

.city-search-clear::after {
    transform: rotate(-45deg);
}

.city-search-clear:hover {
    opacity: 1;
}

/*выдача поисковая --end*/
.popup-window.loc-popup-centered {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.popup-window.loc-popup-centered .popup-window-content {
    width: 420px;
    max-width: calc(100vw - 5vh);
    max-height: calc(100vh - 20vh);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup-window-overlay {
    position: fixed !important;
    height: 100% !important;
    width: 100% !important;
    inset: 0 !important;
}

@media (max-width: 1100px) {
    .loc{
        padding: 10px 10px 5px 10px;
    }

    .loc .loc-current{
        font-size: 11px;
    }

    .container-wrap.top-line{
        position: relative;
        z-index: unset;
        row-gap: 0;
    }

    .container-wrap.top-line .phone, .top-line .personal-account{
        z-index: 100;
    }

    .loc-confirm {
        margin-top: 0px;
    }

    .loc-confirm:before {
        content: none;
    }
    .loc .loc-current.cart{
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .popup-location-select {
        padding: 20px 20px 0 20px;
    }
    .popup-footer {
        margin: 40px -20px 0 -20px;
    }
}
@media screen and (max-width: 660px) {
    .loc .loc-current{
        font-size: 14px;
    }
}