.ydv2-courier,
.ydv2-pvz {
    margin-top: 10px;
}

.ydv2-courier-form {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 620px;
}

.ydv2-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
}

.ydv2-button {
    min-height: 30px;
    font-size: 12px;
    padding: 8px 14px;
    border: 0;
    border-radius: 4px;
    background: #705b9b;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}
.popup-window-with-titlebar .popup-window-content {
    border-radius: 8px;
    background-color: transparent;
}
.ydv2-button:hover {
    background: #a284bf;
}

.ydv2-button-secondary {
 /*   min-height: 30px;
    padding: 5px 10px;
    background: #eef2f7;
    color: #1f2937;*/
}
.ydv2-selected-title{
    font-weight: 600;
    font-size: 13px;
}
.ydv2-button-secondary:hover {
    background: #dde4ee;
}

.ydv2-selected {
    margin-top: 0;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ydv2-message {
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px solid #f0d88a;
    border-radius: 4px;
    background: #fff8db;
    color: #5f4b00;
}

.yd-v2-error {
    border-color: #efb0b0;
    background: #fff1f1;
    color: #8a1f1f;
}

.ydv2-popup {
    display: block;
    width: 100%;
    max-width: 1060px;
    max-height: calc(100vh - 140px);
    overflow: hidden;
}

.ydv2-popup > .ydv2-message {
    grid-column: 1 / -1;
}

.ydv2-popup-message {
    display: block;
    min-width: 320px;
}

.ydv2-popup-message .ydv2-button {
    width: auto;
}

.ydv2-popup-body {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(280px, 360px);
    gap: 16px;
    height: min(68vh, 620px);
    min-height: 420px;
}

.ydv2-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid #d7dbe3;
}

.ydv2-map-message {
    display: flex;
    height: 100%;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #5f4b00;
    background: #fff8db;
    text-align: center;
}

.ydv2-list {
    overflow: auto;
    height: 100%;
    padding-right: 4px;
}

.ydv2-list-empty {
    padding: 16px 0;
    color: #666;
}

.ydv2-point {
    padding: 12px 0;
    border-bottom: 1px solid #e2e6ee;
}

.ydv2-point-title {
    font-weight: 700;
}

.ydv2-point-schedule {
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

.ydv2-point-address {
    margin: 6px 0 8px;
}

.ydv2-map-select {
    margin-top: 8px;
}
.popup-window-with-titlebar .popup-window-content{
    padding: 0;
}
@media (max-width: 900px) {
    .ydv2-popup {
        max-height: calc(100vh - 96px);
    }

    .ydv2-popup-body {
        grid-template-columns: minmax(320px, 1fr) minmax(240px, 300px);
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .ydv2-courier-form,
    .ydv2-popup-body {
        display: flex;
        flex-direction: column;
    }

    .ydv2-button {
        margin-top: 8px;
        width: 100%;
    }

    .ydv2-popup {
        max-height: calc(100vh - 72px);
        overflow: auto;
    }

    .ydv2-popup-body {
        height: auto;
        min-height: 0;
    }

    .ydv2-map,
    .ydv2-list {
        height: auto;
    }

    .ydv2-map {
        min-height: 300px;
        height: 48vh;
    }

    .ydv2-list {
        max-height: 36vh;
        overflow: auto;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .ydv2-popup {
        max-height: calc(100vh - 48px);
    }

    .ydv2-popup-message {
        min-width: 0;
    }

    .ydv2-map {
        min-height: 260px;
        height: 42vh;
    }

    .ydv2-list {
        max-height: 42vh;
    }
}
