/* ═══ DELIVERY-MODAL — модалка «Доставка» (dlm-)
   Моб: bottom-sheet снизу (как fsm-nested «Марка»); ПК: окно по центру. ═══ */

.dlm-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    /* скрытие с задержкой: карточка успевает уехать вниз (transform .3s),
       иначе visibility обрубает её мгновенно */
    transition: visibility 0s .35s;
}

.dlm-overlay.active {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.dlm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity .3s;
    cursor: pointer;
}

.dlm-overlay.active .dlm-backdrop { opacity: 1; }

.dlm-card {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 448px;
    height: 100dvh;
    background: #242F3D;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
    /* композитный слой: без него Android рывками/мгновенно закрывает
       полноэкранный элемент со скролл-контентом */
    will-change: transform;
    backface-visibility: hidden;
}

.dlm-overlay.active .dlm-card { transform: translateY(0); }

.dlm-handle { flex-shrink: 0; }

.dlm-handle-bar {
    display: block;
    width: 52px;
    height: 7px;
    background: #7F7F7F;
    border-radius: 9999px;
    margin: 12px auto 4px;
}

.dlm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 12px;
}

.dlm-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.dlm-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f91a4;
}

.dlm-note {
    flex-shrink: 0;
    margin: 0 20px 12px;
    padding: 10px 12px;
    background: rgba(255, 185, 0, .07);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #b0bec5;
}

.dlm-note-link {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    color: #FFB900;
    text-decoration: underline;
    cursor: pointer;
}

.dlm-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 16px;
}

.dlm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(127, 145, 164, .15);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.dlm-row:first-child { border-top: 0; }

.dlm-city { font-size: 14px; color: #e2e8f0; font-weight: 500; }

.dlm-price { font-size: 13px; font-weight: 600; color: #FFB900; white-space: nowrap; }

/* ── ПК: окно по центру ── */
@media (min-width: 1025px) {
    .dlm-overlay { align-items: center; padding-bottom: 0; }

    .dlm-card {
        max-width: 520px;
        max-height: min(70vh, 640px);
        border-radius: 12px;
        transform: translateY(16px);
        opacity: 0;
        transition: transform .25s ease, opacity .25s ease;
    }

    .dlm-overlay.active .dlm-card {
        transform: translateY(0);
        opacity: 1;
    }

    .dlm-handle { display: none; }

    .dlm-head { padding: 18px 24px 12px; }

    .dlm-note { margin: 0 24px 14px; font-size: 13px; }

    .dlm-list { padding: 0 24px 18px; }
}
