
.shop-city-picker__overlay[hidden],
.shop-city-picker__modal[hidden],
.shop-city-picker__empty[hidden] {
    display: none;
}

body.shop-city-picker-lock {
    overflow: hidden;
}

.shop-city-picker {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.shop-city-picker__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 7px 14px 7px 8px;
    background: linear-gradient(135deg, #ffffff, #eef5ff);
    color: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shop-city-picker__trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
}

.shop-city-picker__pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

.shop-city-picker__trigger-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.05;
}

.shop-city-picker__trigger-text span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.shop-city-picker__trigger-text strong {
    overflow: hidden;
    max-width: 170px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-city-picker__overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(6px);
}

.shop-city-picker__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1210;
    display: flex;
    flex-direction: column;
    width: min(720px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 28px));
    border: 1px solid rgba(215, 226, 242, 0.95);
    border-radius: 30px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 34px 96px rgba(15, 23, 42, 0.28);
    transform: translate(-50%, -50%);
}

.shop-city-picker__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.shop-city-picker__head h2 {
    margin: 5px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.shop-city-picker__head p {
    max-width: 560px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.shop-city-picker__eyebrow {
    display: inline-flex;
    width: max-content;
    border-radius: 999px;
    padding: 7px 12px;
    background: #eef5ff;
    color: #1659db;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shop-city-picker__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d7e2f2;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.shop-city-picker__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding-top: 18px;
}

.shop-city-picker__search-label {
    color: #52637a;
    font-size: 13px;
    font-weight: 900;
}

.shop-city-picker__search,
.shop-city-picker__noscript {
    width: 100%;
    height: 52px;
    border: 1px solid #d7e2f2;
    border-radius: 18px;
    padding: 0 16px;
    background: #f8fbff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    outline: none;
}

.shop-city-picker__search:focus,
.shop-city-picker__noscript:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.shop-city-picker__popular {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-city-picker__chip {
    border: 1px solid #d7e2f2;
    border-radius: 999px;
    padding: 9px 13px;
    background: #ffffff;
    color: #1659db;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.shop-city-picker__chip:hover,
.shop-city-picker__chip.is-active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

.shop-city-picker__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: auto;
    max-height: 320px;
    padding: 4px 4px 2px 0;
}

.shop-city-picker__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 210px;
    min-width: 190px;
    border: 1px solid #e1eaf6;
    border-radius: 18px;
    padding: 13px 14px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    color: #0f172a;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.shop-city-picker__item:hover,
.shop-city-picker__item.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.shop-city-picker__item span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.shop-city-picker__item strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.shop-city-picker__item small {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.shop-city-picker__empty {
    border: 1px dashed #c8d8ef;
    border-radius: 18px;
    padding: 16px;
    background: #f8fbff;
    color: #52637a;
    font-size: 14px;
    font-weight: 800;
}

.shop-city-picker__item:focus-visible,
.shop-city-picker__chip:focus-visible,
.shop-city-picker__close:focus-visible,
.shop-city-picker__trigger:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}

.shop-city-picker__item em {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 8px;
    background: #dcfce7;
    color: #047857;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    flex: 0 0 auto;
}

.shop-city-picker__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #2563eb;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.shop-city-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.shop-city-form__label {
    font-weight: 800;
    color: #64748b;
}

.shop-city-form__select {
    min-width: 150px;
    border: 1px solid #d7e2f2;
    border-radius: 999px;
    padding: 8px 34px 8px 14px;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    outline: none;
}

.shop-city-form__button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: #eaf1ff;
    color: #1659db;
    font-weight: 900;
    cursor: pointer;
}

.shop-city-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid #d7e6ff;
    border-radius: 20px;
    background: linear-gradient(135deg, #f4f8ff, #ffffff);
    color: #52637a;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.shop-city-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    flex: 0 0 auto;
}

.shop-error-page {
    display: flex;
    align-items: stretch;
    gap: 24px;
    padding: 44px;
    border-radius: 34px;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.16), transparent 34%), #ffffff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
}

.shop-error-page__content {
    display: flex;
    flex: 1 1 560px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.shop-error-page__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border-radius: 999px;
    padding: 9px 16px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.shop-error-page h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 0.95;
}

.shop-error-page p {
    max-width: 720px;
    margin: 0;
    color: #52637a;
    font-size: 18px;
    line-height: 1.65;
}

.shop-error-page__search {
    max-width: 720px;
}

.shop-error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-error-page__aside {
    display: flex;
    flex: 0 1 320px;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
    padding: 24px;
    border-radius: 26px;
    background: #f3f7ff;
    color: #52637a;
}

.shop-error-page__aside strong {
    color: #0f172a;
    font-size: 20px;
}

.shop-error-page__aside ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

@media (max-width: 960px) {
    .shop-city-picker {
        order: 3;
        width: 100%;
    }

    .shop-city-picker__trigger {
        justify-content: flex-start;
        width: 100%;
        max-width: none;
    }

    .shop-city-picker__trigger-text strong {
        max-width: none;
    }

    .shop-error-page {
        flex-direction: column;
        padding: 28px;
    }

    .shop-error-page__aside {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .shop-city-picker__modal {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        border-radius: 22px;
        padding: 18px;
    }

    .shop-city-picker__head {
        gap: 12px;
    }

    .shop-city-picker__head p {
        font-size: 14px;
    }

    .shop-city-picker__list {
        max-height: 300px;
    }

    .shop-city-picker__item {
        flex-basis: 100%;
        min-width: 0;
    }

    .shop-error-page {
        padding: 22px;
        border-radius: 24px;
    }
}
