.delivery-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    height: 700px;
    padding: 0 20px;
}

.delivery-form-section {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 100%;
}

.delivery-map-section {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #eaeaea;
}

.delivery-input,
.delivery-select,
.delivery-textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.delivery-button {
    background-color: #ff5c35;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.delivery-button:hover {
    background-color: #e64b26;
}

.delivery-info-block {
    background-color: #fef6f4;
    border: 1px solid #ffd9cc;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    font-family: sans-serif;
}

.delivery-info-block h2 {
    margin-top: 0;
    font-size: 24px;
    color: #ff5c35;
}

.delivery-info-block p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.delivery-info-block ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.delivery-info-block li {
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.delivery-info-block li::before {
    content: '•';
    color: #ff5c35;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}
.map-info-hint {
    background-color: #fff3e6;
    border-left: 4px solid #ff5c35;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #444;
    border-radius: 8px;
}
#products_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.product-item {
    flex: 1 1 calc(33.333% - 20px); /* по 3 в ряд с отступом */
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
    min-width: 250px;
    position: relative;
}

.product-item label {
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
}

.product-item input,
.product-item select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 13px;
}

    input[type="checkbox"]#agree {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        cursor: pointer;
    }

    label[for="agree"] {
        margin-left: 8px;
        vertical-align: middle;
        font-size: 14px;
    }

    input[type="checkbox"]#loader {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        cursor: pointer;
    }

    label[for="loader"] {
        margin-left: 8px;
        vertical-align: middle;
        font-size: 14px;
    }

.price-display-box {
    margin-top: 15px;
    padding: 15px 20px;
    background-color: #f0f8ff;
    border: 2px solid #2a7ae2;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #2a7ae2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}
.price-display-box:hover {
    background-color: #e6f0ff;
}

.features-price-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.features-price-container ul {
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}

.features-price-container button {
    white-space: nowrap; /* чтобы кнопка не ломалась */
}
.modal-delivery {
    background: white;
    width: 600px;
    margin: 10% auto;
    padding: 20px;
    position: relative;
    border-radius: 10px;
}


@media (max-width: 768px) {

    .delivery-map-section {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background-color: #eaeaea;
        /* Изначально скрыта - inline style задаём */
    }
    /* Кнопки рядом с инпутами */
    .map-toggle-button {
        background-color: #ff5c35;
        color: white;
        border: none;
        border-radius: 12px;
        padding: 8px 12px;
        font-size: 18px;
        cursor: pointer;
        user-select: none;
        transition: background-color 0.3s ease;
    }
    .map-toggle-button:hover {
        background-color: #e64b26;
    }
    .delivery-input,
    .delivery-select,
    .delivery-textarea {
        margin-bottom: 0px;
    }


    .delivery-wrapper {
        flex-direction: column;
        display: flex;
        gap: 10px;
        margin-top: 0px;
        height: auto;
        padding: 0 0px;
    }
    .delivery-form-section {
        flex: 1;
        overflow-y: auto;
        background-color: #fff;
        padding: 20px 30px;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: 100%;
    }
    .delivery-info-block2 {
        background-color: #fef6f4;
        border: 1px solid #ffd9cc;
        border-radius: 16px;
        padding: 25px 30px;
        margin-bottom: 30px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        font-family: sans-serif;
    }
    .delivery-info-block2 h2 {
        margin-top: 0;
        font-size: 24px;
        color: #ff5c35;
    }

    .delivery-info-block2 p {
        font-size: 16px;
        line-height: 1.5;
        color: #333;
    }

    .delivery-info-block2 ul {
        list-style: none;
        padding-left: 0;
        margin: 15px 0;
    }

    .delivery-info-block2 li {
        font-size: 15px;
        margin-bottom: 8px;
        padding-left: 25px;
        position: relative;
    }

    .delivery-info-block2 li::before {
        content: '•';
        color: #ff5c35;
        position: absolute;
        left: 0;
        font-size: 20px;
        line-height: 1;
    }
    /* Стили для полноэкранной карты */
    .delivery-map-section.fullscreen {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 10000 !important;
      background-color: #fff !important;
      border-radius: 0 !important;
      box-shadow: none !important;
      display: flex !important;
      flex-direction: column;
      padding: 0;
    }

    .delivery-map-section.fullscreen #map {
      flex-grow: 1;
      height: auto !important;
      min-height: 0 !important;
    }


    .delivery-map-section {
      display: flex;
      flex-direction: column;
      height: 100%;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      background-color: #eaeaea;
    }

    #map {
      flex-grow: 1;       /* Карта занимает всё доступное пространство */
      min-height: 300px;  /* Минимальная высота */
      position: relative;
    }
    .my-location-btn,
    .close-map-btn {
      margin-bottom: 60px;
      width: 100%;
      flex-shrink: 0;
      z-index: 11000 !important;
      display: block;       /* Чтобы заняла всю строку */
      box-sizing: border-box
    }

    .modal-delivery {
        width: 100%;
        margin: 50% auto;
    }

    .features-price-container ul {
        padding-left: 0px;
    }
}

@media (min-width: 768px) {
    #map-container {
        display: block !important; /* на десктопе всегда видна */
    }
    .map-toggle-button {
        display: none !important; /* кнопки скрыты */
    }
}
