#delivery-widget {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    z-index: 1001;
    min-width: 0;
}

.yandex-pickup-map-prototype {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.yandex-pickup-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yandex-pickup-map-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.yandex-pickup-search-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    position: relative;
    z-index: 1004;
    flex: 0 0 auto;
    min-width: 0;
}

.yandex-pickup-search-field {
    min-width: 0;
    position: relative;
}

.yandex-pickup-search-field .suggestions-wrapper {
    display: block;
    min-width: 0;
    width: 100%;
}

.yandex-pickup-search-field .suggestions-suggestions {
    box-sizing: border-box;
    left: 0 !important;
    right: auto !important;
    top: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1010;
}

.yandex-pickup-search-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.yandex-pickup-search-button,
.yandex-pickup-select-button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 14px;
}

.yandex-pickup-search-button {
    min-width: 112px;
    white-space: nowrap;
}

.yandex-pickup-search-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.yandex-pickup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.yandex-pickup-workspace {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

#yandex-pickup-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f8fa;
    min-width: 0;
}

.yandex-pickup-card {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 14px;
    overflow: auto;
    background: #fff;
    min-height: 0;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.yandex-pickup-card-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.yandex-pickup-mobile-title,
.yandex-pickup-card-details-title {
    display: none;
}

.yandex-pickup-card-details {
    display: contents;
}

.yandex-pickup-card-row {
    margin: 8px 0;
    color: #24292f;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.yandex-pickup-muted {
    color: #57606a;
}

.yandex-pickup-status {
    min-height: 20px;
    color: #57606a;
    font-size: 14px;
}

.yandex-pickup-status:empty {
    display: none;
}

.yandex-pickup-status.error {
    color: #b42318;
}

.yandex-pickup-card-empty {
    color: #57606a;
    font-size: 14px;
    line-height: 1.5;
}

.yandex-pickup-preloader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.86);
    z-index: 1008;
    text-align: center;
    pointer-events: auto;
}

.yandex-pickup-preloader.is-visible {
    display: flex;
}

.yandex-pickup-preloader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    color: #24292f;
    font-size: 15px;
    font-weight: 600;
}

.yandex-pickup-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #d0d7de;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: yandexPickupSpin 0.8s linear infinite;
}

@keyframes yandexPickupSpin {
    to {
        transform: rotate(360deg);
    }
}

@media only screen and (max-width: 768px) {
    .yandex-pickup-map-header {
        align-items: flex-start;
    }

    .yandex-pickup-map-title {
        font-size: 18px;
        line-height: 1.25;
    }

    .yandex-pickup-search-row {
        grid-template-columns: 1fr;
    }

    .yandex-pickup-search-button {
        width: 100%;
    }

    .yandex-pickup-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    #yandex-pickup-map {
        min-height: 320px;
        height: 320px;
    }

    .yandex-pickup-card {
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 0;
        padding: 0;
        max-height: none;
        height: auto;
        overflow: visible;
        background: transparent;
    }

    .yandex-pickup-workspace {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .yandex-pickup-card-title {
        display: none;
    }

    .yandex-pickup-mobile-title {
        display: block;
        order: 0;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .yandex-pickup-card-address {
        order: 1;
        margin: 0 0 10px;
    }

    .yandex-pickup-select-button {
        order: 2;
        width: 100%;
        margin-bottom: 12px;
    }

    .yandex-pickup-card-details {
        display: block;
        order: 3;
        border: 1px solid #d0d7de;
        border-radius: 8px;
        padding: 14px;
        background: #fff;
    }

    .yandex-pickup-card-details-title {
        display: block;
        text-align: center;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .yandex-pickup-search-field .suggestions-suggestions {
        max-height: 220px;
    }
}
