.mfp-wrap{
    z-index: 10000!important;
}

.mfp-content{
    width: auto!important;
    overflow: hidden;
}

#pickup-widget [class$="ground-pane"]{
    filter: grayscale(1);
}


#pickup-widget-header{
    padding: 30px;
    width: 100%;
    height: 100px;
}

#pickup-widget-heading{
    font-size: 30px;
}

#pickup-widget{
    display: flex;
    flex-wrap: wrap;
    height: 80vh;
    width: 80vw;
    background: #fff;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
}

#pickup-widget #map{
    width: 100%;
    height: calc(100% - 100px);
    min-width: 350px;
    flex: 1;
}

#pickup-widget #map-sidebar{
    width: 300px;
    height: calc(100% - 100px);
    z-index: +1;
    background: #fff;
    overflow-y: scroll;
}

#pickup-widget #map-sidebar .pickup-point {
    padding: 15px 10px;
    border-bottom: 2px solid #eee;
    display: block;
}

#pickup-widget #map-sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fefefe; 
}

#pickup-widget #map-sidebar::-webkit-scrollbar-thumb {
  background: #000;
  height: 100px;
}

#pickup-widget .pickup-type {
    font-size: 14px;
    color: #999;
}

#pickup-widget #info-panel {
    position: absolute;
    right: -100%;
    top: 0;
    width: 300px;
    max-width: 100vw;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 10000;
}

#pickup-widget #info-panel.open {
    right: 0;
}

#pickup-widget #info-panel .info-panel-content {
    padding: 20px; 
}

#pickup-widget #info-panel .close-info-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    padding: 5px 15px;
}

#pickup-widget #info-panel .close-info-panel:hover {
    color: #000;
}

#pickup-widget #info-panel .widget-panel-heading {
    font-size: 16px;
    line-height: 1.3;
}

#pickup-widget #info-panel .widget-panel-worktime {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: #999;
    margin-top: 1.5rem;
}

#pickup-widget #info-panel .widget-panel-additional-info {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    margin-top: 1.4rem;
    line-height: 1.3;
}

#pickup-widget #info-panel #widget-select-pickup {
    margin-top: 1.4rem;
    width: 100%;
    height: 50px;
    border: 0;
    background: #000;
    color: #fff;
    border-radius: 10px;
}

#pickup-widget #pickup-widget-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.map-preloader .spinner {
    border: 16px solid #f3f3f3; /* Светло-серый */
    border-top: 16px solid #3498db; /* Синий */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ndm-selected-block {
    border: 1px solid #00000030;
    border-radius: 10px;
    padding: 18px 16px;
    font-size: 14px;
    position: relative;
}

.ndm-selected-block .ndm-selected-block__title{
    margin: 0 0 1.5rem 0;
}

.ndm-address-fields.active,
.woocommerce-billing-fields__field-wrapper.active{
    display:block;
}

.ndm-selected-block .change-selected-block {
    bottom: 18px;
    right: 16px;
    top: auto;
}

.ndm-selected-block .selected-address .selected-value-label {
    color: #999;
}

.ndm-selected-block .selected-address:last-child {
    margin: 0;
}

.suggestions-suggestions {
    border: 1px solid #00000030;
    border-radius: 10px;
    box-shadow: 0 2px 15px #00000010;
    padding: 16px 20px;
}

.suggestions-suggestions > div {
    margin-bottom: 10px;
}

.woocommerce-billing-fields__field-wrapper,
#checkout-cached-contact-fields {
    display: none;
}

input[type="checkbox"] {
    display: inline-block !important;
    width: 15px;
    height: 15px;
}

.ndm-field-label {
    display: inline-block !important;
}

/* Стили для полноэкранного попапа на мобильных устройствах */
@media (max-width: 1024px) {
    .mfp-content {
        width: 100% !important;
        height: 100% !important;
        overflow-y: scroll !important;
    }

    .mfp-figure, .mfp-iframe-holder, .mfp-s-ready .mfp-content {
        width: 100%;
        height: 100%;
    }

    .mfp-container {
        padding: 0!important;
        width: 100vw!important;
        height: 100vh!important;
        position: fixed!important;
    }

    .mfp-bg {
        background: rgba(0, 0, 0, 0.5); /* Фон попапа */
    }

    .mfp-close {
        right: 10px; /* Положение кнопки закрытия */
        top: 10px; 
        height: 50px;
    }
    
    #pickup-widget #pickup-widget-overlay{
        position: fixed;
    }
    
    #pickup-widget-header{
        padding: 15px 10px;
        width: 100%;
        height: 50px;
    }
    
    #pickup-widget-heading{
        font-size: 16px;
    }

    #pickup-widget{
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    #pickup-widget #map{
        width: 100%;
        height: 450px;
        max-width: 100vw;
        flex: 1;
    }
    
    #pickup-widget #map-sidebar{
        height: fit-content;
        overflow-y: visible;
        width: 100%;
        min-height: calc(100vh - 500px);
    }
    
    #pickup-widget #info-panel {
        position: fixed;
    }
}