/* Общие стили контейнера */
.delivery-info-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 2em 0;
}

.delivery-info-container h3 {
    font-size: 24px;
    margin-bottom: 1em;
    border-bottom: 2px solid #ff0003; /* Фирменный красный цвет */
    padding-bottom: 0.5em;
}

/* Обертка для таблиц, чтобы сделать их адаптивными */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 2em;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* Стили для самих таблиц */
.delivery-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.delivery-table th,
.delivery-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.delivery-table thead th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.delivery-table tbody tr:nth-child(even).striped,
.delivery-table.striped tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.delivery-table td small {
    display: block;
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

.table-notes {
    font-style: italic;
    color: #555;
    margin-top: -1em;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .delivery-table thead {
        /* Скрываем заголовки на мобильных, так как они будут в ячейках */
        display: none;
    }
    .delivery-table, .delivery-table tbody, .delivery-table tr, .delivery-table td {
        display: block;
        width: 100%;
    }
    .delivery-table tr {
        margin-bottom: 15px;
    }
    .delivery-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .delivery-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}