/* CDEK pickup-point chooser. Loaded last on cart.php to isolate it from site form styles. */
:root {
    --cdek-green: #18b85a;
    --cdek-green-deep: #0c9c48;
    --cdek-ink: #0a0d11;
    --cdek-panel: #0f1319;
    --cdek-panel-soft: #151a21;
    --cdek-line: rgba(255, 255, 255, .10);
    --cdek-text: #f5f2ec;
    --cdek-muted: rgba(220, 224, 231, .62);
}

body.cdek-map-open { overflow: hidden; }

.cdek-picker {
    width: min(1260px, calc(100vw - 28px));
    height: min(820px, calc(100dvh - 28px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 26px;
    background: var(--cdek-ink);
    color: var(--cdek-text);
    box-shadow: 0 42px 130px rgba(0,0,0,.72);
    overflow: hidden;
}

.cdek-picker::backdrop {
    background: rgba(2, 4, 7, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cdek-picker[open] { animation: cdek-dialog-in .22s ease-out both; }
@keyframes cdek-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.cdek-picker *,
.cdek-picker *::before,
.cdek-picker *::after { box-sizing: border-box; }

.cdek-picker button,
.cdek-picker input { font: inherit; }

.cdek-picker__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
}

.cdek-picker__header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--cdek-line);
    background:
        radial-gradient(circle at 76% -50%, rgba(24,184,90,.12), transparent 42%),
        rgba(10,13,17,.98);
}

.cdek-picker__heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cdek-picker__brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--cdek-green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.cdek-picker__heading .eyebrow {
    margin: 0 0 5px;
    color: rgba(223,228,234,.48);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.cdek-picker__heading h2 {
    margin: 0;
    color: #f5f1ea;
    font: 400 clamp(25px, 3vw, 38px)/1.03 Georgia, "Times New Roman", serif;
    letter-spacing: -.035em;
}

.cdek-picker__close,
.cdek-picker__detail-close,
.cdek-picker__locate,
.cdek-picker__search-clear {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.cdek-picker__close {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.025);
    color: rgba(247,244,238,.78);
    transition: .18s ease;
}

.cdek-picker__close:hover,
.cdek-picker__close:focus-visible {
    border-color: rgba(255,255,255,.30);
    background: rgba(255,255,255,.07);
    color: #fff;
    outline: none;
    transform: rotate(4deg);
}

.cdek-picker__close svg,
.cdek-picker__detail-close svg,
.cdek-picker__locate svg,
.cdek-picker__search-clear svg,
.cdek-picker__city-search > svg,
.cdek-picker__point-search > svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cdek-picker__workspace {
    min-height: 0;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
}

.cdek-picker__sidebar {
    position: relative;
    z-index: 20;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    border-right: 1px solid var(--cdek-line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.016), transparent 24%),
        var(--cdek-panel);
}

.cdek-picker__search-block {
    position: relative;
    z-index: 30;
    padding: 20px 18px 14px;
}

.cdek-picker__label {
    display: block;
    margin: 0 0 8px;
    color: rgba(223,228,234,.48);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.cdek-picker__city-search,
.cdek-picker__point-search {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.cdek-picker__city-search:focus-within,
.cdek-picker__point-search:focus-within {
    border-color: rgba(24,184,90,.70);
    background: rgba(255,255,255,.065);
    box-shadow: 0 0 0 3px rgba(24,184,90,.11);
}

.cdek-picker__city-search > svg,
.cdek-picker__point-search > svg {
    flex: 0 0 auto;
    color: rgba(232,235,239,.47);
}

.cdek-picker__city-search input,
.cdek-picker__point-search input {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #f6f3ee !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.cdek-picker__city-search input::placeholder,
.cdek-picker__point-search input::placeholder { color: rgba(219,224,230,.36); }

.cdek-picker__city-search input::-webkit-search-cancel-button,
.cdek-picker__point-search input::-webkit-search-cancel-button { display: none; }

.cdek-picker__search-clear {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(234,237,241,.52);
}

.cdek-picker__search-clear:hover,
.cdek-picker__search-clear:focus-visible {
    background: rgba(255,255,255,.08);
    color: #fff;
    outline: none;
}

.cdek-picker__city-results {
    position: absolute;
    z-index: 1000;
    top: calc(100% - 8px);
    left: 18px;
    right: 18px;
    max-height: 300px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px;
    background: rgba(17,21,27,.99);
    box-shadow: 0 24px 80px rgba(0,0,0,.58);
}

.cdek-picker__city-result {
    appearance: none !important;
    width: 100% !important;
    min-height: 46px !important;
    display: grid !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #f4f1eb !important;
    text-align: left !important;
    cursor: pointer;
}

.cdek-picker__city-result:hover,
.cdek-picker__city-result:focus-visible {
    background: rgba(255,255,255,.065) !important;
    outline: none;
}

.cdek-picker__city-result strong { font-size: 13px; font-weight: 650; }
.cdek-picker__city-result span { color: rgba(220,225,231,.47); font-size: 12px; }

.cdek-picker__points-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.cdek-picker__points-head > div { min-width: 0; display: grid; gap: 3px; }
.cdek-picker__points-head strong { color: #f5f2ec; font-size: 13px; font-weight: 650; }
.cdek-picker__points-head span {
    overflow: hidden;
    color: rgba(214,220,227,.47);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cdek-picker__locate {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: rgba(236,239,242,.65);
}

.cdek-picker__locate:hover,
.cdek-picker__locate:focus-visible {
    border-color: rgba(24,184,90,.55);
    color: var(--cdek-green);
    outline: none;
}

.cdek-picker__locate svg { width: 17px; height: 17px; }

.cdek-picker__point-search {
    min-height: 44px;
    margin: 12px 18px 8px;
    width: auto;
    border-radius: 12px;
}
.cdek-picker__point-search input { height: 42px !important; font-size: 12px !important; }
.cdek-picker__point-search > svg { width: 17px; height: 17px; }

.cdek-picker__point-list {
    min-height: 0;
    overflow-y: auto;
    padding: 4px 10px 14px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.16) transparent;
}

.cdek-picker__point-list::-webkit-scrollbar { width: 6px; }
.cdek-picker__point-list::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(255,255,255,.16); }

.cdek-picker__point-card {
    appearance: none !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    margin: 4px 0 0 !important;
    padding: 13px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #f1eee8 !important;
    text-align: left !important;
    cursor: pointer;
    transition: .16s ease;
}

.cdek-picker__point-card:hover,
.cdek-picker__point-card:focus-visible {
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(255,255,255,.04) !important;
    outline: none;
}

.cdek-picker__point-card.is-active {
    border-color: rgba(24,184,90,.52) !important;
    background: rgba(24,184,90,.09) !important;
    box-shadow: inset 3px 0 0 var(--cdek-green);
}

.cdek-picker__point-card-marker {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px 9px 9px 2px;
    background: rgba(24,184,90,.16);
    color: var(--cdek-green);
    transform: rotate(-45deg);
}
.cdek-picker__point-card-marker svg { width: 14px; height: 14px; transform: rotate(45deg); fill: none; stroke: currentColor; stroke-width: 1.8; }

.cdek-picker__point-card-copy { min-width: 0; display: grid; gap: 5px; }
.cdek-picker__point-card-copy strong { font-size: 12px; font-weight: 650; line-height: 1.35; }
.cdek-picker__point-card-copy span { color: rgba(218,223,229,.61); font-size: 12px; line-height: 1.45; }
.cdek-picker__point-card-copy small { color: rgba(194,201,209,.40); font-size: 12px; line-height: 1.45; letter-spacing: .055em; text-transform: uppercase; }

.cdek-picker__empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 30px;
    color: rgba(218,223,229,.48);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.cdek-picker__map-area {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #e8e9e6;
}

.cdek-picker__map {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: #e8e9e6;
}

.cdek-picker__map .leaflet-container { font-family: Arial, Helvetica, sans-serif; }
.cdek-picker__map .leaflet-control-zoom {
    overflow: hidden;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 28px rgba(27,35,43,.18) !important;
}
.cdek-picker__map .leaflet-control-zoom a {
    width: 42px !important;
    height: 42px !important;
    line-height: 40px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(20,25,31,.08) !important;
    background: rgba(255,255,255,.96) !important;
    color: #15191e !important;
    font-size: 22px !important;
}
.cdek-picker__map .leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.cdek-picker__map .leaflet-control-attribution {
    padding: 3px 6px !important;
    background: rgba(255,255,255,.82) !important;
    color: rgba(20,25,31,.58) !important;
    font-size: 12px !important;
}

.cdek-picker__map-marker {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 12%;
    background: var(--cdek-green);
    color: #fff;
    box-shadow: 0 7px 18px rgba(8,92,43,.34);
    transform: rotate(-45deg);
    transition: transform .15s ease, background .15s ease;
}
.cdek-picker__map-marker::after {
    content: "";
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: rotate(45deg);
}
.cdek-picker__map-marker.is-active {
    background: #0a0d11;
    box-shadow: 0 0 0 5px rgba(24,184,90,.24), 0 10px 22px rgba(0,0,0,.30);
    transform: rotate(-45deg) scale(1.18);
}

.cdek-picker__map .leaflet-tooltip {
    max-width: 280px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: rgba(12,16,21,.94);
    color: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.26);
    font-size: 12px;
    line-height: 1.4;
}
.cdek-picker__map .leaflet-tooltip-top::before { border-top-color: rgba(12,16,21,.94); }

.cdek-picker__loader {
    position: absolute;
    z-index: 800;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 24px;
    background: rgba(236,238,235,.88);
    color: #252a30;
    font-size: 13px;
    text-align: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.cdek-picker__loader[hidden] { display: none !important; }

.cdek-picker__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(17,24,30,.16);
    border-top-color: var(--cdek-green);
    border-radius: 50%;
    animation: cdek-spin .7s linear infinite;
}
@keyframes cdek-spin { to { transform: rotate(360deg); } }

.cdek-picker__point-detail {
    position: absolute;
    z-index: 700;
    right: 18px;
    bottom: 18px;
    width: min(380px, calc(100% - 36px));
    padding: 20px;
    border: 1px solid rgba(20,25,31,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    color: #11161b;
    box-shadow: 0 22px 70px rgba(18,25,32,.26);
    animation: cdek-card-in .18s ease-out both;
}
@keyframes cdek-card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cdek-picker__point-detail[hidden] { display: none !important; }

.cdek-picker__detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(17,22,27,.52);
}
.cdek-picker__detail-close:hover,
.cdek-picker__detail-close:focus-visible { background: rgba(13,18,23,.07); color: #0d1217; outline: none; }
.cdek-picker__detail-close svg { width: 16px; height: 16px; }

.cdek-picker__detail-kicker {
    margin: 0 42px 5px 0;
    color: var(--cdek-green-deep);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.cdek-picker__point-detail h3 {
    margin: 0 38px 8px 0;
    color: #11161b;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
}
.cdek-picker__detail-address {
    margin: 0 0 14px;
    color: #30363d;
    font-size: 13px;
    line-height: 1.5;
}
.cdek-picker__detail-meta {
    display: grid;
    gap: 8px;
    margin: 0 0 17px;
}
.cdek-picker__detail-meta > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; }
.cdek-picker__detail-meta dt { color: rgba(24,29,35,.48); font-size: 12px; }
.cdek-picker__detail-meta dd { margin: 0; color: #252b31; font-size: 12px; line-height: 1.4; }

.cdek-picker__choose {
    appearance: none !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--cdek-green) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(24,184,90,.24) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    letter-spacing: .035em !important;
    cursor: pointer;
    transition: .16s ease;
}
.cdek-picker__choose:hover,
.cdek-picker__choose:focus-visible { background: var(--cdek-green-deep) !important; outline: none; transform: translateY(-1px); }

@media (max-width: 920px) {
    .cdek-picker { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .cdek-picker__workspace { grid-template-columns: 330px minmax(0,1fr); }
}

@media (max-width: 1024px) {
    .cdek-picker__header { min-height: 76px; padding: 12px 14px; }
    .cdek-picker__brand { display: none; }
    .cdek-picker__heading h2 { font-size: 26px; }
    .cdek-picker__heading .eyebrow { margin-bottom: 3px; }
    .cdek-picker__close { width: 42px; height: 42px; }
    .cdek-picker__workspace {
        position: relative;
        display: block;
    }
    .cdek-picker__map-area { position: absolute; inset: 0; }
    .cdek-picker__map { min-height: 100%; }
    .cdek-picker__sidebar {
        position: absolute;
        z-index: 900;
        inset: 12px 12px auto;
        display: block;
        max-height: calc(100% - 24px);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 18px;
        background: rgba(12,16,21,.94);
        box-shadow: 0 16px 52px rgba(0,0,0,.34);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        overflow: visible;
    }
    .cdek-picker__search-block { padding: 12px; }
    .cdek-picker__label { display: none; }
    .cdek-picker__points-head,
    .cdek-picker__point-search,
    .cdek-picker__point-list { display: none; }
    .cdek-picker__city-results { left: 12px; right: 12px; top: calc(100% - 4px); }
    .cdek-picker__point-detail {
        position: fixed;
        z-index: 1200;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 44dvh;
        overflow-y: auto;
        border-radius: 18px;
    }
    .cdek-picker__loader { padding-top: 90px; }
}

@media (max-width: 430px) {
    .cdek-picker__heading h2 { font-size: 23px; }
    .cdek-picker__heading .eyebrow { font-size: 12px; }
    .cdek-picker__header { gap: 10px; }
    .cdek-picker__point-detail { padding: 17px; }
    .cdek-picker__detail-meta > div { grid-template-columns: 90px minmax(0,1fr); }
}

/* Universal responsive layer */
:root { --cdek-viewport-height: 100dvh; }
body.cdek-map-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}
.cdek-picker {
    box-sizing: border-box;
    height: min(840px, calc(var(--cdek-viewport-height, 100dvh) - 28px));
    overscroll-behavior: contain;
}
.cdek-picker__shell { width: 100%; }
.cdek-picker__workspace { grid-template-columns: clamp(330px, 31vw, 405px) minmax(0, 1fr); }
.cdek-picker__map { min-height: 0; }
.cdek-picker__point-list,
.cdek-picker__point-detail { -webkit-overflow-scrolling: touch; }
.cdek-picker__city-search input,
.cdek-picker__point-search input { font-size: 16px !important; }
.cdek-picker__city-results { max-height: min(300px, 42dvh); overscroll-behavior: contain; }
.cdek-picker__point-detail { max-height: calc(100% - 36px); overflow-y: auto; }
.cdek-picker__point-card-copy strong,
.cdek-picker__point-card-copy span,
.cdek-picker__point-card-copy small,
.cdek-picker__point-detail h3,
.cdek-picker__detail-address,
.cdek-picker__detail-meta dd { overflow-wrap: anywhere; }
.cdek-picker__mobile-tabs { display: none; }
.cdek-picker button { touch-action: manipulation; }

@media (max-width: 1024px) {
    .cdek-picker { width: calc(100vw - 20px); height: calc(var(--cdek-viewport-height, 100dvh) - 20px); border-radius: 22px; }
    .cdek-picker__workspace { grid-template-columns: clamp(290px, 38vw, 340px) minmax(0, 1fr); }
    .cdek-picker__header { min-height: 82px; padding: 14px 18px; }
}

@media (max-width: 920px) {
    .cdek-picker {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: var(--cdek-viewport-height, 100dvh);
        margin: 0;
        border: 0;
        border-radius: 0;
    }
    .cdek-picker__header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .cdek-picker__workspace { grid-template-columns: clamp(290px, 38vw, 330px) minmax(0, 1fr); }
}

@media (max-width: 1024px) {
    .cdek-picker__shell { grid-template-rows: auto auto minmax(0, 1fr); }
    .cdek-picker__header {
        min-height: 68px;
        gap: 12px;
        padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    }
    .cdek-picker__heading h2 { font-size: clamp(22px, 7vw, 28px); }
    .cdek-picker__heading .eyebrow { margin-bottom: 2px; }
    .cdek-picker__close { width: 44px; height: 44px; }

    .cdek-picker__mobile-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 7px max(10px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
        border-bottom: 1px solid var(--cdek-line);
        background: var(--cdek-ink);
    }
    .cdek-picker__mobile-tabs button {
        appearance: none;
        min-height: 42px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid transparent;
        border-radius: 11px;
        background: transparent;
        color: rgba(236,239,243,.58);
        font-size: 12px;
        font-weight: 700;
    }
    .cdek-picker__mobile-tabs button.is-active {
        border-color: rgba(255,255,255,.10);
        background: rgba(255,255,255,.07);
        color: #fff;
    }
    .cdek-picker__mobile-tabs span { color: var(--cdek-green); }

    .cdek-picker__workspace { position: relative; display: block; min-height: 0; }
    .cdek-picker__map-area { position: absolute; inset: 0; }
    .cdek-picker__map { min-height: 100%; }
    .cdek-picker__sidebar {
        inset: 10px max(10px, env(safe-area-inset-right)) auto max(10px, env(safe-area-inset-left));
        max-height: calc(100% - 20px);
        border-radius: 16px;
    }
    .cdek-picker__search-block { padding: 10px; }
    .cdek-picker__city-search { min-height: 48px; border-radius: 12px; }
    .cdek-picker__city-search input { height: 46px !important; }
    .cdek-picker__city-results { left: 10px; right: 10px; top: calc(100% - 3px); max-height: min(46dvh, 320px); }

    .cdek-picker[data-mobile-view="list"] .cdek-picker__map-area { display: none; }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__sidebar {
        position: absolute;
        inset: 0;
        display: grid;
        grid-template-rows: auto auto auto minmax(0, 1fr);
        max-height: none;
        border: 0;
        border-radius: 0;
        background: var(--cdek-panel);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: hidden;
    }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__search-block {
        padding: 12px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__points-head { display: flex; }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__point-search {
        display: flex;
        margin-right: max(12px, env(safe-area-inset-right));
        margin-left: max(12px, env(safe-area-inset-left));
    }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__point-list { display: block; padding-bottom: max(14px, env(safe-area-inset-bottom)); }

    .cdek-picker__point-detail {
        position: fixed;
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        width: auto;
        max-height: min(52dvh, 430px);
        padding: 18px;
    }
    .cdek-picker__loader { padding: 110px 20px 20px; }
    .cdek-picker__map .leaflet-control-attribution {
        display: block;
        max-width: min(76vw, 340px);
        padding: 3px 6px;
        border-radius: 7px 0 0 0;
        background: rgba(255,255,255,.78);
        color: rgba(24,29,35,.72);
        font-size: 12px;
        line-height: 1.25;
        opacity: .78;
        white-space: normal;
    }
    .cdek-picker__map .leaflet-control-attribution a { color: #126a3a; }
}

@media (max-width: 430px) {
    .cdek-picker__header { min-height: 64px; }
    .cdek-picker__heading h2 { font-size: clamp(20px, 6.6vw, 25px); }
    .cdek-picker__heading .eyebrow { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cdek-picker__point-detail { padding: 16px; }
    .cdek-picker__detail-meta > div { grid-template-columns: 86px minmax(0,1fr); gap: 9px; }
}

@media (max-width: 350px) {
    .cdek-picker__heading h2 { font-size: 19px; }
    .cdek-picker__heading .eyebrow { display: none; }
    .cdek-picker__close { width: 40px; height: 40px; }
    .cdek-picker__mobile-tabs { padding-right: 6px; padding-left: 6px; }
    .cdek-picker__point-detail { left: 6px; right: 6px; bottom: max(6px, env(safe-area-inset-bottom)); padding: 14px; }
    .cdek-picker__detail-meta > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-height: 560px) {
    .cdek-picker__header { min-height: 58px; padding-top: max(7px, env(safe-area-inset-top)); padding-bottom: 7px; }
    .cdek-picker__heading .eyebrow { display: none; }
    .cdek-picker__heading h2 { font-size: clamp(20px, 3vw, 27px); }
    .cdek-picker__close { width: 40px; height: 40px; }
    .cdek-picker__point-detail { max-height: calc(100% - 20px); padding: 15px; }
    .cdek-picker__detail-meta { margin-bottom: 10px; }
    .cdek-picker__detail-address { margin-bottom: 9px; }
}

@media (max-width: 1024px) and (max-height: 560px) {
    .cdek-picker__mobile-tabs { padding-top: 4px; padding-bottom: 4px; }
    .cdek-picker__mobile-tabs button { min-height: 36px; }
    .cdek-picker__sidebar { top: 6px; }
    .cdek-picker__point-detail { max-height: 64dvh; }
}

@media (min-width: 1025px) and (max-height: 560px) {
    .cdek-picker__workspace { grid-template-columns: 300px minmax(0, 1fr); }
    .cdek-picker__search-block { padding: 10px 12px 8px; }
    .cdek-picker__city-search { min-height: 44px; }
    .cdek-picker__city-search input { height: 42px !important; }
    .cdek-picker__points-head { padding: 8px 12px; }
    .cdek-picker__point-search { margin: 7px 12px 5px; }
    .cdek-picker__point-card { padding-top: 8px !important; padding-bottom: 8px !important; }
    .cdek-picker__point-detail { width: min(340px, calc(100% - 24px)); right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .cdek-picker[open], .cdek-picker__point-detail, .cdek-picker__spinner { animation: none; }
    .cdek-picker *, .cdek-picker *::before, .cdek-picker *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Fast city and pickup-point search */
.cdek-picker__city-quick {
    display: flex;
    gap: 6px;
    margin-top: 9px;
    padding-bottom: 1px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.cdek-picker__city-quick::-webkit-scrollbar { display: none; }
.cdek-picker__city-quick button,
.cdek-picker__point-sort button {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    color: rgba(228,233,238,.58);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.cdek-picker__city-quick button:hover,
.cdek-picker__city-quick button:focus-visible,
.cdek-picker__point-sort button:hover,
.cdek-picker__point-sort button:focus-visible,
.cdek-picker__point-sort button.is-active {
    border-color: rgba(24,184,90,.45);
    background: rgba(24,184,90,.10);
    color: #f4f7f4;
    outline: none;
}

.cdek-picker__city-result.is-active,
.cdek-picker__city-result[aria-selected="true"] {
    background: rgba(24,184,90,.10) !important;
    box-shadow: inset 2px 0 0 var(--cdek-green);
}
.cdek-picker__city-result mark {
    padding: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--cdek-green);
    font: inherit;
}

.cdek-picker__point-tools {
    min-width: 0;
    padding: 12px 18px 9px;
    border-bottom: 1px solid rgba(255,255,255,.055);
}
.cdek-picker__point-tools .cdek-picker__point-search {
    width: 100%;
    min-height: 46px;
    margin: 0;
}
.cdek-picker__point-tools .cdek-picker__point-search input {
    height: 44px !important;
    font-size: 14px !important;
}
.cdek-picker__point-sort {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.cdek-picker__point-sort::-webkit-scrollbar { display: none; }
.cdek-picker__point-sort button {
    min-height: 42px;
    padding: 0 10px;
}
.cdek-picker__point-sort button svg {
    width: 13px;
    height: 13px;
    margin-right: 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -2px;
}
.cdek-picker__point-sort button:disabled,
.cdek-picker__locate:disabled {
    opacity: .45;
    cursor: wait;
}
.cdek-picker__point-hint {
    min-height: 26px;
    margin: 7px 2px 0;
    color: rgba(207,214,222,.42);
    font-size: 12px;
    line-height: 1.45;
}
.cdek-picker__empty {
    align-content: center;
    gap: 7px;
}
.cdek-picker__empty strong {
    color: rgba(241,244,247,.75);
    font-size: 13px;
    font-weight: 650;
}
.cdek-picker__empty span {
    max-width: 270px;
    color: rgba(218,223,229,.46);
}
.cdek-picker__point-card-copy small:empty { display: none; }

@media (max-width: 1024px) {
    .cdek-picker__sidebar {
        max-height: min(calc(100% - 20px), 330px);
        overflow: visible;
    }
    .cdek-picker__points-head,
    .cdek-picker__point-list { display: none; }
    .cdek-picker__point-tools {
        display: block;
        padding: 0 10px 10px;
        border-bottom: 0;
    }
    .cdek-picker__point-tools .cdek-picker__point-search {
        display: flex;
        min-height: 46px;
        background: rgba(255,255,255,.055);
    }
    .cdek-picker__point-tools .cdek-picker__point-search input { height: 44px !important; }
    .cdek-picker__point-sort { margin-top: 7px; }
    .cdek-picker__point-hint { display: none; }
    .cdek-picker__city-quick { margin-top: 7px; }
    .cdek-picker__city-quick button { min-height: 42px; padding: 0 11px; }
    .cdek-picker__city-results {
        top: calc(100% - 3px);
        max-height: min(40dvh, 300px);
    }

    .cdek-picker[data-mobile-view="list"] .cdek-picker__sidebar {
        max-height: none;
    }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__point-tools {
        display: block;
        padding: 10px max(12px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left));
        border-bottom: 1px solid rgba(255,255,255,.055);
    }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__point-hint { display: block; }
    .cdek-picker[data-mobile-view="list"] .cdek-picker__point-list { display: block; }
}

@media (max-width: 430px) {
    .cdek-picker__sidebar { max-height: min(calc(100% - 16px), 316px); }
    .cdek-picker__search-block { padding-bottom: 8px; }
    .cdek-picker__city-quick button:nth-child(n+4) { display: none; }
    .cdek-picker__point-sort button { min-height: 42px; padding: 0 10px; font-size: 12px; }
}

@media (max-width: 350px) {
    .cdek-picker__city-quick { display: none; }
    .cdek-picker__sidebar { max-height: min(calc(100% - 12px), 244px); }
}

@media (max-width: 1024px) and (max-height: 560px) {
    .cdek-picker__city-quick { display: none; }
    .cdek-picker__point-sort { display: none; }
    .cdek-picker__sidebar { max-height: 160px; }
}

.cdek-picker__map-unavailable {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 28px;
    background: linear-gradient(145deg, #eef1ed, #dde3df);
    color: #222a27;
    text-align: center;
}
.cdek-picker__map-unavailable strong { font-size: 16px; }
.cdek-picker__map-unavailable span { max-width: 360px; color: rgba(34,42,39,.68); font-size: 13px; line-height: 1.5; }


/* CDEK picker: strict map/sidebar isolation across desktop, tablet and mobile. */
.cdek-picker__workspace {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
}

.cdek-picker__sidebar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.cdek-picker__search-block,
.cdek-picker__points-head,
.cdek-picker__point-tools,
.cdek-picker__point-list {
    min-width: 0;
    max-width: 100%;
}

.cdek-picker__city-quick,
.cdek-picker__point-sort {
    width: 100%;
    max-width: 100%;
}

.cdek-picker__point-list {
    overflow-x: hidden;
}

.cdek-picker__point-card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}

.cdek-picker__point-card-copy,
.cdek-picker__point-card-copy > * {
    min-width: 0;
    max-width: 100%;
}

.cdek-picker__point-card-copy > * {
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
}

.cdek-picker__map-area {
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    isolation: isolate;
    contain: paint;
}

.cdek-picker__map,
.cdek-picker__map.leaflet-container,
#cdekMapRoot {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.cdek-picker__map .leaflet-map-pane,
.cdek-picker__map .leaflet-control-container {
    max-width: none;
}

/* On tablet and phone screens the controls take their own row.
   The map starts below them instead of being painted underneath them. */
@media (max-width: 1024px) {
    .cdek-picker__shell {
        grid-template-rows: auto auto minmax(0, 1fr);
    }

    .cdek-picker__workspace {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .cdek-picker__sidebar {
        position: relative !important;
        z-index: 2;
        inset: auto !important;
        grid-row: 1;
        display: block;
        width: 100%;
        max-height: none;
        border: 0;
        border-bottom: 1px solid var(--cdek-line);
        border-radius: 0;
        background: var(--cdek-panel);
        box-shadow: none;
        overflow: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .cdek-picker__map-area {
        position: relative !important;
        inset: auto !important;
        grid-row: 2;
        min-height: 0;
    }

    .cdek-picker__map {
        height: 100%;
        min-height: 0;
    }

    .cdek-picker[data-mobile-view="list"] .cdek-picker__workspace {
        grid-template-rows: minmax(0, 1fr);
    }

    .cdek-picker[data-mobile-view="list"] .cdek-picker__map-area {
        display: none;
    }

    .cdek-picker[data-mobile-view="list"] .cdek-picker__sidebar {
        grid-row: 1;
        display: grid;
        grid-template-rows: auto auto auto minmax(0, 1fr);
        height: 100%;
        max-height: none;
        overflow: hidden;
        border-bottom: 0;
    }

    .cdek-picker__city-results {
        z-index: 1100;
    }

    .cdek-picker__point-detail {
        z-index: 1200;
    }
}

@media (max-width: 430px) {
    .cdek-picker__search-block {
        padding-inline: 8px;
    }

    .cdek-picker__point-tools {
        padding-inline: 8px;
    }
}

@media (max-height: 560px) and (max-width: 1024px) {
    .cdek-picker__search-block {
        padding-top: 6px;
        padding-bottom: 5px;
    }

    .cdek-picker__city-search {
        min-height: 42px;
    }

    .cdek-picker__city-search input {
        height: 40px !important;
    }

    .cdek-picker__point-tools {
        padding-top: 0;
        padding-bottom: 6px;
    }
}
