@import url("https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css");

#cp-shops .cp-shops__wrapper {
    display: grid;
    grid-template-columns: 560px 1fr;
}

#cp-shops .cp-shops__content {
    padding: 0 24px;
    height: 600px;
    overflow-y: scroll;
}

#cp-shops .cp-shops__map {
    background-color: #eeeeee;
    height: 600px;
}

#cp-shops .cp-shops__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #5f5f5f;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    padding: 12px 0;
}

#cp-shops .cp-shops__item p {
    margin: 0;
}

#cp-shops .cp-shops__item a {
    text-decoration: none;
}

.search {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}



.cp-shops__collapsible {
    display: block;
}

.city-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 12px 0;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 10px;
}

.city-selector svg {
    transform: translateY(2px);
}

.city-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.city-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.city-modal__content {
    position: absolute;
    top: 30px;
    width: 96%;
    margin-left:  2%;
    background: #fff;
    border-radius: 12px;
    max-height: 90%;
    padding: 20px;
    overflow-y: auto;
}

.city-modal__item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.city-name {
    font-size: 17px;
    font-weight: 500;
}

.city-address {
    font-size: 14px;
    color: #888;
    margin-top: 2px;
}
.city-selector {
    display: none;
}

.city-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.city-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.title-shop{
    font-size:  2.45rem !important;
}


@media (max-width: 768px) {

    .city-selector {
        display: flex;
    }
    #cp-shops .cp-shops__wrapper {
        display: block;
    }

    #cp-shops .cp-shops__map {
        height: 300px;
    }

    .cp-shops__content {
        height: auto !important;
    }

    .cp-shops__collapsible {
        display: none;
        max-height: 400px;
        overflow-y: auto;
        border-top: 1px solid #ccc;
        margin-top: 10px;
    }

    .shop-toggle-button {
        display: block;
    }
}

.shops-desktop { display: block; }
.shops-mobile  { display: none; }

.mobile-shops__selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #fff url('data:image/svg+xml;charset=US-ASCII,<svg width="10" height="6" viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg"><path fill="%23999" d="M5 6L0 0h10z"/></svg>') no-repeat right 12px center;
    background-size: 10px 6px;

    padding: 10px 40px 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
}
.mobile-shops__selector {
    position: relative;
    margin: 10px 0;
}

/* Убираем лишние отступы у списка */
#mobile-shops-list {
    margin: 0;
    padding: 0;
}

/* Ссылка‑обёртка, чтобы она тянула фон на всю ширину */
.mobile-shops__link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #ccc;
}

/* Сам элемент магазина */
.mobile-shops__item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;      /* светло‑серая линия снизу */
    background-color: #fff;
}

/* Если хочется зебру — чередуем чуть отличающиеся фоны */
.mobile-shops__item:nth-child(2n) {
    background-color: #f9f9f9;
}

/* Убираем последний бордер, чтобы не было «лишней» линии внизу */
.mobile-shops__link:last-child .mobile-shops__item {
    border-bottom: none;
}

.contact-link {
    font-size: 1.2em;       /* размер иконок */
    color: #555;
    text-decoration: none;
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-link:hover {
    color: #000;
}


.mobile-shops__item-wrapper {
    cursor: pointer;
    margin-bottom: 8px; /* отступ между элементами */
}

/* Стили «карточки» */
.mobile-shops__item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Ссылки‑контакты */
.city-contacts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.contact-link i {
    font-size: 1.2em;
    color: #555;
}
.contact-link:hover i {
    color: #000;
}

@media (max-width: 768px) {
    .shops-desktop { display: none; }
    .shops-mobile  { display: block; }
}

#cp-shops-map-mobile {
    width: 100%;
    height: 300px;
}
.bx{
    font-size: 1.2rem;
}

#city-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;        /* ваш фон */
    background-image: none;        /* убираем стрелку браузера */
    padding: 10px 40px 10px 12px;  /* отступ для собственной стрелки, если нужна */
    border: 1px solid #000000;
    border-radius: 0px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

/* Скрываем встроенную стрелку в IE/Edge */
#city-select::-ms-expand {
    display: none;
}

/* Убираем синюю подсветку при тапе на iPhone */
#city-select {
    -webkit-tap-highlight-color: transparent;
}

/* Если хотите добавить свою стрелку */
#city-select {
    background: #fff url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6">\
      <path fill="%23999" d="M5 6L0 0h10z"/>\
    </svg>'
    ) no-repeat right 12px center;
    background-size: 10px 6px;
}
.custom-select {
    position: relative;
    width: 100%;
    
    font-family: sans-serif;
}

.custom-select__trigger {
    position: relative;         /* для псевдоэлемента */
    padding: 1.125rem .9375rem;
    border: 1px solid #1d1d1d;     /* ставим чёрную обводку */
    border-radius: 0;           /* как на скрине */
    cursor: pointer;
    user-select: none;
}

/* Убираем внутренний .arrow и вместо него рисуем треугольник здесь */
.custom-select__trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1em;
    width: 39px;
    height: 39px;
    background: url("data:image/svg+xml,%3Csvg width='39' height='39' viewBox='0 0 39 39' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19.4999 20.7748L24.7058 16.9886L25.2939 17.7974L19.4999 22.0113L13.7058 17.7974L14.2939 16.9886L19.4999 20.7748Z' fill='%231D1D1D'/%3E%3C/svg%3E%0A") no-repeat center;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s;
}

/* При открытом селекте переворачиваем стрелку */
.custom-select.open .custom-select__trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select__options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.custom-select.open .custom-select__options {
    opacity: 1;
    visibility: visible;
}

.custom-select__option {
    padding: 0.75em 1em;
    cursor: pointer;
}

.custom-select__option:hover {
    background: #f0f0f0;
}

