.udh-rate-tools {
    margin: 6px 0 4px 28px;
}

.udh-open-map,
.udh-ozon-courier,
.udh-find,
.udh-apply,
.udh-filters button {
    cursor: pointer;
    font: inherit;
}

.udh-open-map,
.udh-ozon-courier {
    border: 0;
    background: transparent;
    color: #111;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.udh-hint,
.udh-chosen {
    margin: 4px 0 8px 28px;
    color: #4b5563;
    font-size: 13px;
}

.udh-chosen {
    color: #111;
}

body.udh-lock {
    overflow: hidden;
}

.udh-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(17, 17, 17, 0.46);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px;
}

.udh-modal[hidden] {
    display: none;
}

.udh-dialog {
    width: min(1100px, 100%);
    background: #f6f4ef;
    color: #1c1917;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.udh-head,
.udh-foot,
.udh-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: #fffdf8;
}

.udh-head {
    justify-content: space-between;
    border-bottom: 1px solid #e7e1d6;
}

.udh-head h3 {
    margin: 0;
    font-size: 20px;
}

.udh-head p,
.udh-status {
    margin: 2px 0 0;
    color: #57534e;
    font-size: 13px;
}

.udh-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.udh-city {
    flex: 1;
    min-width: 0;
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
}

.udh-find,
.udh-apply {
    border: 0;
    border-radius: 999px;
    background: #1c1917;
    color: #fff;
    padding: 10px 16px;
}

.udh-apply:disabled {
    opacity: 0.45;
}

.udh-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.udh-filters button {
    border: 1px solid #d6d3d1;
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
}

.udh-filters button.is-on {
    background: #1c1917;
    color: #fff;
    border-color: #1c1917;
}

.udh-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 460px;
    flex: 1;
}

.udh-list {
    overflow: auto;
    max-height: 62vh;
    background: #f6f4ef;
    border-right: 1px solid #e7e1d6;
}

.udh-item {
    width: 100%;
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e7e1d6;
    background: transparent;
    padding: 12px;
    cursor: pointer;
}

.udh-item strong,
.udh-item small,
.udh-item em {
    display: block;
}

.udh-item small {
    color: #57534e;
    font-size: 12px;
}

.udh-item em {
    font-style: normal;
    font-size: 13px;
    white-space: nowrap;
}

.udh-item.is-on {
    background: #fff;
}

.udh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
}

.udh-map {
    min-height: 420px;
    background: #e7e5e4;
}

.udh-empty {
    padding: 16px;
    color: #57534e;
}

.udh-foot {
    border-top: 1px solid #e7e1d6;
    justify-content: space-between;
}

@media (max-width: 800px) {
    .udh-modal {
        padding: 0;
    }

    .udh-dialog {
        border-radius: 0;
        min-height: 100%;
    }

    .udh-body {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 1fr;
    }

    .udh-map {
        min-height: 240px;
        order: -1;
    }

    .udh-list {
        max-height: none;
    }

    .udh-toolbar {
        flex-wrap: wrap;
    }
}
